Files
rust_browser/tests/goldens/expected/199-text-transform.dl.txt
Zachary D. Rowitsch 97d58166e7 Implement text-transform: none/uppercase/lowercase/capitalize CSS property
Add full support for the CSS text-transform property following the
established pattern for inherited text properties (white-space,
letter-spacing). The transform is applied after whitespace normalization
and before text measurement in box tree construction.

Key design decisions:
- Uses Cow<str> return type to avoid allocations for the common None case
- Capitalize uses whitespace-only word boundaries (matching browser behavior)
- Applied to all text content paths: text nodes, pseudo-elements, form controls
- 10 WPT tests promoted to pass, 3 shaping tests demoted (pixel mismatch)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 00:57:00 -05:00

11 lines
758 B
Plaintext

DisplayList items=9
Text rect=(0, 17.6, 36.722466, 16) text="HELLO" color=#000000 font_size=16
Text rect=(39.7768, 17.6, 42.13803, 16) text="WORLD" color=#000000 font_size=16
Text rect=(0, 52.800003, 27.05433, 16) text="hello" color=#000000 font_size=16
Text rect=(30.108662, 52.800003, 31.447872, 16) text="world" color=#000000 font_size=16
Text rect=(0, 88, 28.499266, 16) text="Hello" color=#000000 font_size=16
Text rect=(31.553596, 88, 33.1395, 16) text="World" color=#000000 font_size=16
Text rect=(67.74743, 88, 20.311306, 16) text="Foo" color=#000000 font_size=16
Text rect=(0, 123.200005, 28.499266, 16) text="Hello" color=#000000 font_size=16
Text rect=(31.553596, 123.200005, 33.1395, 16) text="World" color=#000000 font_size=16