Files
rust_browser/tests/goldens/fixtures/093-dashed-borders.html
Zachary D. Rowitsch 6e9b5e4335 Add dashed/dotted border support with CSS variable compatibility
Features:
- Add Dashed and Dotted variants to BorderStyle enum
- Parse dashed/dotted keywords in border-style property
- Add rgb()/rgba() color function parsing with percentage support
- Add border-top/right/bottom/left shorthand property parsing
- Support CSS variables in border shorthand properties
- Implement dashed and dotted border rendering

Bug fixes:
- RGB percentage handling (50% -> 128)
- Alpha channel precision (use rounding, 0.9 -> 230)
- RGB value overflow protection (clamp to 0-255)
- Dashed pattern alignment (use border-relative coordinates)
- Invalid unit rejection in color functions (rgb(10px,...))
- Consistent duplicate value handling in border shorthands

Tests:
- Add golden test 093-dashed-borders for CSS variable border example
- Add unit test for dashed pattern alignment fix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:53:38 -05:00

577 B