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>
10 lines
820 B
Plaintext
10 lines
820 B
Plaintext
DisplayList items=8
|
|
Text rect=(8, 17.6, 30.827606, 16) text="Small" color=#000000 font_size=16 font_variant=small-caps
|
|
Text rect=(41.88194, 17.6, 24.274889, 16) text="Caps" color=#000000 font_size=16 font_variant=small-caps
|
|
Text rect=(69.21116, 17.6, 22.48928, 16) text="Text" color=#000000 font_size=16 font_variant=small-caps
|
|
Text rect=(8, 52.800003, 41.491924, 16) text="Normal" color=#000000 font_size=16
|
|
Text rect=(52.546257, 52.800003, 23.612333, 16) text="Text" color=#000000 font_size=16
|
|
Text rect=(8, 88, 49.65639, 16) text="Inherited" color=#000000 font_size=16 font_variant=small-caps
|
|
Text rect=(60.710724, 88, 30.827606, 16) text="Small" color=#000000 font_size=16 font_variant=small-caps
|
|
Text rect=(94.59266, 88, 24.274889, 16) text="Caps" color=#000000 font_size=16 font_variant=small-caps
|