mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Bug 1369187: style: Assert that if we find an eager, element-backed pseudo, it's ::before or ::after. r=bholley
This holds because ::first-line and ::first-letter are not element-backed. MozReview-Commit-ID: 67FU15pCLqW
This commit is contained in:
parent
a529c13904
commit
93c39b0730
1 changed files with 1 additions and 0 deletions
|
@ -357,6 +357,7 @@ trait PrivateMatchMethods: TElement {
|
|||
// below like a lazy pseudo.
|
||||
let only_default_rules = context.shared.traversal_flags.for_default_styles();
|
||||
if pseudo.is_eager() && !only_default_rules {
|
||||
debug_assert!(pseudo.is_before_or_after());
|
||||
let parent = self.parent_element().unwrap();
|
||||
if !parent.may_have_animations() ||
|
||||
primary_style.rules.get_animation_rules().is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue