Closed Bug 265631 Opened 20 years ago Closed 20 years ago

[FIXr]Marquee with direction up or down and no height set whatsoever doesn't get 200px height anymore

Categories

(Core :: Layout, defect, P3)

x86
All
defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha5

People

(Reporter: martijn.martijn, Assigned: bzbarsky)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041020 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041020 Firefox/0.9.1+

This is a regression from bug 262708. 
The problem is that something <marquee direction="up"> gets the height of the
content that is inside now, when no height is set for the marquee.
Previously it got a 200px height, and that is correct behavior, since that is
what IE is doing also.

Reproducible: Always
Steps to Reproduce:
1. See testcase
2.
3.

Actual Results:  
Height of the marquee is as large as the content inside the marquee

Expected Results:  
The marquee should become 200px high.
Attached file Testcase
Keywords: testcase
OS: Windows 2000 → All
Attached patch PatchSplinter Review
The problem is that the computed style is nonzero and non-auto -- it's the
intrinsic height...

So Martijn's suggestion from bug 265537 is the right way to go (except I
changed his second rule to catch cases like |height=""| or |height="0"| and not
switch to auto height for those).
Attachment #163027 - Flags: superreview?(jst)
Attachment #163027 - Flags: review?(doronr)
Attachment #163027 - Flags: review?(doronr) → review+
Comment on attachment 163027 [details] [diff] [review]
Patch

sr=jst
Attachment #163027 - Flags: superreview?(jst) → superreview+
Assignee: nobody → bzbarsky
Priority: -- → P3
Summary: Marquee with direction up or down and no height set whatsoever doesn't get 200px height anymore → [FIXr]Marquee with direction up or down and no height set whatsoever doesn't get 200px height anymore
Target Milestone: --- → mozilla1.8alpha5
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: