Closed Bug 15268 Opened 20 years ago Closed 20 years ago

overlapping columns

Categories

(Core :: XML, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: endico, Assigned: nisheeth_mozilla)

References

()

Details

Attachments

(1 file)

this page displays fine with m9 but the "with css" and "with xml" columns
overlap with the sept 29 nightly build.
Attached file testcase of xml file
in yesterday's build, it looks like the right column wants to start at the same
coordinates no matter what content the left column contains. I didn't play with
the css file yet at all. This does the same thing in both viewer and apprunner.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Invalid. In the main CSS file, there is the following rule:

   Column {
     display: block;
     float: left;
     width: 470;
   }

Since the 'width' property has no units, it is ignored. (Lengths must ALWAYS
have units in CSS -- there are no default units. [1]). Since by default, floats
have a width of 0 and a min-width of "as small as possible", the floats are
sized to be the smallest size which will fit the "The XML"/"The CSS" bits. (The
gray panels inside the columns are block level, so they are not counted when
deciding on the miniumum width.)

To fix the problem, give some units (for example, 'px') to the 'width'
declaration. Mozilla is 100% correct AFAICT.

[1] There are many technical reasons for this. World experts on CSS agree that
having a 'default unit' is a bad idea... ;-)
Whiteboard: (py8ieh:will investigate...)
I made the suggested change to the css file and it works fine now. Thanks for
spotting the problem. You rock!
*blush*
Status: RESOLVED → VERIFIED
Verified invalid
You need to log in before you can comment on or make changes to this bug.