Closed Bug 11435 Opened 27 years ago Closed 26 years ago

{first-letter}{css1} :first-letter doesn't work on <body>

Categories

(Core :: Layout, defect, P2)

x86
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: allen.sam, Assigned: buster)

Details

(Keywords: css1, Whiteboard: [testcase] bloviate@yahoo.com)

Attachments

(1 file)

:first-letter does not seem to apply to the <body> and <html> elements -- for example, <html><head><style> :first-letter{font-weight:bold;} </style></head><body>Not bold</body></html> Would not produce a bold 'N', whereas a similar example that wraps the content in a <P> would. The body should be treated exactly the same as a <P> with regards to the :first-letter and :first-line pseudo classes (I think).
Whiteboard: [testcase] bloviate@yahoo.com
Attached file testcase
Status: NEW → ASSIGNED
Target Milestone: M10
Severity: minor → normal
Priority: P3 → P2
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed. It turns out that not all the places in the frame construction code handled first-letter style properly - in this particular case, it was the ContentAppended code because thats how body elements get filled up.
Status: RESOLVED → VERIFIED
verified fixed
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...
:first-letter/:first-line shouldn't affect HTML. :first-* do not inherit, and because BODY is an implied element and therefore content is _always_ in BODY.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: