Closed
Bug 188954
Opened 23 years ago
Closed 22 years ago
Should pseudo element (e.g. ::first-line) be innermost or outermost?
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
VERIFIED
INVALID
Future
People
(Reporter: harm.verhagen+bugzilla, Unassigned)
References
()
Details
(Keywords: css2, css3)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212
The URL has some webbrowser tests.
The test mentioned above failed for mozilla (1.3a with xft on RedHat 8.0)
I did not make the test, I do not know if mozilla is at fault or the testcase.
I submitted a few bugs today resulting from tests of http://www.hixie.ch
please let me know if this isn't usefull
Reproducible: Always
Steps to Reproduce:
1. Goto url
2.
3.
Actual Results:
1 line displayed in red (yellow letters)
Expected Results:
line is displayed in green, as described on the page
Updated•23 years ago
|
Priority: -- → P3
Target Milestone: --- → Future
Comment 2•22 years ago
|
||
I have no idea what "if UA puts ::first-line innermost)" means, but
it seems CSS2 spec and CSS3 spec recommand different parsing:
CSS2 <http://www.w3.org/TR/REC-CSS2/selector.html#first-line-pseudo>
<p><span>blah</span></p> -> <p><p:first-line><span>blah</span></p::first-line></p>
CSS3 <http://www.w3.org/TR/css3-selectors/#first-line>
<p><span>blah</span></p> -> <p><span><p::first-line>blah</p::first-line></span></p>
Summary: Should pesudo element (e.g. ::first-line) be innermost or outermost? → Should pseudo element (e.g. ::first-line) be innermost or outermost?
Comment 3•22 years ago
|
||
Hixie,
CSS21 and CSS3 are both different. CSS21 says first-line should be outermost:
<P>
<P:first-line>
<SPAN class="test"> This is a somewhat long HTML paragraph that will </SPAN>
</P:first-line>
<SPAN class="test"> be broken into several lines.</SPAN> The first line will be
identified by a fictional tag sequence. The other lines will be treated as
ordinary lines in the paragraph.
</P>
While CSS3 specifies innermost:
<p>
<span class="test">
<p::first-line> This is a somewhat</p::first-line>
</span>
<p::first-line> long HTML paragraph that</p::first-line> will be broken into
several lines. The first line will be identified by a fictional tag sequence.
The other lines will be treated as ordinary lines in the paragraph.
</p>
The CSS21 is made 'later', but the CSS3 specification is 'newer'. Which one
should be followed?
Comment 4•22 years ago
|
||
CSS2.1. (CSS3 will be getting an errata at some point.)
Comment 5•22 years ago
|
||
This bug is INVALID (see comment 3 and comment 4).
Ian, can you fix that test case if you find time?
<http://www.hixie.ch/tests/adhoc/css/selectors/first-line/001.html>
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Updated•22 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•