Bug 1593642 - servo: 2020: parse `display: contents`.
authorSimon Sapin <simon.sapin@exyr.org>
Mon, 04 Nov 2019 12:52:44 +0000
changeset 500346 3b2c625c90186afe8fb8944ac1ce4329e1f9ffe4
parent 500345 c8685b4f6f0aff9100af233fd4177ed6bbb86334
child 500347 584249c337abdd0e28b46a013adbda9cd8e2ceae
push id114164
push useraiakab@mozilla.com
push dateTue, 05 Nov 2019 10:06:15 +0000
treeherdermozilla-inbound@4d585c7edc76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1593642
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1593642 - servo: 2020: parse `display: contents`. Differential Revision: https://phabricator.services.mozilla.com/D51587
servo/components/style/values/specified/box.rs
--- a/servo/components/style/values/specified/box.rs
+++ b/servo/components/style/values/specified/box.rs
@@ -614,17 +614,17 @@ impl Parse for Display {
                 _ => DisplayOutside::Block,
             });
             return Ok(Display::from3(outside, inside, got_list_item));
         }
 
         // Now parse the single-keyword `display` values.
         Ok(try_match_ident_ignore_ascii_case! { input,
             "none" => Display::None,
-            #[cfg(feature = "gecko")]
+            #[cfg(any(feature = "servo-layout-2020", feature = "gecko"))]
             "contents" => Display::Contents,
             "inline-block" => Display::InlineBlock,
             #[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
             "inline-table" => Display::InlineTable,
             #[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
             "-webkit-flex" => Display::Flex,
             #[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
             "inline-flex" | "-webkit-inline-flex" => Display::InlineFlex,