mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Make input[type=number] pseudo-elements accessible to chrome.
Bug: 1433389 Reviewed-by: jwatt MozReview-Commit-ID: 2ycajPYd3CV
This commit is contained in:
parent
f2df3052d9
commit
b76bbdf501
3 changed files with 62 additions and 28 deletions
|
@ -124,16 +124,26 @@ impl PseudoElement {
|
|||
!self.is_eager() && !self.is_precomputed()
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element is web-exposed.
|
||||
pub fn exposed_in_non_ua_sheets(&self) -> bool {
|
||||
(self.flags() & structs::CSS_PSEUDO_ELEMENT_UA_SHEET_ONLY) == 0
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element supports user action selectors.
|
||||
pub fn supports_user_action_state(&self) -> bool {
|
||||
(self.flags() & structs::CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE) != 0
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element is enabled for all content.
|
||||
pub fn enabled_in_content(&self) -> bool {
|
||||
(self.flags() & structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS_AND_CHROME) == 0
|
||||
}
|
||||
|
||||
/// Whether this pseudo is enabled explicitly in UA sheets.
|
||||
pub fn enabled_in_ua_sheets(&self) -> bool {
|
||||
(self.flags() & structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS) != 0
|
||||
}
|
||||
|
||||
/// Whether this pseudo is enabled explicitly in chrome sheets.
|
||||
pub fn enabled_in_chrome(&self) -> bool {
|
||||
(self.flags() & structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_CHROME) != 0
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element skips flex/grid container display-based
|
||||
/// fixup.
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue