[Webkit-unassigned] [Bug 104485] Flexbox should ignore firstLine pseudo element.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 18 14:07:06 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=104485





--- Comment #14 from Tab Atkins <tabatkins at google.com>  2012-12-18 14:09:22 PST ---
(In reply to comment #13)
> (In reply to comment #0)
> > Flexbox should ignore firstLine pseudo element.
> > testcase:
> > <style> 
> >     div { display: -webkit-flex;  display: -moz-flex; display: flex; } 
> >     div::first-line { font-size: 10em;} 
> >     p:first-child { -webkit-order: 1; -moz-order: 1; order: 1;}
> > </style>
> > <div>
> >     <p>The first item.</p>
> >     <p>The second item.</p>
> > </div>
> > In above case, the flex item <p>(both the firet one and the second) should ignore "font-size: 10em;"
> > 
> > Spec[1] said that "None of the properties defined in this module apply to the ‘::first-line’ or ‘::first-letter’ pseudo-elements."
> > In addition, css2[2] define that "The :first-line pseudo-element can only be attached to a block container element."
> 
> Are you sure that's what this is saying?  I think the spec means that you can't, e.g., do
> div::first-line {
>   -webkit-order: 2;
> }
> 
> in an attempt to move div::first-line.  I don't see why the font-size shouldn't apply here.

Tony is correct.  Read the line again - the properties *in this spec* don't apply to ::first-line or ::first-letter.  That just mean you can't do something like Tony's example.  

CSS 2.1's text was written before Flexbox had been created, so don't read too much into the precise term "block container element".  It's actually undefined whether ::first-line/letter should apply to a flexbox.  I'll ask on www-style.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list