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>
16 lines
336 B
HTML
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>
|