Files
rust_browser/tests/goldens/expected/041-anchor-with-style.dl.txt
Zachary D. Rowitsch dbadb659bc Add CSS cascade origin ordering per CSS Cascading Level 4
Author-origin declarations now always beat UA-origin declarations
regardless of specificity, fixing issues like `.btn-primary { color: white }`
failing to override UA `a:link { color: #0000EE }`. The cascade now checks
origin+importance weight before specificity: UA normal (0) < Author normal (1)
< Author !important (2) < UA !important (3).

The UA stylesheet is applied internally by compute_styles rather than being
prepended by callers, making origin structurally determined. Promotes 3 WPT
tests from known_fail to pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 16:35:44 -05:00

9 lines
490 B
Plaintext

DisplayList items=7
SolidRect rect=(8, 8, 33.56241, 16) color=#ffff00
Text rect=(8, 8, 33.56241, 16) text="Styled" color=#0000ff font_size=16
SolidRect rect=(8, 22.843718, 33.56241, 1.1428572) color=#0000ff
SolidRect rect=(41.56241, 8, 3.0543318, 19.2) color=#ffff00
SolidRect rect=(44.61674, 8, 22.719532, 16) color=#ffff00
Text rect=(44.61674, 8, 22.719532, 16) text="Link" color=#0000ff font_size=16
SolidRect rect=(44.61674, 22.843718, 22.719532, 1.1428572) color=#0000ff