Closed Bug 304222 Opened 19 years ago Closed 19 years ago

DIV is squished if positioned beyond the width of the viewable area

Categories

(Core :: Layout: Positioned, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: u151698, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050809 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050809 Firefox/1.0+

For example, on an 800x600 screen, and with a document wider than that, say 1024
horizontally (enough room for the div), if I position the div on 810, the div is
compressed.

This occurs in Deer Park 20050809 and FireFox 1.06.

Reproducible: Always

Steps to Reproduce:
Attached file example
Example. Both should be identical, but only left is fine, and right is
squished.
The containing block is not the block with the dashed border as you might think.
It's the "initial containing block" which has the size of the viewport.
See http://www.w3.org/TR/CSS21/visudet.html#containing-block-details

You can add "position:relative" to the dashed block if you want it
to be the containing block for the inner DIVs.

The layout is correct given the markup/styling.

-> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Keywords: testcase
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: