Closed
Bug 316335
Opened 20 years ago
Closed 19 years ago
text-transform:capitalize sometimes fails to capitalize words at the start of a tag
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jhs, Assigned: dbaron)
References
()
Details
Attachments
(1 file)
|
1.96 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
<style type="text/css">
li { display:inline; text-transform:capitalize; }
</style>
[...]
<ul><li>first</li><li>second</li><li>n:th</li></ul>
renders as "First", "second", "n:th", not expected "First", "Second", "N:th".
The bug seems tied to the combination of display:inline and text-transform:capitalize, and somehow relate to whitespace, because if the first style is removed, or a space character is inserted before the text that ought to have been rendered uppercase, the problem goes away.
Reproducible: Always
Steps to Reproduce:
1. visit test case URL
| Reporter | ||
Comment 1•20 years ago
|
||
And, as pointed out in the testcase page, in a less stripped-down real-world case, the exact opposite behaviour has been seen too -- first, Second, N:th -- see here:
http://ecmanaut.blogspot.com/2005/10/spoil-yourself-with-adblock.html
Version: unspecified → 1.5 Branch
Updated•20 years ago
|
Assignee: nobody → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → ian
Version: 1.5 Branch → 1.8 Branch
Comment 2•19 years ago
|
||
Testcase URI is not resolving. Please attach the testcase to the bug.
Keywords: qawanted
Comment 3•19 years ago
|
||
Resolves for me, this minute, anyway.
Comment 4•19 years ago
|
||
Seems invalid to me, though: having made li inline, and with no whitespace, it might just as well be <b>f</b><em>i</em><strong>r</strong><i>st</i>, which looks like one word to me, with the margin-left in the test case or not.
| Assignee | ||
Comment 5•19 years ago
|
||
Yep, it's all one word. Thanks for catching that.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•