Should pseudo element (e.g. ::first-line) be innermost or outermost?

VERIFIED INVALID

Status

()

P3
normal
VERIFIED INVALID
16 years ago
15 years ago

People

(Reporter: harm.verhagen+bugzilla, Unassigned)

Tracking

({css2, css3})

Trunk
Future
css2, css3
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

16 years ago
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
layout, not DOM...
Assignee: jst → other
Component: DOM Style → Layout

Updated

16 years ago
Priority: -- → P3
Target Milestone: --- → Future

Comment 2

16 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>
Keywords: css2, css3, qawanted
Summary: url with css selector test, testcase fails (2) → Should pesudo element (e.g. ::first-line) be innermost or outermost?
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

15 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?
CSS2.1. (CSS3 will be getting an errata at some point.)

Comment 5

15 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
Last Resolved: 15 years ago
Resolution: --- → INVALID

Updated

15 years ago
Status: RESOLVED → VERIFIED
Keywords: qawanted
OS: Linux → All
Hardware: PC → All
You need to log in before you can comment on or make changes to this bug.