Closed
Bug 400826
Opened 17 years ago
Closed 17 years ago
text-transform ::first-letter and ::first-line affects whole element instead of only the first letter/line
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla1.9beta2
People
(Reporter: me, Assigned: roc)
References
Details
(Keywords: testcase, Whiteboard: [dbaron-1.9:RwCt])
Attachments
(4 files)
1.48 KB,
text/html
|
Details | |
1015 bytes,
text/html
|
Details | |
2.33 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
1.77 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007102205 Minefield/3.0a9pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007102205 Minefield/3.0a9pre text-transform uppercase/lowercase in a ::first-letter/::first-line rule is applied to the whole element instead of only the first letter/line. Other formatting rules are correctly only applied to the first elements. The problem disappears if any font-* rules are used (see second paragraph in the testcase). Reproducible: Always Steps to Reproduce: 1. Open the testcase with a current nightly build 2. Open the testcase in Firefox 2 3. Compare the rendering (Firefox 2 renders it correctly) Actual Results: The first line of the first paragraph is red and capitalized, the rest of the paragraph is black but also in uppercase. Expected Results: The first line of the first paragraph is red and capitalized, the rest of the paragraph is in lowercase and black. I have reproduced this bug in current nightly builds on both mac and windows.
Reporter | ||
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
Duplicate of bug 287088?
Comment 3•17 years ago
|
||
Confiming for now and reassigning.
Status: UNCONFIRMED → NEW
Component: Layout: Fonts and Text → Style System (CSS)
Ever confirmed: true
Keywords: testcase
QA Contact: layout.fonts-and-text → style-system
Whiteboard: DUPEME
Version: unspecified → Trunk
Reassigning back.
Component: Style System (CSS) → Layout: Fonts and Text
QA Contact: style-system → layout.fonts-and-text
Reporter | ||
Comment 5•17 years ago
|
||
I've spent about half an hour searching for this bug before filing it to make absolutely sure it was not a duplicate… Oh well, sorry.
Assignee | ||
Comment 6•17 years ago
|
||
Is this a regression?
Comment 7•17 years ago
|
||
Well, Fx 2.0.0.8 renders this correctly. That makes it a regression. This bug is a bit similar to bug 392435 (now fixed) which was a regression from bug 385270. When testing the patch in bug 392435, iirc I tested also with text-transform. Maybe it regressed again. I'll check.
Comment 8•17 years ago
|
||
Ok, this regressed again: (Mac OS X builds) 2007091716 Minefield/3.0a8pre works (tinderbox build) 2007091804 Minefield/3.0a8pre fails http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-09-17+15%3A30%3A00&maxdate=2007-09-18+03%3A30%3A00&cvsroot=%2Fcvsroot
Assignee | ||
Comment 9•17 years ago
|
||
Looks like the testcase in bug 392435 that I checked in doesn't test text-transform. Even if it did, the fact that changing the font properties makes the text-transform work as well probably would have masked this bug.
Assignee: nobody → roc
Flags: blocking1.9?
Assignee | ||
Updated•17 years ago
|
Whiteboard: DUPEME
Comment 10•17 years ago
|
||
Interesting test case using font-variant: small-caps; lifted from the CSS 2.1 test suite. Resize the window to see the changes in the first line (contains <strong> elements)
Assignee | ||
Comment 12•17 years ago
|
||
We shouldn't build the styles array for transformed textruns assuming every frame in a flow has the same style; instead we should build it frame by frame.
Attachment #286242 -
Flags: review?(smontagu)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs review]
Updated•17 years ago
|
Attachment #286242 -
Flags: review?(smontagu) → review+
Assignee | ||
Updated•17 years ago
|
Flags: blocking1.9? → blocking1.9+
Whiteboard: [needs review] → [needs landing]
Whiteboard: [needs landing] → [needs landing][dbaron-1.9:RwCt]
Assignee | ||
Updated•17 years ago
|
Priority: -- → P3
Comment 13•17 years ago
|
||
Checking in layout/generic/nsTextFrameThebes.cpp; /cvsroot/mozilla/layout/generic/nsTextFrameThebes.cpp,v <-- nsTextFrameThebes.cpp new revision: 3.118; previous revision: 3.117 done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing][dbaron-1.9:RwCt] → [dbaron-1.9:RwCt]
Target Milestone: --- → mozilla1.9 M10
Updated•17 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 14•17 years ago
|
||
I'll commit this when I get a chance
You need to log in
before you can comment on or make changes to this bug.
Description
•