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)
Tracking
()
VERIFIED
FIXED
M10
People
(Reporter: allen.sam, Assigned: buster)
Details
(Keywords: css1, Whiteboard: [testcase] bloviate@yahoo.com)
Attachments
(1 file)
|
158 bytes,
text/html
|
Details |
: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).
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.
Comment 4•26 years ago
|
||
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...
Comment 5•26 years ago
|
||
: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.
Description
•