Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / deprecated-flexbox / stretch-align-svg.html
blob6cb1cdb4a5a71502f35c1dd939f3c6d96bb3c2f9
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <style>
4 #main {
5 display: flex;
6 height: 100%;
8 #graph {
9 flex: 0 0 400px;
11 #spanner {
12 height: 400px;
14 </style>
15 <div id="main">
16 <svg id="graph" style="background-color: red">
17 <rect width="100%" height="0%" fill="green"/>
18 </svg>
19 <div id="spanner"></div>
20 </div>
21 <script>
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%');
31 c.getScreenCTM();
33 if (window.testRunner)
34 testRunner.layoutAndPaintAsyncThen(function() { testRunner.notifyDone(); });
35 });
36 </script>