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-inline][css-display] Does the root inline box replace anonymous inline boxes? #1383

Closed
Loirooriol opened this issue May 16, 2017 · 3 comments
Labels
Closed Accepted as Editorial Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-display-3 Current Work css-inline-3 Current Work Tracked in DoC

Comments

@Loirooriol
Copy link
Contributor

CSS Display refers to CSS 2.1 for flow layout, and 9.2.2.1 Anonymous inline boxes says

Any text that is directly contained inside a block container element (not inside an inline element) must be treated as an anonymous inline element.

But CSS inline says

The root inline box is an anonymous inline box which is automatically generated to hold all of the inline-level contents of a block container (if it has any).

What happens first? Is the text first wrapped inside an anonymous inline box according to CSS2.1, and then further wrapped inside the root inline box, together with surrounding inline-level boxes?

Or are all inline-level contents (including text) wrapped inside the root inline box, and thus the text is no longer directly contained inside the block container, and therefore no additional anonymous inline box is created to wrap the text?

@dbaron
Copy link
Member

dbaron commented May 16, 2017

The "root inline box" concept came later, and was intended (by me, at least) to replace the former rule on anonymous inline boxes that you quote.

@Loirooriol
Copy link
Contributor Author

Thanks, that's what I suspected. I think this should be mentioned in a note or something, otherwise people will expect the quote from CSS2.1 to still apply, and won't be clear what should happen.

@tabatkins tabatkins added css-inline-3 Current Work css-display-3 Current Work labels May 16, 2017
@tabatkins
Copy link
Member

Added a note referencing this to Display, in the "block container" definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted as Editorial Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-display-3 Current Work css-inline-3 Current Work Tracked in DoC
Projects
None yet
Development

No branches or pull requests

4 participants