Files
rust_browser/tests/goldens/expected/024-inline-border-wrap.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

17 lines
1.7 KiB
Plaintext

DisplayList items=15
Border rect=(18, 7.6000004, 30.417034, 20) widths=(2 0 0 2) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Text rect=(20, 9.6, 28.417034, 16) text="word" color=#000000 font_size=16
Border rect=(48.417034, 7.6000004, 3.0543318, 23.2) widths=(2 0 0 0) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Border rect=(51.471367, 7.6000004, 20.992659, 20) widths=(2 0 0 0) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Text rect=(51.471367, 9.6, 20.992659, 16) text="one" color=#000000 font_size=16
Border rect=(72.46403, 7.6000004, 5.054332, 23.2) widths=(2 2 0 0) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Border rect=(8, 28.400002, 30.417034, 20) widths=(0 0 0 2) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Text rect=(10, 30.400002, 28.417034, 16) text="word" color=#000000 font_size=16
Text rect=(41.471367, 30.400002, 20.581497, 16) text="two" color=#000000 font_size=16
Border rect=(62.052864, 28.400002, 5.054332, 23.2) widths=(0 2 0 0) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Border rect=(8, 49.200005, 30.417034, 20) widths=(0 0 2 2) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Text rect=(10, 51.200005, 28.417034, 16) text="word" color=#000000 font_size=16
Border rect=(38.417034, 49.200005, 3.0543318, 23.2) widths=(0 0 2 0) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Border rect=(41.471367, 49.200005, 31.603525, 20) widths=(0 2 2 0) colors=(#ff0000 #ff0000 #ff0000 #ff0000) styles=(solid solid solid solid)
Text rect=(41.471367, 51.200005, 29.603525, 16) text="three" color=#000000 font_size=16