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

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

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Fri, 05 Dec 2014 15:12:28 +0100
Message-ID: <5481BD4C.901@igalia.com>
To: www-style@w3.org

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

BTW, just to be completely sure, please confirm that in the following
example the "t" from "text" should be red:

  #container::first-letter { color: red; }
  #flex { display: flex; }

<div id="container">
  <div id="flex">flex</div>

And the same would happen if #flex is positioned or floated.


[1] http://dev.w3.org/csswg/css-flexbox/#flex-containers
[2] http://dev.w3.org/csswg/css-grid/#grid-model
Received on Friday, 5 December 2014 14:13:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC