mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -152,6 +152,12 @@ impl PseudoElement {
|
|||
PseudoElement::ServoInlineAbsolute => PseudoElementCascadeType::Precomputed,
|
||||
}
|
||||
}
|
||||
|
||||
/// Covert non-canonical pseudo-element to canonical one, and keep a
|
||||
/// canonical one as it is.
|
||||
pub fn canonical(&self) -> PseudoElement {
|
||||
self.clone()
|
||||
}
|
||||
}
|
||||
|
||||
/// A non tree-structural pseudo-class.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue