Files
rust_browser/tests/goldens/expected/253-outline-offset.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

12 lines
807 B
Plaintext

DisplayList items=10
SolidRect rect=(38, 30, 84, 34) color=#eeeeee
Border rect=(38, 30, 84, 34) widths=(2 2 2 2) colors=(#333333 #333333 #333333 #333333) styles=(solid solid solid solid)
SolidRect rect=(38, 94, 84, 34) color=#eeeeee
Border rect=(38, 94, 84, 34) widths=(2 2 2 2) colors=(#333333 #333333 #333333 #333333) styles=(solid solid solid solid)
Text rect=(40, 33.6, 31.68282, 16) text="offset" color=#000000 font_size=16
Text rect=(74.737144, 33.6, 6.71953, 16) text="5" color=#000000 font_size=16
Outline rect=(31, 23, 98, 48) width=2 style=solid color=#ff0000
Text rect=(40, 97.6, 31.68282, 16) text="offset" color=#000000 font_size=16
Text rect=(74.737144, 97.6, 6.71953, 16) text="0" color=#000000 font_size=16
Outline rect=(36, 92, 88, 38) width=2 style=solid color=#0000ff