mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
style: Hide non-standard values of caption-side.
Differential Revision: https://phabricator.services.mozilla.com/D104321
This commit is contained in:
parent
4cb0a781d1
commit
48db30f6e2
1 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
//! Specified types for CSS values related to tables.
|
||||
|
||||
use crate::parser::ParserContext;
|
||||
|
||||
/// Specified values for the `caption-side` property.
|
||||
///
|
||||
/// Note that despite having "physical" names, these are actually interpreted
|
||||
|
@ -12,6 +14,11 @@
|
|||
/// line-start and -end.
|
||||
///
|
||||
/// https://drafts.csswg.org/css-tables/#propdef-caption-side
|
||||
#[cfg(feature = "gecko")]
|
||||
fn caption_side_non_standard_enabled(_context: &ParserContext) -> bool {
|
||||
static_prefs::pref!("layout.css.caption-side-non-standard.enabled")
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[derive(
|
||||
Clone,
|
||||
|
@ -35,11 +42,15 @@ pub enum CaptionSide {
|
|||
Top,
|
||||
Bottom,
|
||||
#[cfg(feature = "gecko")]
|
||||
#[parse(condition = "caption_side_non_standard_enabled")]
|
||||
Right,
|
||||
#[cfg(feature = "gecko")]
|
||||
#[parse(condition = "caption_side_non_standard_enabled")]
|
||||
Left,
|
||||
#[cfg(feature = "gecko")]
|
||||
#[parse(condition = "caption_side_non_standard_enabled")]
|
||||
TopOutside,
|
||||
#[cfg(feature = "gecko")]
|
||||
#[parse(condition = "caption_side_non_standard_enabled")]
|
||||
BottomOutside,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue