mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Remove non-standard values of caption-side for good
They have been disabled since bug 1688695. There's a variety of table-caption bugs that would be easier to fix if we didn't have to account for side-captions. Differential Revision: https://phabricator.services.mozilla.com/D165690
This commit is contained in:
parent
e38d2369c5
commit
a973371cf2
1 changed files with 1 additions and 19 deletions
|
@ -8,15 +8,9 @@
|
||||||
///
|
///
|
||||||
/// Note that despite having "physical" names, these are actually interpreted
|
/// Note that despite having "physical" names, these are actually interpreted
|
||||||
/// according to the table's writing-mode: Top and Bottom are treated as
|
/// according to the table's writing-mode: Top and Bottom are treated as
|
||||||
/// block-start and -end respectively, and Left and Right are treated as
|
/// block-start and -end respectively.
|
||||||
/// line-start and -end.
|
|
||||||
///
|
///
|
||||||
/// https://drafts.csswg.org/css-tables/#propdef-caption-side
|
/// https://drafts.csswg.org/css-tables/#propdef-caption-side
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
fn caption_side_non_standard_enabled(_: &crate::parser::ParserContext) -> bool {
|
|
||||||
static_prefs::pref!("layout.css.caption-side-non-standard.enabled")
|
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(
|
#[derive(
|
||||||
Clone,
|
Clone,
|
||||||
|
@ -39,16 +33,4 @@ fn caption_side_non_standard_enabled(_: &crate::parser::ParserContext) -> bool {
|
||||||
pub enum CaptionSide {
|
pub enum CaptionSide {
|
||||||
Top,
|
Top,
|
||||||
Bottom,
|
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