Closed
Bug 458677
Opened 16 years ago
Closed 16 years ago
Layout gets width wrong for white-space:pre when TAB (U+0009) characters present
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 411059
People
(Reporter: cchittleborough, Unassigned)
References
()
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 XPCOMViewer/1.0a1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 XPCOMViewer/1.0a1
When elements with white-space:pre containing TAB (U+0009) characters have display:table or display:table-cell, those TABs are rendered correctly (8 'column' tab stops) but the element width is calculated as though the TABs were normal characters.
Reproducible: Always
Steps to Reproduce:
1. Create a bordered table with a shrink-to-fit-contents cell containing a PRE element with one line.
2. Make that line consist of a few TABs followed by text.
Actual Results:
The table will be too narrow for the text, causing the text to go past the right boundary of the table.
Expected Results:
The table should be sized to contain the text.
There's an obvious workaround: replace TABs in PRE elements with appropriate numbers of SP (U+0020) characters.
Reporter | ||
Comment 1•16 years ago
|
||
The test-case shows correctly in Firefox 3.1b1pre, so this will probably need to be duped to a trunk bug that was fixed.
Comment 3•16 years ago
|
||
(In reply to comment #2)
> The test-case shows correctly in Firefox 3.1b1pre, so this will probably need
> to be duped to a trunk bug that was fixed.
Indeed :-)
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•