Files
rust_browser/tests/goldens/fixtures/261-font-variant-small-caps.html
Zachary D. Rowitsch 8a97aae651 Implement CSS 2.1 font properties with code review fixes (§15.4, §15.8, §4.3.2)
Add font-variant property (normal/small-caps) with correct per-character-case
rendering: lowercase chars rendered uppercased at 0.8x size, uppercase/non-letter
chars at full size. Fix font shorthand to validate mandatory font-family and reject
invalid line-height after /. Wire up actual x-height from font metrics in layout
measurement. Add font-variant to ::first-line pseudo-element support. Deduplicate
rasterizer text rendering. Add ex unit to grid template parsing tables.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 10:41:50 -04:00

16 lines
352 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.small-caps { font-variant: small-caps; }
.normal { font-variant: normal; }
.inherit-test { font-variant: small-caps; }
</style>
</head>
<body>
<p class="small-caps">Small Caps Text</p>
<p class="normal">Normal Text</p>
<div class="inherit-test"><span>Inherited Small Caps</span></div>
</body>
</html>