:first-letter and :first-line pseudo-elements do not work in FIELDSET

VERIFIED FIXED

Status

()

Core
CSS Parsing and Computation
P3
normal
VERIFIED FIXED
19 years ago
18 years ago

People

(Reporter: Christine Hoffman, Assigned: buster)

Tracking

({css1})

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

19 years ago
Using the following builds:

Windows: 01-12-11
Mac: 01-05-15
Linux: 01-12-11

Open the attached file.
Expected result: :first-letter and :first-line pseudo-elements should work in
FIELDSET
Actual result: :first-letter and :first-line pseudo-elements do not work in
FIELDSET
(Reporter)

Comment 1

19 years ago
Created attachment 4193 [details]
testcase to demonstrate problem

Comment 2

19 years ago
These pseudo-elements don't work for FIELDSET and FORM:
- In FIELDSET because the content of the fieldset is itself a pseudo-element (see
:fieldset-content in html.css) and a pseudo-element cannot contain other pseudo-
elements.
- In FORM, I think that the explanation is that the form element has its own
space manager (see NS_BLOCK_SPACE_MGR in nsCSSConstructor.cpp).

I realize that my explanations may not sound very convincing and that I don't
understand myself the very root of the problems (like why do we have a 'fieldset-
content' pseudo-element, or why can't we access the first-line and first-letter
when an element has its ownn space manager?) so I'm going to ask Troy to give his
opinion on the matter before I follow my feelings and close this bug as WontFix.

Updated

19 years ago
Status: NEW → ASSIGNED

Updated

19 years ago
Assignee: pierre → kipp
Status: ASSIGNED → NEW

Comment 3

19 years ago
Troy response is:

I don't know of a good reason why :first-letter and :first-line shouldn't work

inside of fieldsets. I suspect it's just because Kipp didn't think about those

cases when we added the support to the frame construction code.

--

Since it's a frame construction problem for a block element, I'm going to

cowardly reassign it to Kipp's bug list and focus on other more down-to-earth

style issues.
Keywords: css1
Migrating from {css1} to css1 keyword. The {css1}, {css2}, {css3} and {css-moz}
radars should now be considered deprecated in favour of keywords.
I am *really* sorry about the spam...
(Assignee)

Comment 5

19 years ago
esoteric enough problem that it should wait until after beta entry. M16
Target Milestone: M16

Updated

19 years ago
Summary: {css1} :first-letter and :first-line pseudo-elements do not work in FIELDSET → :first-letter and :first-line pseudo-elements do not work in FIELDSET
(Assignee)

Comment 6

19 years ago
mine! mine mine mine!  all mine!  whoo-hoo!
Assignee: kipp → buster
(Assignee)

Comment 7

18 years ago
first-letter bug fixes post beta2
Status: NEW → ASSIGNED
Target Milestone: M16 → M18
(Assignee)

Comment 8

18 years ago
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M18 → M19
(Assignee)

Comment 9

18 years ago
This has been fixed for a while now.
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
(Reporter)

Comment 10

18 years ago
Verified fixed (had to substitute transitional doctype) - need to see why the 
strict messes doc up. 
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.