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

[csswg-drafts] [css-inline][css-pseudo] Interaction of root inline box and ::first-line

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

== [css-inline][css-pseudo] Interaction of root inline box and ::first-line ==
CSS Inline defines the [root inline box](https://drafts.csswg.org/css-inline-3/#root-inline-box) as

> 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).

CSS Pseudo-elements defines [`::first-line`](https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo) as

> The `::first-line` pseudo-element’s generated box behaves similar to that of an inline-level element, but with certain restrictions.

> A user agent must act as if the fictional start tags of a `::first-line` pseudo-element were nested just inside the innermost enclosing block-level element.

So `::first-line` is a restricted inline-level, and inline-levels are wrapped inside the root inline box, which is inline, and inline-level fragments in the first line are wrapped inside the `::first-line`.

Which one is inside of which one?

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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:12 UTC