| <script src="../../resources/js-test-pre.js"></script> |
| description('This test ensures that we properly reattach collapsed whitespace when sibling style changes require. Test passes if the spans below are justified across the page.'); |
| spans = document.getElementsByTagName("span"); |
| for (var i = spans.length - 1; i >= 0; i--) |
| spans[i].classList.add('inlineBlock'); |
| var container = document.getElementById('container'); |
| shouldBeGreaterThanOrEqual('spans[spans.length - 1].offsetLeft', "container.offsetWidth * 2 / 3"); |
| container.style.display = 'none'; |