[csswg-drafts] [css-display-3] Can the root float? (#8196)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-display-3] Can the root float? ==
In https://github.com/w3c/csswg-drafts/pull/8095 we established that:
- the root establishes an independent formatting context
- the ICB establishes a block formatting context (thus an in-flow root is a block-level box)

This fully defines the root box’s layout.

However, we noted that some implementations don't handle `float` on the root element, so we have a question: should `float` apply to the root element? If not, is that a used value of `none` or do we compute it to `none`?

Current [testing](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) shows that Blink and Webkit can float the root, and Gecko can't. Also, [among the print implementations](https://printcss.live/Wpmbk6razJ) some support float, some don't, and some don't have proper block layout on the root

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8196 using your GitHub account


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

Received on Wednesday, 7 December 2022 19:15:49 UTC