Closed
Bug 40709
Opened 25 years ago
Closed 25 years ago
DIV and SPAN do not correctly show scrollbars when OVERFLOW-Y:SCROLL is used
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: asleson, Assigned: pierre)
Details
(Keywords: css1, verifyme)
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; MSN 2.6; Windows 98)
BuildID: 2000033112
Consider the HTML pasted in the "Additional Information" window. The DIV
should produce a box that is 100px wide by 200 px tall. On overflow in the x
direction, a scrollbar should appear on the right vertical. This does not
happen.
Reproducible: Always
Steps to Reproduce:
Open the pasted HTML in the "Additional Information" window in the browser. It
will obviously be wrong. Unfortunately, it does appear correctly in (ahem) IE5.
Actual Results: Instead of producing a 100px wide by 200px tall area, the DIV
expands to display the whole text.
Expected Results: The DIV should have a scrollbar on the right vertical side.
SPAN doesn't work either.
<HTML>
<HEAD>
<TITLE>DIV TEST</TITLE>
</HEAD>
<BODY>
<DIV STYLE="WIDTH:100; HEIGHT:200; OVERFLOW-X:HIDDEN; OVERFLOW-Y:SCROLL">
ASDF ASD FASD FASDF ASDF ASDF ASDF ASDFKLASDFJ A;SDJ FA;SLDF J;ASJF
AL;KSDJ FALS;DKJ FA;LSDF JA;LSKF DJ;ASLF JDALSDKF JA;LSFJ DALSDJF ASDF
AL;SDF JALSDF JA;SFJ D;ASJF DA;LSF DJ;ASFDJ ;ALSJF A;SF
A;LSKF DJA;LSKF JD;ALSJF DA;SJFDA;SFJD;ASLFJ DA;SLJF
AL;SKDFJ ALSKFJ DASLKFJD A;SJF A;LSKJF
</DIV>
%3
Comment 1•25 years ago
|
||
'width' and 'height' will only work if you give them units. It is invalid to
not give them units.
'overflow-x' and 'overflow-y' are not valid CSS properties, and are therefore
ignored by Mozilla.
SPAN (and other inline elements) do not take any values for 'width' per the
CSS specification.
See: http://www.w3.org/TR/REC-CSS2/
This bug is therefore INVALID. However, if you still see problems after
correcting your document, please file a new bug!
Thanks for your input!
You need to log in
before you can comment on or make changes to this bug.
Description
•