| <!DOCTYPE html> | |
| <!-- | |
| | An element gets updated when the computed style changes. | |
| --> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0px; | |
| font-family: Roboto; | |
| font-size: 18px; | |
| } | |
| .light-blue { | |
| background-color: #03A9F4; | |
| } | |
| .cobalt-blue { | |
| color: #FFF; | |
| background-color: #0020C2; | |
| } | |
| </style> | |
| <script> | |
| if (window.testRunner) { | |
| window.testRunner.waitUntilDone(); | |
| } | |
| window.onload = function() { | |
| if (window.testRunner) { | |
| window.testRunner.DoNonMeasuredLayout(); | |
| } | |
| var child = document.getElementById('node'); | |
| child.className = "cobalt-blue"; | |
| if (window.testRunner) { | |
| window.testRunner.notifyDone(); | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <span class="light-blue">X<span id="node">Y</span></span><span>Z</span> | |
| </body> | |
| </html> |