mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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
|
@ -684,6 +684,8 @@ pub trait MatchMethods : TElement {
|
|||
{
|
||||
let implemented_pseudo = self.implemented_pseudo_element();
|
||||
if let Some(ref pseudo) = implemented_pseudo {
|
||||
// We don't expect to match against a non-canonical pseudo-element.
|
||||
debug_assert_eq!(*pseudo, pseudo.canonical());
|
||||
if pseudo.is_eager() {
|
||||
// If it's an eager element-backed pseudo, just grab the matched
|
||||
// rules from the parent, and update animations.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue