mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 01:17:34 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
38
dom/xbl/test/file_bug591198_inner.html
Normal file
38
dom/xbl/test/file_bug591198_inner.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#b {
|
||||
-moz-binding: url("file_bug591198_xbl.xml#xbltest");
|
||||
}
|
||||
span {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function sendResults() {
|
||||
var res = {
|
||||
widths: []
|
||||
};
|
||||
|
||||
ps = document.getElementsByTagName('span');
|
||||
for (var i = 0; i < ps.length; i++) {
|
||||
res.widths.push(ps[i].offsetWidth);
|
||||
}
|
||||
|
||||
try {
|
||||
res.anonChildCount =
|
||||
SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('b')).length;
|
||||
}
|
||||
catch (ex) {}
|
||||
|
||||
parent.postMessage(JSON.stringify(res), "*");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="sendResults();">
|
||||
<div><span id=b>long long text here</span></div>
|
||||
<div><span>long long text here</span></div>
|
||||
<div><span>PASS</span></div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue