2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
16 <svg id=
"graph" style=
"background-color: red">
17 <rect width=
"100%" height=
"0%" fill=
"green"/>
19 <div id=
"spanner"></div>
22 if (window
.testRunner
)
23 testRunner
.waitUntilDone();
25 runAfterLayoutAndPaint(function() {
26 document
.body
.appendChild(document
.createElement('div'));
27 document
.body
.offsetLeft
;
29 var c
= document
.querySelector('rect');
30 c
.setAttribute('height', '100%');
33 if (window
.testRunner
)
34 testRunner
.layoutAndPaintAsyncThen(function() { testRunner
.notifyDone(); });