mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Don't apply presentational hints to associated pseudo elements
CSS properties generated by presentational hints in content attributes should not leak into pseudo elements.
This commit is contained in:
@@ -912,7 +912,8 @@ ErrorOr<void> StyleComputer::compute_cascaded_values(StyleProperties& style, DOM
|
||||
// FIXME: Normal user declarations
|
||||
|
||||
// Author presentational hints (NOTE: The spec doesn't say exactly how to prioritize these.)
|
||||
element.apply_presentational_hints(style);
|
||||
if (!pseudo_element.has_value())
|
||||
element.apply_presentational_hints(style);
|
||||
|
||||
// Normal author declarations
|
||||
cascade_declarations(style, element, pseudo_element, matching_rule_set.author_rules, CascadeOrigin::Author, Important::No);
|
||||
|
||||
Reference in New Issue
Block a user