From 8f89f59329563f0bae6fb7e38bf4ba8bb574087c Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 23 Oct 2019 17:28:03 +0200 Subject: [PATCH] 2020: parse `display: contents` --- components/style/values/specified/box.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index b66b03b47b8..58d51f8c006 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -619,7 +619,7 @@ impl Parse for Display { // 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"))]