Closed
Bug 152990
Opened 23 years ago
Closed 23 years ago
Contents of PRE sticking out the right side of its box
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: edward.kuns, Assigned: dbaron)
References
()
Details
I don't know which browser is compliant with the standards here, but IE and
Mozilla differ. I give this warning because I know that Mozilla could be
technically compliant with the standards here while giving the unexpected
layout. Anyway, For IE5.5SP2, the grey background for PRE elements extends
beyond the normal width for the PRE items that are wider than the width of the
rest of the text on the page.
For Mozilla rendering the same page, the grey background on all PRE elements is
exactly the same width, but in some of them the text sticks out the right of the
grey box.
Sadly, I am not familiar enough with the details of the CSS standard to know
which browser is correct in its layout. Just in case Mozilla is not correct, I
wanted to file a bug report.
Assignee | ||
Comment 1•23 years ago
|
||
Mozilla is correct. See the rules for computation of 'auto' widths in the CSS
spec. They don't mention content.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Comment 2•23 years ago
|
||
Correct; per CSS, content can overflow its box, and for inflow content, the box
should not shrink to fit its contents.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•