mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Hide some appearance values from content.
They're not used internally either, so remove all ability to address them. I haven't removed the implementation yet, as some of them are quite complex, and I don't have a mac / windows build. We should do that when this hits release though. Differential Revision: https://phabricator.services.mozilla.com/D32488
This commit is contained in:
parent
ef99ab1f08
commit
1f5bed4473
1 changed files with 5 additions and 0 deletions
|
@ -1129,11 +1129,13 @@ pub enum Appearance {
|
||||||
ButtonArrowUp,
|
ButtonArrowUp,
|
||||||
/// A rectangular button that contains complex content
|
/// A rectangular button that contains complex content
|
||||||
/// like images (e.g. HTML <button> elements)
|
/// like images (e.g. HTML <button> elements)
|
||||||
|
#[css(skip)]
|
||||||
ButtonBevel,
|
ButtonBevel,
|
||||||
/// The focus outline box inside of a button.
|
/// The focus outline box inside of a button.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
ButtonFocus,
|
ButtonFocus,
|
||||||
/// The caret of a text area
|
/// The caret of a text area
|
||||||
|
#[css(skip)]
|
||||||
Caret,
|
Caret,
|
||||||
/// A dual toolbar button (e.g., a Back button with a dropdown)
|
/// A dual toolbar button (e.g., a Back button with a dropdown)
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
|
@ -1146,6 +1148,7 @@ pub enum Appearance {
|
||||||
/// List boxes.
|
/// List boxes.
|
||||||
Listbox,
|
Listbox,
|
||||||
/// A listbox item.
|
/// A listbox item.
|
||||||
|
#[css(skip)]
|
||||||
Listitem,
|
Listitem,
|
||||||
/// Menu Bar background
|
/// Menu Bar background
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
|
@ -1165,8 +1168,10 @@ pub enum Appearance {
|
||||||
/// The dropdown button(s) that open up a dropdown list.
|
/// The dropdown button(s) that open up a dropdown list.
|
||||||
MenulistButton,
|
MenulistButton,
|
||||||
/// The text part of a dropdown list, to left of button.
|
/// The text part of a dropdown list, to left of button.
|
||||||
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
MenulistText,
|
MenulistText,
|
||||||
/// An editable textfield with a dropdown list (a combobox).
|
/// An editable textfield with a dropdown list (a combobox).
|
||||||
|
#[css(skip)]
|
||||||
MenulistTextfield,
|
MenulistTextfield,
|
||||||
/// Menu Popup background.
|
/// Menu Popup background.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue