Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: LayoutTests/fast/dom/shadow/offsetWidth-host-style-change.html

Issue 18298016: updateStyleForNodeIfNeeded should be Shadow DOM aware (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Var names Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/offsetWidth-host-style-change-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/offsetWidth-host-style-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698