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

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