Files
rust_browser/tests/goldens/expected/196-first-line-basic.layout.txt
Zachary D. Rowitsch 6ebf3f5b90 Implement ::first-line and ::first-letter CSS pseudo-elements
Add full rendering pipeline support for both pseudo-elements: style
computation with property filtering, ::first-letter box tree text
splitting, and ::first-line post-layout style overrides on first line
fragments. Promotes 2 WPT tests to pass and demotes 3 edge cases to
known_fail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 23:45:54 -05:00

49 lines
2.8 KiB
Plaintext

LayoutBox node=#2 tag=html box=block
content: (0, 0, 800, 132.8)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#10 tag=body box=block
content: (8, 8, 784, 108.8)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#12 tag=p box=block
content: (8, 24, 200, 76.8)
padding: 0 0 0 0
border: 0 0 0 0
margin: 16 0 16 0
inline_context: 4 lines, height=76.8, max_width=198.69604
line[0]: rect=(8, 24, 170.19678, 19.2) fragments=6
frag[0]: rect=(8, 25.6, 20.417034, 16) text="The" start=false end=false
frag[1]: rect=(31.471367, 25.6, 21.791481, 16) text="first" start=false end=false
frag[2]: rect=(56.31718, 25.6, 19.947138, 16) text="line" start=false end=false
frag[3]: rect=(79.31865, 25.6, 11.148312, 16) text="of" start=false end=false
frag[4]: rect=(93.52129, 25.6, 20.15859, 16) text="this" start=false end=false
frag[5]: rect=(116.734215, 25.6, 58.408222, 16) text="paragraph" start=false end=false
line[1]: rect=(8, 43.2, 190.00294, 19.2) fragments=8
frag[0]: rect=(8, 44.800003, 37.509544, 16) text="should" start=false end=false
frag[1]: rect=(48.563877, 44.800003, 13.85022, 16) text="be" start=false end=false
frag[2]: rect=(65.46843, 44.800003, 21.85022, 16) text="red." start=false end=false
frag[3]: rect=(90.37298, 44.800003, 20.417034, 16) text="The" start=false end=false
frag[4]: rect=(113.84434, 44.800003, 21.345081, 16) text="rest" start=false end=false
frag[5]: rect=(138.24376, 44.800003, 11.148312, 16) text="of" start=false end=false
frag[6]: rect=(152.44641, 44.800003, 18.126286, 16) text="the" start=false end=false
frag[7]: rect=(173.62703, 44.800003, 21.321585, 16) text="text" start=false end=false
line[2]: rect=(8, 62.4, 198.69604, 19.2) fragments=7
frag[0]: rect=(8, 64, 37.509544, 16) text="should" start=false end=false
frag[1]: rect=(48.563877, 64, 13.85022, 16) text="be" start=false end=false
frag[2]: rect=(65.46843, 64, 18.126286, 16) text="the" start=false end=false
frag[3]: rect=(86.64904, 64, 39.013214, 16) text="default" start=false end=false
frag[4]: rect=(128.71658, 64, 27.735683, 16) text="color" start=false end=false
frag[5]: rect=(159.5066, 64, 32.42291, 16) text="which" start=false end=false
frag[6]: rect=(194.98386, 64, 8.657856, 16) text="is" start=false end=false
line[3]: rect=(8, 81.600006, 31.906021, 19.2) fragments=1
frag[0]: rect=(8, 83.200005, 31.906021, 16) text="black." start=false end=false
LayoutBox node=#13 tag=anonymous box=anon
content: (0, 0, 590.8016, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "The first line of th..."