| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> | 2 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 3 <!-- Test passes if it does not crash on an ASAN build. --> | 3 <!-- Test passes if it does not crash on an ASAN build. --> |
| 4 <style> | 4 <style> |
| 5 .c7 { | 5 .tableColumnGroup { |
| 6 background: white; | 6 background: white; |
| 7 display: table-column-group; | 7 display: table-column-group; |
| 8 } | 8 } |
| 9 .c13 { | 9 .tableCell { |
| 10 display: table-cell; | 10 display: table-cell; |
| 11 border-style: ridge; | 11 border-style: ridge; |
| 12 will-change: transform; | 12 will-change: transform; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 <script> | 15 <script> |
| 16 var label = document.createElement('label'); | 16 function createAndAppendWithClass(targetType, targetClass) { |
| 17 label.setAttribute('class', 'c13'); | 17 var targetElement = document.createElement(targetType); |
| 18 document.documentElement.appendChild(label); | 18 targetElement.setAttribute('class', targetClass); |
| 19 var colgroup = document.createElement('colgroup'); | 19 document.documentElement.appendChild(targetElement); |
| 20 colgroup.setAttribute('class', 'c13'); | 20 return targetElement; |
| 21 document.documentElement.appendChild(colgroup); | 21 } |
| 22 var aside = document.createElement('aside'); | 22 var label = createAndAppendWithClass('label', 'tableCell'); |
| 23 aside.setAttribute('class', 'c13'); | 23 var colgroup = createAndAppendWithClass('colgroup', 'tableCell'); |
| 24 document.documentElement.appendChild(aside); | 24 createAndAppendWithClass('aside', 'tableCell'); |
| 25 if (window.testRunner) | 25 if (window.testRunner) |
| 26 testRunner.waitUntilDone(); | 26 testRunner.waitUntilDone(); |
| 27 runAfterLayoutAndPaint(function() { | 27 runAfterLayoutAndPaint(function() { |
| 28 colgroup.setAttribute('class', 'c11'); | 28 colgroup.setAttribute('class', ''); |
| 29 label.setAttribute('class', 'c7'); | 29 label.setAttribute('class', 'tableColumnGroup'); |
| 30 }, true); | 30 }, true); |
| 31 </script> | 31 </script> |
| OLD | NEW |