mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Backed out changeset e577d67c6c42 (bug 1685621) for perma failures on parse-not.html. CLOSED TREE
This commit is contained in:
parent
891da67475
commit
c59d9181cb
@ -1503,6 +1503,14 @@ impl<Impl: SelectorImpl> ToCss for Component<Impl> {
|
||||
AttributeOther(ref attr_selector) => attr_selector.to_css(dest),
|
||||
|
||||
// Pseudo-classes
|
||||
Negation(ref arg) => {
|
||||
dest.write_str(":not(")?;
|
||||
for component in arg.iter() {
|
||||
component.to_css(dest)?;
|
||||
}
|
||||
dest.write_str(")")
|
||||
},
|
||||
|
||||
FirstChild => dest.write_str(":first-child"),
|
||||
LastChild => dest.write_str(":last-child"),
|
||||
OnlyChild => dest.write_str(":only-child"),
|
||||
@ -1532,11 +1540,10 @@ impl<Impl: SelectorImpl> ToCss for Component<Impl> {
|
||||
write_affine(dest, a, b)?;
|
||||
dest.write_char(')')
|
||||
},
|
||||
Is(ref list) | Where(ref list) | Negation(ref list) => {
|
||||
Is(ref list) | Where(ref list) => {
|
||||
match *self {
|
||||
Where(..) => dest.write_str(":where(")?,
|
||||
Is(..) => dest.write_str(":is(")?,
|
||||
Negation(..) => dest.write_str(":not(")?,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
serialize_selector_list(list.iter(), dest)?;
|
||||
|
Loading…
Reference in New Issue
Block a user