Rebaseline js/dom/global-constructors-attributes.html.
[WebKit-https.git] / LayoutTests / http / tests / incremental / stylesheet-body-incremental-rendering.html
1 <body>
2 <script>
3 document.body.offsetWidth;
4
5 internals.startTrackingRepaints();
6 let initialRects;
7 setTimeout(() => {
8    initialRects = internals.repaintRectsAsText();
9    internals.stopTrackingRepaints();
10    internals.startTrackingRepaints();
11 }, 0);
12
13 document.body.onload = () => {
14     let finalRects = internals.repaintRectsAsText();
15     internals.stopTrackingRepaints();
16     document.body.innerHTML += `<p>
17         Before stylesheet load: ${initialRects}<br>
18         After stylesheet load: ${finalRects}<br>
19     </p>`;
20 };
21 </script>
22 <div style="width:100px; height:100px; background-color:green"></div>
23 <link rel="stylesheet" href="resources/delayed-css.php?delay=300">
24 <div class=delayed style="width:100px; height:100px; background-color:red"></div>