summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-12 01:25:43 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-13 00:04:51 +0100
commitd2013787507e26ef7d97c51930f5bcec1ae9d506 (patch)
treeb4ab36bc863c8df7c223838de4f9fc6353cf2c75
parent6de10858b92227683be6fcb41a8d3f5a6439f132 (diff)
downloadserenity-d2013787507e26ef7d97c51930f5bcec1ae9d506.zip
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.
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleComputer.cpp6
1 files 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