Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-insert-svg-shape.html
blob3f897dabba9bb5e16494c2bc52859108ee05e3d1
1 <html>
2 <head>
3 <script src="../../../resources/ahem.js"></script>
4 <style>
5 .container {
6 font: 50px/1 Ahem, sans-serif;
7 color: green;
10 .shape-outside {
11 width: 100px;
12 height: 100px;
13 float: left;
14 shape-outside: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100px' height='100px'><rect x='0' y='50' width='50' height='50' fill='blue'/></svg>");
16 </style>
17 <script>
18 window.onload = function() {
19 var container = document.querySelector('.container');
20 var shape = document.createElement('div');
21 shape.className = 'shape-outside';
22 container.insertBefore(shape, container.firstChild);
24 </script>
25 </head>
26 <body>
27 <div class='container'>
28 <p>X<br>X<br>X</p>
29 </div>
30 </body>
31 </html>