mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
display: contents
computes to block
on the root element
This commit is contained in:
parent
ef54bd6e58
commit
09dbf91e7b
2 changed files with 9 additions and 9 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue