[csswg-drafts] Pull Request: Define root element (as a term, and its display type)

astearns has just labeled a pull request from fantasai for https://github.com/w3c/csswg-drafts as "Needs Testcase (WPT)":

== Define root element (as a term, and its display type) ==
Addresses
- https://github.com/w3c/csswg-drafts/issues/7207
- https://github.com/w3c/csswg-drafts/issues/6480
- https://github.com/w3c/csswg-drafts/issues/7786

by
- defining "root element" as a term in the glossary
- defining that the root element's box always creates an independent formatting context
- adding a subheading over the paragraph about root element special behavior
- defining the ICB to establish a block formatting context so that the root element's box is fully defined to be a block-level box

This last bit is implemented (as [demonstrated](https://www.software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Chtml%20style%3D%22max-width%3A%2050%25%3B%20border%3A%20solid%3B%20margin%3A%20auto%3B%20float%3A%20right%22%3EABC) by `float`) in WebKit and Blink; Firefox seems to have special layout for the root that doesn't honor `float`, but is otherwise like block layout. We could say that `float` is ignored or whatever, but definitely most of the behavior (margins, alignment, sizing) matches block layout.

See https://github.com/w3c/csswg-drafts/pull/8095


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 December 2022 18:02:26 UTC