Files
rust_browser/tests/goldens/expected/022-inline-background-border.dl.txt
Zachary D. Rowitsch dd03466e63
All checks were successful
ci / fast (linux) (push) Successful in 6m38s
Implement CSS 2.1 outline properties and border style golden tests with code review fixes (§8.5, §18.4)
Add full outline support (outline-style, outline-width, outline-color, outline-offset, outline
shorthand) following the CSS property pipeline: parse → style → layout → display list → rasterize.
Verify all 10 border styles are fully implemented and add 6 golden tests (249-254) covering double
borders, 3D border styles, mixed styles, and outline variations.

Code review fixes: correct outline paint order to CSS 2.1 Appendix E step 10 (after content, not
between borders and content), handle outline-width thin/medium/thick keywords in computed styles,
fix Outline display item format consistency (Display vs Debug), guard against negative outline-offset
producing invalid rects, add missing tests for outline-color invert and keyword width resolution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 01:18:45 -04:00

13 lines
1.0 KiB
Plaintext

DisplayList items=11
Text rect=(8, 9.6, 23.612333, 16) text="Text" color=#000000 font_size=16
SolidRect rect=(34.666664, 3.6000004, 38.74009, 28) color=#ff0000
Border rect=(34.666664, 3.6000004, 38.74009, 28) widths=(2 0 2 2) colors=(#0000ff #0000ff #0000ff #0000ff) styles=(solid solid solid solid)
Text rect=(40.666664, 9.6, 32.74009, 16) text="styled" color=#000000 font_size=16
SolidRect rect=(73.40675, 3.6000004, 3.0543318, 31.2) color=#ff0000
Border rect=(73.40675, 3.6000004, 3.0543318, 31.2) widths=(2 0 2 0) colors=(#0000ff #0000ff #0000ff #0000ff) styles=(solid solid solid solid)
SolidRect rect=(76.46108, 3.6000004, 32.701912, 28) color=#ff0000
Border rect=(76.46108, 3.6000004, 32.701912, 28) widths=(2 2 2 0) colors=(#0000ff #0000ff #0000ff #0000ff) styles=(solid solid solid solid)
Text rect=(76.46108, 9.6, 26.70191, 16) text="span" color=#000000 font_size=16
Text rect=(112.21732, 9.6, 29.568281, 16) text="more" color=#000000 font_size=16
Text rect=(144.83994, 9.6, 21.321585, 16) text="text" color=#000000 font_size=16