Closed
Bug 160837
Opened 23 years ago
Closed 23 years ago
css white-space and width don't work together
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: macarie.neculai, Assigned: attinasi)
References
()
Details
Attachments
(1 file)
|
2.19 KB,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; ro-Ro; rv:1.1b) Gecko/20020721
BuildID: 2002072104
the width of the paragraph is taken from the value specified rather from the
text itself when using white-space property.
The text with "white-space:nowrap;width=200px" and the text with
"white-space:pre;width=200px" should have the same bounding box as the other,
without the width property.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
| Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
> the width of the paragraph is taken from the value specified rather from the
> text itself when using white-space property.
Yep. That's exactly what's supposed to happen. If you specify a width, the
paragraph should be that width (assuming you also specify min-width, that is;
there is some weasel-room for a useragent to just make up a min-width if it's
not specified).
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Comment 3•23 years ago
|
||
Reporter: MSIE reads 'width' as 'min-width', that causes this difference. If you
set both Mozilla will behave as IE.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•