mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -5,7 +5,7 @@
|
|||
bitflags! {
|
||||
#[doc = "Event-based element states."]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub flags ElementState: u8 {
|
||||
pub flags ElementState: u16 {
|
||||
#[doc = "The mouse is down on this element. \
|
||||
https://html.spec.whatwg.org/multipage/#selector-active \
|
||||
FIXME(#7333): set/unset this when appropriate"]
|
||||
|
@ -29,5 +29,7 @@ bitflags! {
|
|||
const IN_INDETERMINATE_STATE = 0x40,
|
||||
#[doc = "https://html.spec.whatwg.org/multipage/#selector-read-write"]
|
||||
const IN_READ_WRITE_STATE = 0x80,
|
||||
#[doc = "https://html.spec.whatwg.org/multipage/#selector-placeholder-shown"]
|
||||
const IN_PLACEHOLDER_SHOWN_STATE = 0x0100,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue