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>
72 lines
2.8 KiB
Plaintext
72 lines
2.8 KiB
Plaintext
LayoutBox node=#2 tag=html box=block
|
|
content: (0, 0, 800, 172.8)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#10 tag=body box=block
|
|
content: (0, 0, 800, 156.8)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#12 tag=p box=block
|
|
content: (0, 16, 800, 19.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 16 0 16 0
|
|
inline_context: 1 lines, height=19.2, max_width=81.914825
|
|
line[0]: rect=(0, 16, 81.914825, 19.2) fragments=2
|
|
frag[0]: rect=(0, 17.6, 36.722466, 16) text="HELLO" start=false end=false
|
|
frag[1]: rect=(39.7768, 17.6, 42.13803, 16) text="WORLD" start=false end=false
|
|
LayoutBox node=#13 tag=anonymous box=anon
|
|
content: (0, 0, 81.91483, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "HELLO WORLD"
|
|
LayoutBox node=#15 tag=p box=block
|
|
content: (0, 51.2, 800, 19.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 16 0 16 0
|
|
inline_context: 1 lines, height=19.2, max_width=61.556534
|
|
line[0]: rect=(0, 51.2, 61.556534, 19.2) fragments=2
|
|
frag[0]: rect=(0, 52.800003, 27.05433, 16) text="hello" start=false end=false
|
|
frag[1]: rect=(30.108662, 52.800003, 31.447872, 16) text="world" start=false end=false
|
|
LayoutBox node=#16 tag=anonymous box=anon
|
|
content: (0, 0, 61.556534, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "hello world"
|
|
LayoutBox node=#18 tag=p box=block
|
|
content: (0, 86.4, 800, 19.200005)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 16 0 16 0
|
|
inline_context: 1 lines, height=19.200005, max_width=88.05873
|
|
line[0]: rect=(0, 86.4, 88.05873, 19.2) fragments=3
|
|
frag[0]: rect=(0, 88, 28.499266, 16) text="Hello" start=false end=false
|
|
frag[1]: rect=(31.553596, 88, 33.1395, 16) text="World" start=false end=false
|
|
frag[2]: rect=(67.74743, 88, 20.311306, 16) text="Foo" start=false end=false
|
|
LayoutBox node=#19 tag=anonymous box=anon
|
|
content: (0, 0, 88.05873, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "Hello World Foo"
|
|
LayoutBox node=#21 tag=p box=block
|
|
content: (0, 121.600006, 800, 19.199997)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 16 0 16 0
|
|
inline_context: 1 lines, height=19.199997, max_width=64.6931
|
|
line[0]: rect=(0, 121.600006, 64.6931, 19.2) fragments=2
|
|
frag[0]: rect=(0, 123.200005, 28.499266, 16) text="Hello" start=false end=false
|
|
frag[1]: rect=(31.553596, 123.200005, 33.1395, 16) text="World" start=false end=false
|
|
LayoutBox node=#22 tag=anonymous box=anon
|
|
content: (0, 0, 64.6931, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "Hello World"
|