Stop using XUL to implement the HTML marquee element
Categories
(Toolkit :: General, defect, P2)
Tracking
()
People
(Reporter: MatsPalmgren_bugz, Assigned: emilio)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
The frame tree for data:text/html,<marquee>x
looks like this:
Block(marquee)
XULScroll(div)
Box(div)
Box(div)
TableWrapper(div)
Table(div)
TableRowGroup(div)
TableRow(div)
TableCell(div)
Block(div)
Block(div)
Text "x"
...
We should replace the XUL boxes (XULScroll and Box) with CSS boxes.
Alternatively, remove support for <marquee>
altogether.
Reporter | ||
Comment 1•5 years ago
|
||
These XUL boxes comes from: https://searchfox.org/mozilla-central/source/toolkit/content/widgets/marquee.css#6,11
Changing those to a standard block
results in the desired HTMLScroll/Block boxes.
However, that appears to break the scrolling behavior so I guess we need some adjustments to marquee.js too.
Comment 2•5 years ago
|
||
FWIW the content is set at https://searchfox.org/mozilla-central/rev/b2ccce862ef38d0d150fcac2b597f7f20091a0c7/toolkit/content/widgets/marquee.js#404-430. I was expecting to simplify or change this markup in Bug 1425874 but it turned out to be tangential to the work needed to de-XBL it.
Ideally we'd remove the UA widget entirely and implement entirely in HTMLMarqueeElement using HTML and CSS animations (see https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/html_marquee_element.cc?l=61-77&rcl=d7e0211189498697ccc172476680adec021ded0d). But it's probably not worth the effort for this element.
Maybe the problem with the CSS change from Comment 1 won't be too hard to find by debugging marquee.js
Assignee | ||
Comment 3•4 years ago
|
||
And also to use more similar markup and setup between
horizontal/vertical marquee.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c3eb53d6395a
https://hg.mozilla.org/mozilla-central/rev/c7acd68206d1
Updated•4 years ago
|
Description
•