From d2013787507e26ef7d97c51930f5bcec1ae9d506 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Mar 2022 01:25:43 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index 393918b348..ccd1da4889 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -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