W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

[csswg-drafts] [css-inline][css-display] Does the root inline box replace anonymous inline boxes?

From: Loirooriol via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 May 2017 15:47:14 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-229081006-1494949631-sysbot+gh@w3.org>
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline][css-display] Does the root inline box replace anonymous inline boxes? ==
CSS Display refers to CSS 2.1 for flow layout, and [9.2.2.1 Anonymous inline boxes says](https://www.w3.org/TR/CSS21/visuren.html#anonymous)

> 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](https://drafts.csswg.org/css-inline-3/#root-inline-box) 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?


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1383 using your GitHub account
Received on Tuesday, 16 May 2017 15:47:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC