Files
rust_browser/tests/goldens/fixtures/262-ex-units.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
336 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.ex-margin { margin-top: 2ex; }
.ex-padding { padding: 1ex; }
.ex-width { width: 10ex; height: 2ex; background-color: lightblue; }
</style>
</head>
<body>
<p class="ex-margin">Margin in ex</p>
<p class="ex-padding">Padding in ex</p>
<div class="ex-width">Ex width</div>
</body>
</html>