Closed Bug 122865 Opened 20 years ago Closed 18 years ago

Css box width miscalculated for preformatted text, which overflows box

Categories

(Core :: Layout, defect, P4)

defect

Tracking

()

RESOLVED INVALID
Future

People

(Reporter: gradha, Assigned: attinasi)

References

()

Details

(Keywords: css1, html4, testcase, Whiteboard: [bae:20020206][CSS1-4.1][HTML4-9.3.4])

Attachments

(2 files)

Given a preformatted text (one contained inside <pre>..</pre>), you can force
the css drawn box to be smaller than the text playing with your brosers' window
width.

The expected behaviour is to have the drawn box at least as wide as the
preformatted text, even if the browser's window is not wide enough to show the
whole preformatted text. Looks like IE 5.5 get's this right.
Attached file Testcase
Modify your browser's window width to make it smaller and see the box rendered
incorrectly.
Keywords: css1, testcase
Summary: Box width miscalculated for preformatted text → Css box width miscalculated for preformatted text
Summary: Css box width miscalculated for preformatted text → Css box width miscalculated for preformatted text, which overflows box
Build 2002020415 still shows the bug.
confirming the bug, setting to future, P4, already set to trivial
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Priority: -- → P4
Hardware: PC → All
Whiteboard: [bae:20020206]
Target Milestone: --- → Future
Keywords: html4
Whiteboard: [bae:20020206] → [bae:20020206][CSS1-4.1][HTML4-9.3.4]
The width of a block (which is what blockquote is) depends on its parent only,
not on its children. IE is implementing a weasel-hole in the CSS2 box model
which basically says that any horizontal size you want is OK regardless of the
CSS set on the element or any other criteria; that weasel hole is likely to be
removed from the upcoming CSS 2.1.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.