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

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


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.

Thanks,
  Rego

[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