display: contents computes to block on the root element

This commit is contained in:
Simon Sapin 2020-04-17 14:36:03 +02:00
parent ef54bd6e58
commit 09dbf91e7b
2 changed files with 9 additions and 9 deletions

View file

@ -354,7 +354,7 @@ impl Display {
///
/// Also used for :root style adjustments.
pub fn equivalent_block_display(&self, _is_root_element: bool) -> Self {
#[cfg(feature = "gecko")]
#[cfg(any(feature = "servo-layout-2020", feature = "gecko"))]
{
// Special handling for `contents` and `list-item`s on the root element.
if _is_root_element && (self.is_contents() || self.is_list_item()) {