1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +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:
Andreas Kling 2022-03-12 01:25:43 +01:00
parent 6de10858b9
commit d201378750

View file

@ -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