diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/bidi/1161752.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/bidi/1161752.html')
-rw-r--r-- | layout/reftests/bidi/1161752.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/layout/reftests/bidi/1161752.html b/layout/reftests/bidi/1161752.html new file mode 100644 index 000000000..e3fa245f5 --- /dev/null +++ b/layout/reftests/bidi/1161752.html @@ -0,0 +1,73 @@ +<!DOCTYPE html> +<html> + <head> + <title>Testcase for bug 1161752</title> +<style> + object.overlapping-green + { + height: 56px; + width: 500px; + vertical-align: top; + } + + div.red-overlapped-reference + { + background-color: red; + bottom: 56px; + height: 50px; + left: 300px; + position: relative; + width: 100px; + z-index: -1; + } +</style> +<script> +function runTest1() { + var root = document.querySelector('#test1').contentDocument.documentElement; + root.style.direction='rtl'; + root.offsetHeight; +} +function runTest2() { + var root = document.querySelector('#test2').contentDocument.documentElement; + root.style.display='none'; + root.offsetHeight; + root.style.display='block'; + root.offsetHeight; +} +function runTest3() { + var doc = document.querySelector('#test3').contentDocument; + var root = doc.documentElement; + doc.removeChild(root); + var newRoot = root.cloneNode(true); + newRoot.setAttribute('dir','rtl'); + doc.appendChild(newRoot); +} +function runTest4() { + var root = document.querySelector('#test4').contentDocument.documentElement; + root.style.direction='rtl'; + root.offsetHeight; +} +</script> + </head> + <body> + + <p>Test passes if there are three filled green rectangles and <strong>no red</strong>.</p> + + + <div><object id="test1" data="1161752-1-embed.html" type="text/html" class="overlapping-green" onload="runTest1()">This test requires a browser with capability to embed an HTML document thanks to the HTML <object> element.</object></div> + <div class="red-overlapped-reference"></div> + + <div><object id="test2" data="1161752-2-embed.html" type="text/html" class="overlapping-green" onload="runTest2()">This test requires a browser with capability to embed an HTML document thanks to the HTML <object> element.</object></div> + <div class="red-overlapped-reference"></div> + + <div><object id="test3" data="1161752-3-embed.html" type="text/html" class="overlapping-green" onload="runTest3()">This test requires a browser with capability to embed an HTML document thanks to the HTML <object> element.</object></div> + <div class="red-overlapped-reference"></div> + + <div><object id="test4" data="1161752-4-embed.html" type="text/html" class="overlapping-green" onload="runTest4()">This test requires a browser with capability to embed an HTML document thanks to the HTML <object> element.</object></div> + <div class="red-overlapped-reference"></div> + + <div><object id="test5" data="1161752-5-embed.html" type="text/html" class="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML <object> element.</object></div> + <div class="red-overlapped-reference"></div> + + </body> +</html> |