mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +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:
parent
620a34a463
commit
8bb0be7d4f
3 changed files with 26 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue