blob: 3edeb75378299d60bf9c1c8652518a481a674769 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<style>
script { display: block; }
</style>
<script>
description("Test that script can access its own renderer when executing");
document.documentElement.offsetTop;
script = document.createElement('script');
script.textContent = 'shouldBeTrue("script.offsetWidth > 0")';
document.documentElement.appendChild(script);
shouldBeTrue('script.offsetWidth > 0');
</script>
|