Stylo: match both ::placehoder & ::moz-placeholder for placeholder pseudo-elements.

This commit is contained in:
cku 2017-05-23 23:51:20 +08:00
parent 84c1f904cb
commit 6143e95d74
5 changed files with 22 additions and 4 deletions

View file

@ -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,
}
}