| Index: LayoutTests/fast/dom/shadow/offsetWidth-host-style-change.html
|
| diff --git a/LayoutTests/fast/dom/shadow/offsetWidth-host-style-change.html b/LayoutTests/fast/dom/shadow/offsetWidth-host-style-change.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d9a3d276032c042eb591ebd1e749ab1b9ca956ef
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/shadow/offsetWidth-host-style-change.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +
|
| +<div id="host"></div>
|
| +
|
| +<script>
|
| +description('offsetWidth of a fixed width element should cause a style recalc if host styles are invalid');
|
| +
|
| +onload = function() {
|
| + host = document.getElementById('host');
|
| + shadowRoot = host.webkitCreateShadowRoot();
|
| + div = shadowRoot.appendChild(document.createElement('div'));
|
| + div.style.width = '100px';
|
| + shouldBe('div.offsetWidth', '100');
|
| + host.style.display = 'none';
|
| + shouldBe('div.offsetWidth', '0');
|
| +};
|
| +</script>
|
| +
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
|
|