W3C home > Mailing lists > Public > www-style@w3.org > December 2014

Re: [css-grid] Editorial: Complete ::first-line and ::first-letter restriction

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 18 Dec 2014 11:29:24 -0800
Message-ID: <CAAWBYDDerZEMLShLohESqXgXRcYNP7kgUOVKbjk5PqyqMeqVaw@mail.gmail.com>
To: Manuel Rego Casasnovas <rego@igalia.com>
Cc: www-style list <www-style@w3.org>
On Fri, Dec 5, 2014 at 6:12 AM, Manuel Rego Casasnovas <rego@igalia.com> wrote:
> Hi,
>
> I've noticed that the Flexbox spec [1] is more descriptive regarding the
> ::first-line and ::first-letter restriction:
>
> "the ::first-line and ::first-letter pseudo-elements do not apply to
> flex containers, and flex containers do not contribute a first formatted
> line or first letter to their ancestors."
>
> I guess that the Grid spec [2] could be updated to include the same
> thing related to the first formatted line, current text is:
>
> "the ::first-line and ::first-letter pseudo-elements do not apply to
> grid containers."

Yup, I've updated Grid to match Flexbox here.

> BTW, just to be completely sure, please confirm that in the following
> example the "t" from "text" should be red:
>
> <style>
>   #container::first-letter { color: red; }
>   #flex { display: flex; }
> </style>
>
> <div id="container">
>   <div id="flex">flex</div>
>   text
> </div>
>
> And the same would happen if #flex is positioned or floated.

Correct.

~TJ
Received on Thursday, 18 December 2014 19:30:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:52 UTC