mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Stylo: match both ::placehoder & ::moz-placeholder for placeholder pseudo-elements.
This commit is contained in:
parent
84c1f904cb
commit
6143e95d74
5 changed files with 22 additions and 4 deletions
|
@ -1368,7 +1368,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
// match the proper pseudo-element, given how we rulehash the stuff
|
||||
// based on the pseudo.
|
||||
match self.implemented_pseudo_element() {
|
||||
Some(ref pseudo) => pseudo == pseudo_element,
|
||||
Some(ref pseudo) => *pseudo == pseudo_element.canonical(),
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue