mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement :placeholder-shown (fixes #10561)
This commit is contained in:
parent
6c5f5d35f5
commit
ff899dc703
7 changed files with 52 additions and 12 deletions
|
@ -131,7 +131,8 @@ pub enum NonTSPseudoClass {
|
|||
Indeterminate,
|
||||
ServoNonZeroBorder,
|
||||
ReadWrite,
|
||||
ReadOnly
|
||||
ReadOnly,
|
||||
PlaceholderShown,
|
||||
}
|
||||
|
||||
impl NonTSPseudoClass {
|
||||
|
@ -147,6 +148,7 @@ impl NonTSPseudoClass {
|
|||
Checked => IN_CHECKED_STATE,
|
||||
Indeterminate => IN_INDETERMINATE_STATE,
|
||||
ReadOnly | ReadWrite => IN_READ_WRITE_STATE,
|
||||
PlaceholderShown => IN_PLACEHOLDER_SHOWN_STATE,
|
||||
|
||||
AnyLink |
|
||||
Link |
|
||||
|
@ -179,6 +181,7 @@ impl SelectorImpl for ServoSelectorImpl {
|
|||
"indeterminate" => Indeterminate,
|
||||
"read-write" => ReadWrite,
|
||||
"read-only" => ReadOnly,
|
||||
"placeholder-shown" => PlaceholderShown,
|
||||
"-servo-nonzero-border" => {
|
||||
if !context.in_user_agent_stylesheet {
|
||||
return Err(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue