Implement :required/:optional support for stylo.

Servo side of https://bugzilla.mozilla.org/show_bug.cgi?id=1349659
This commit is contained in:
Boris Zbarsky 2017-03-22 20:20:17 -04:00
parent e0f1855c10
commit 5a5a6cd876
3 changed files with 10 additions and 2 deletions

View file

@ -57,7 +57,11 @@ bitflags! {
const IN_HANDLER_DISABLED_STATE = 1 << 18,
#[doc = "Non-standard: https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-handler-crashed"]
const IN_HANDLER_CRASHED_STATE = 1 << 19,
#[doc = "https://html.spec.whatwg.org/multipage/#selector-required"]
const IN_REQUIRED_STATE = 1 << 20,
#[doc = "https://html.spec.whatwg.org/multipage/#selector-optional"]
const IN_OPTIONAL_STATE = 1 << 21,
#[doc = "https://html.spec.whatwg.org/multipage/#selector-read-write"]
const IN_READ_WRITE_STATE = 1 << 20,
const IN_READ_WRITE_STATE = 1 << 22,
}
}