Closed Bug 4094 Opened 26 years ago Closed 26 years ago

{first-letter}{css1} first-letter color interfers with text-transform: capitalize

Categories

(Core :: Layout, defect, P3)

All
Mac System 8.5
defect

Tracking

()

VERIFIED DUPLICATE of bug 12760

People

(Reporter: vetere, Assigned: buster)

References

()

Details

(Keywords: css1, Whiteboard: [TESTCASE])

As you'll see at the attached URL, :first-letter { color: green; } causes a span of text-transform: capitalize to capitalize the second letter as well as the first. The entire span is turned green, as well
Assignee: troy → kipp
Status: NEW → ASSIGNED
petersen, is this Mac only?
Refering to Chris D. on this issue. She has some good information on the issue.
QA Contact: 4144 → 4110
Using 4/13 build on Win 95, Win NT, Win 98, Mac8.5 and Linux. With the test case provided, the page displays as follows: All first letters are capitalized and all text is green (cross-platform). I noted that there is no element assigned to the :first-letter property. Therefore, I do not know how the SPAN element would pick up this property. In the test case below, I have assigned the :first-letter property to <P> and then the page displays correctly (cross platform). <html><head><title>Bug</title> <style type=text/css> p:first-letter { color: green; } p { text-transform: capitalize } </style> </head><body> <p><SPAN> this text was capitalized </SPAN></p> </body></html> Is there really a bug here?
Disregard the question about whether this is a bug. I see the bug now. Because :first-letter has no assigned element, the value would apply to all elements which would mean rendering all first letters in green. The SPAN element would therefore pick up this value. It is a bug cross platform.
The problem is now that the first-letter is not coloured, although it is correctly capitalized. This can be seen clearly in demo 0 (the startup demo of the viewer app): resource:/res/samples/test0.html
Summary: first-letter color interfers with text-transform: capitalize → {css1} first-letter color interfers with text-transform: capitalize
Hardware: Macintosh → All
Summary: {css1} first-letter color interfers with text-transform: capitalize → {first-letter}{css1} first-letter color interfers with text-transform: capitalize
Whiteboard: [TESTCASE]
http://sine.com/dev/bug.html is the simplest testcase. Marking as [TESTCASE]... PROBLEM Text-transform prevents first-letter from being colored. ACTUAL RESULTS A capitalized, but not colored sentence. EXPECTED RESULTS A capitalized and colored sentence.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
1. The only remaining problem here is: If the first letter of a <body> element is in an inline element that is the direct descendent of <body>, it does not pick up the first-letter style from the body. I've written this up in bug 12760. 2. The original two problems mentioned in this report have been fixed. One of the problems was fixed when bug 11435 (which I derived from this report) was fixed recently. As noted above, I have reported a new bug 12760 to deal with further complications that have to do with :first-letter and <body>'s interaction with inline elements that are the immediate children of <body>. I am going to mark this bug as a dup of bug 12760 because the remaining problem addressed here is rather complex and I think bug 12760 describes it better. If there are any objections, please reopen this bug. Thanks. *** This bug has been marked as a duplicate of 12760 ***
Status: RESOLVED → VERIFIED
Verified dup of #12760 in regards to the first letter of a body tag/inline issues. Other issues written up or resolved
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...
You need to log in before you can comment on or make changes to this bug.