mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add pseudo-classes to match on the state of the "dir" attribute.
Fixes the servo parts of Gecko bug 1373798 <https://bugzilla.mozilla.org/show_bug.cgi?id=1373798>
This commit is contained in:
parent
e41b7d06b4
commit
e4660c2b5b
5 changed files with 94 additions and 70 deletions
|
@ -120,6 +120,18 @@ bitflags! {
|
|||
const IN_LTR_STATE = 1 << 44,
|
||||
/// State that elements that match :dir(rtl) are in.
|
||||
const IN_RTL_STATE = 1 << 45,
|
||||
/// State that HTML elements that have a "dir" attr are in.
|
||||
const IN_HAS_DIR_ATTR_STATE = 1 << 46,
|
||||
/// State that HTML elements with dir="ltr" (or something
|
||||
/// case-insensitively equal to "ltr") are in.
|
||||
const IN_HAS_DIR_ATTR_LTR_STATE = 1 << 47,
|
||||
/// State that HTML elements with dir="rtl" (or something
|
||||
/// case-insensitively equal to "rtl") are in.
|
||||
const IN_HAS_DIR_ATTR_RTL_STATE = 1 << 48,
|
||||
/// State that HTML <bdi> elements without a valid-valued "dir" attr or
|
||||
/// any HTML elements (including <bdi>) with dir="auto" (or something
|
||||
/// case-insensitively equal to "auto") are in.
|
||||
const IN_HAS_DIR_ATTR_LIKE_AUTO_STATE = 1 << 49,
|
||||
/// Non-standard & undocumented.
|
||||
const IN_AUTOFILL_STATE = 1 << 50,
|
||||
/// Non-standard & undocumented.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue