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>
14 lines
254 B
HTML
14 lines
254 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.shorthand { font: italic small-caps bold 20px/1.5 serif; }
|
|
.size-only { font: 14px sans-serif; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p class="shorthand">Shorthand</p>
|
|
<p class="size-only">Size only</p>
|
|
</body>
|
|
</html>
|