mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 166591 - marquee created dynamically (e.g. innerHTML) is not rendered, r+sr=bzbarsky
This commit is contained in:
parent
3dae18d659
commit
7a30e530d1
6
layout/reftests/marquee/166591-dynamic-1-ref.html
Normal file
6
layout/reftests/marquee/166591-dynamic-1-ref.html
Normal file
@ -0,0 +1,6 @@
|
||||
<html><head>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test"><marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee></div>
|
||||
</body>
|
||||
</html>
|
11
layout/reftests/marquee/166591-dynamic-1.html
Normal file
11
layout/reftests/marquee/166591-dynamic-1.html
Normal file
@ -0,0 +1,11 @@
|
||||
<html><head>
|
||||
<script>
|
||||
function init() {
|
||||
document.getElementById('test').innerHTML = '<marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee>';
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init();">
|
||||
<div id="test"></div>
|
||||
</body>
|
||||
</html>
|
1
layout/reftests/marquee/reftest.list
Normal file
1
layout/reftests/marquee/reftest.list
Normal file
@ -0,0 +1 @@
|
||||
== 166591-dynamic-1.html 166591-dynamic-1-ref.html
|
@ -80,6 +80,9 @@ include line-breaking/reftest.list
|
||||
# mathml/
|
||||
include mathml/reftest.list
|
||||
|
||||
# marquee/
|
||||
include marquee/reftest.list
|
||||
|
||||
# native-theme/
|
||||
include native-theme/reftest.list
|
||||
|
||||
|
@ -207,9 +207,6 @@
|
||||
onset="this.setAttribute('width', val);"
|
||||
/>
|
||||
|
||||
<!-- For sniffing purposes -->
|
||||
<field name="nsMarqueeVersion">"0.9.7"</field>
|
||||
|
||||
<method name="_set_scrollDelay">
|
||||
<parameter name="aValue"/>
|
||||
<body>
|
||||
@ -563,7 +560,10 @@
|
||||
|
||||
// init needs to be run after the page has loaded in order to calculate
|
||||
// the correct height/width
|
||||
window.addEventListener("load", lambda, false);
|
||||
if (document.readyState == "complete")
|
||||
lambda();
|
||||
else
|
||||
window.addEventListener("load", lambda, false);
|
||||
]]>
|
||||
</constructor>
|
||||
</implementation>
|
||||
|
Loading…
Reference in New Issue
Block a user