jfernandez@igalia.com | f27aa20 | 2018-11-12 21:25:07 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <link href="resources/grid.css" rel="stylesheet"> |
| 3 | <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet"> |
| 4 | <script> |
| 5 | if (window.testRunner) { |
| 6 | testRunner.dumpAsText(); |
| 7 | } |
| 8 | </script> |
| 9 | <script> |
| 10 | function nullifyNodeProperties(node) { |
| 11 | for (var key in node) { |
| 12 | try { |
| 13 | var a = node[key]; |
| 14 | node[key] = null; |
| 15 | } catch (e) { |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | function runTest() { |
| 21 | document.body.offsetLeft; |
| 22 | |
| 23 | var element = document.getElementById("node"); |
| 24 | nullifyNodeProperties(element); |
| 25 | } |
| 26 | </script> |
| 27 | <body onload="runTest();"> |
| 28 | <p>This test passes if it does not crash.</p> |
| 29 | <div class="grid verticalRL fit-content"> |
| 30 | <div id="node" class="horizontalTB"></div> |
| 31 | </div> |
| 32 | </body> |