Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-display-3] Can the root float? #8196

Open
fantasai opened this issue Dec 7, 2022 · 3 comments
Open

[css-display-3] Can the root float? #8196

fantasai opened this issue Dec 7, 2022 · 3 comments
Labels
Agenda+ Later Lower-priority items that are flagged for CSSWG discussion css-display-3 Current Work

Comments

@fantasai
Copy link
Collaborator

fantasai commented Dec 7, 2022

In #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 shows that Blink and Webkit can float the root, and Gecko can't. Also, among the print implementations some support float, some don't, and some don't have proper block layout on the root

@fantasai fantasai added css-display-3 Current Work Agenda+ Later Lower-priority items that are flagged for CSSWG discussion labels Dec 7, 2022
@fantasai fantasai added this to Low-urgency Issues in Agenda Scratchpad Dec 7, 2022
@astearns astearns added this to Unslotted in TPAC 2023 agenda Sep 7, 2023
@bfgeek
Copy link

bfgeek commented Sep 11, 2023

My (strong) preference here is that the ICB layout context should contain minimal "special" logic. E.g. if somebody wants to float the root - let it float!

@astearns
Copy link
Member

astearns commented Mar 4, 2024

@emilio would Gecko have any concerns with specifying that the root can float?

@emilio
Copy link
Collaborator

emilio commented Mar 4, 2024

Not in principle, though I don't have the context for that limitation. Maybe @dbaron does?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agenda+ Later Lower-priority items that are flagged for CSSWG discussion css-display-3 Current Work
Projects
Agenda Scratchpad
Low-urgency Issues
Development

No branches or pull requests

4 participants