Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css-grid-layout / negative-growth-share-as-infinity-crash.html
1 <!DOCTYPE html>
2 <head>
3 <link href="resources/grid.css" rel="stylesheet">
4 <style>
5 .grid {
6     grid-auto-rows: minmax(min-content, 9px);
7     grid-auto-columns: min-content;
8     height: 10px;
9 }
10 .firstRowFirstColumn {
11     font: 10px/1 Ahem;
12 }
13 </style>
14 <script src="../../resources/js-test.js"></script>
15 <script type="text/javascript">
16 if (window.testRunner)
17     testRunner.dumpAsText();
18  document.addEventListener("DOMContentLoaded", crash, false);
19
20 function crash() {
21     var grid = document.getElementById("grid");
22     shouldBeEqualToString("window.getComputedStyle(grid, '').getPropertyValue('grid-template-rows')", "10px");
23
24     var child = document.createElement("div");
25     child.className = "firstRowFirstColumn";
26     child.innerHTML = "XXXX XXXX";
27     grid.appendChild(child);
28     shouldBeEqualToString("window.getComputedStyle(grid, '').getPropertyValue('grid-template-rows')", "20px");
29 }
30 </script>
31 </head>
32 <body>
33     <p>The test has passed if it does not CRASH in Debug builds.</p>
34     <div class="grid" id="grid">
35         <div class="firstRowFirstColumn">XXXX</div>
36     </div>
37 </body>