| window.testRunner.dumpAsText(); |
| var box1 = document.getElementById('box1'); |
| var box2 = document.getElementById('box2'); |
| if (box1.clientWidth == box2.clientWidth) |
| document.body.innerHTML += 'PASS'; |
| document.body.innerHTML += 'FAIL'; |
| 'max-width: none' should have no effect because it is the initial state. The test succeeds if the following two blocks are rendered in the same way. |
| <div style="width:400px; border: 3px solid red"> |
| <div id="box1" style="width:800px; max-width:none; height:30px; border: 3px solid green"> |
| <div style="width:400px; border: 3px solid red"> |
| <div id="box2" style="width:800px; height:30px; border: 3px solid green"> |