overflow:hidden causes some weird behaviour of div (it depends on the div inner text)

NEW
Unassigned

Status

()

15 years ago
11 years ago

People

(Reporter: chroot, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

15 years ago
User-Agent:       
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; ru-RU; rv:1.6) Gecko/20040206 Firefox/0.8

I wanted to report a simple bug where div computed height was doubled when in
had overflow:hidden set. But while preparing a test-case I discovered a mostly
weird behaviour of such a div - it depends on a text in that div! See an example
attached. All red bordered divs have overflow:hidden. The clientHeight of such
divs are doubled (2 * # of lines * line-height). But if I put overflow:xxx
inside the height becomes normal!

Reproducible: Always
Steps to Reproduce:




This behaviour was intoduced in latest release of Firefox.
(Reporter)

Comment 1

15 years ago
Created attachment 141134 [details]
the minimalistic test-case
(Reporter)

Comment 2

15 years ago
Cubsequent investigation showed that this is not connected with 'overflow:*'
text inside a DIV, it depens on whether the line has any whitespace or no.

Comment 3

15 years ago
Confirmed, same thing in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6)
Gecko/20040113 but not in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.5) Gecko/20031007. The bug can be observed with overflow:auto as well.

Bug 233828 might be connected to this one.

Comment 4

15 years ago
WFM: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040211

Comment 6

15 years ago
Sorry, my previous comment was wrong. I still can see the problem with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040310.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: dbaron → nobody
QA Contact: ian → style-system
You need to log in before you can comment on or make changes to this bug.