5 window
.onload = function() {
6 // fetch offsetTop to force a layout
7 document
.body
.offsetTop
;
9 var el
= document
.querySelector('#add-shape-margin .shape');
10 el
.className
= 'shape margin50';
12 el
= document
.querySelector('#change-shape-margin .shape');
13 el
.className
= 'shape margin25';
15 el
= document
.querySelector('#remove-shape-margin .shape');
16 el
.className
= 'shape';
23 overflow-wrap: break-word;
24 border:
2px solid blue;
25 font:
50px/
1 Ahem, sans-serif;
34 -webkit-shape-outside: inset(
0 100%
100%
0);
42 background-color: blue;
47 -webkit-shape-margin:
25px;
55 -webkit-shape-margin:
50px;
64 <p>When shape-margin is modified dynamically, content affected by the shape's contour should relayout. For each test, you should see green blocks separated by white space, wrapping around a blue square in the upper left. This test requires the Ahem font.
</p>
66 <p>Setting shape-margin with no prior entry
</p>
67 <div id='add-shape-margin' class='container'
><div class='shape'
></div>x x x x x x x x x x
</div>
69 <p>Setting shape-margin with a prior entry
</p>
70 <div id='change-shape-margin' class='container'
><div class='shape margin50'
></div>x x x x x x x x x x
</div>
72 <p>Removing shape-margin with a prior entry
</p>
73 <div id='remove-shape-margin' class='container'
><div class='shape margin50'
></div>x x x x x x x x x x
</div>