Open Bug 381905 Opened 17 years ago Updated 2 years ago

Marquees don't resize with container (resizing <marquee> itself doesn't work either)

Categories

(Core :: Layout, defect)

1.8 Branch
defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: testcase)

Attachments

(3 files, 1 obsolete file)

Attached file testcase (obsolete) —
When a Marquee's container (e.g. table, div, or full page etc) is resized, the marquee remains the same width.

STEPS TO REPRODUCE:
0. Start with a not-very-wide Firefox window.
1. Load testcase.
2. Resize browser to be wider.

OBSERVED BEHAVIOR:
Marquee only goes partway across its container (traversing its original width) before resetting itself.

EXPECTED BEHAVIOR:
Marquee should go all the way across its container, even if the window is resized.  Opera and Konqueror both show this expected behavior.
Comment on attachment 265974 [details]
testcase

><HTML><HEAD><TITLE>Bug 381905</TITLE></HEAD><BODY>
><DIV style="background: rgb(0, 238, 238) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 75%;" id="myDiv">
><MARQUEE>a</MARQUEE>
></DIV>
></BODY></HTML>
Attached file testcase
(previous testcase had wrong bug number in title)
Attachment #265974 - Attachment is obsolete: true
This test case auto-resizes itself using javascript, so you don't need to resize the browser window to see the buggy behavior.
Keywords: testcase
Summary: Marqees don't resize with container → Marquees don't resize with container
I have some patches in bug 235564 that would fix this, I think.
(except that those patches are not ideal)
Depends on: 235564

(In reply to Daniel Holbert [:dholbert] (blocking needinfo/review, due to AFK on parental leave, returning Jan 21) from comment #0)

When a Marquee's container (e.g. table, div, or full page etc) is resized,
the marquee remains the same width.

Resizing the <marquee> element itself doesn't work either.

Attachted testcase works in Chrome, Safari, IE

I believe <marquee> has been reimplemented using something other than XBL, in the past few months, so there's a chance testcase 3 could be a recently-introduced regression from that reimplementation. (I'm writing this comment from a phone and don't have a computer handy, so I can't test old nightlies at the moment - but it'd be worth it for someone to try testcase 3 in a nightly from a year ago or so., to see if it's a recent regression.)

I believe the recent reimplement of <marquee> doesn't introduce a regression. I test testcase 3 on Nightly 2018-06-31 and 2014-06-31, and it dosen't work on both.

The text "mozilla" stops bouncing and disappears after clicking the "30%" or "50%" width button. And on "70%", the text bounces in a smaller range instead of the full range of the yellow marquee element.

Summary: Marquees don't resize with container → Marquees don't resize with container (resizing <marquee> itself doesn't work either)
Blocks: 1070510
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: