mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibWeb: Apply non-CSS presentational hints before author styles
According to css-cascade-4, we should apply presentational hints from content attributes *before* author styles.
This commit is contained in:
@@ -622,12 +622,12 @@ void StyleComputer::compute_cascaded_values(StyleProperties& style, DOM::Element
|
||||
|
||||
// FIXME: Normal user declarations
|
||||
|
||||
// Normal author declarations
|
||||
cascade_declarations(style, element, matching_rule_set.author_rules, CascadeOrigin::Author, Important::No, custom_properties);
|
||||
|
||||
// Author presentational hints (NOTE: The spec doesn't say exactly how to prioritize these.)
|
||||
element.apply_presentational_hints(style);
|
||||
|
||||
// Normal author declarations
|
||||
cascade_declarations(style, element, matching_rule_set.author_rules, CascadeOrigin::Author, Important::No, custom_properties);
|
||||
|
||||
// FIXME: Animation declarations [css-animations-1]
|
||||
|
||||
// Important author declarations
|
||||
|
||||
Reference in New Issue
Block a user