[Webkit-unassigned] [Bug 84834] CSS Specificity: First-line style(if present) is always applied

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 25 21:39:35 PDT 2012


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


Shane Stephens <shanestephens at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
                 CC|                            |shanestephens at google.com




--- Comment #2 from Shane Stephens <shanestephens at google.com>  2012-04-25 21:39:35 PST ---
because ::first-line is a pseudo-element selector, div::first-line doesn't select the same thing as #div1 or div.divclass. The test case you provide demonstrates expected behaviour - you can think about the pseudo-element selector as a selector that introduces extra structure to the document and then styles the structure that is created:

<div class="divclass"><::first-line>Filler Text Filler Text Filler Text</::first-line><br>...</div>

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