LibWeb: Always blockify the root element

This is what the spec tells us to do:

    The root element’s display type is always blockified,
    and its principal box always establishes an independent
    formatting context.

    Additionally, a display of contents computes to block
    on the root element.

Spec link: https://drafts.csswg.org/css-display/#root

Fixes #1562
This commit is contained in:
Andreas Kling 2024-09-29 10:54:46 +02:00 committed by Andreas Kling
commit f1be662f68
Notes: github-actions[bot] 2024-09-29 09:47:03 +00:00
12 changed files with 44 additions and 12 deletions

View file

@ -0,0 +1 @@
<html style="display:contents"><body>lol