Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / negative-growth-share-as-infinity-crash.html
blob2aa26cf4b08b3ea1981640fd14460c6407d15560
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;
10 .firstRowFirstColumn {
11 font: 10px/1 Ahem;
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);
20 function crash() {
21 var grid = document.getElementById("grid");
22 shouldBeEqualToString("window.getComputedStyle(grid, '').getPropertyValue('grid-template-rows')", "10px");
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");
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>