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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/offsetWidth-host-style-change-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <script src="../../js/resources/js-test-pre.js"></script>
4
5 <div id="host"></div>
6
7 <script>
8 description('offsetWidth of a fixed width element should cause a style recalc if host styles are invalid');
9
10 onload = function() {
11 host = document.getElementById('host');
12 shadowRoot = host.webkitCreateShadowRoot();
13 div = shadowRoot.appendChild(document.createElement('div'));
14 div.style.width = '100px';
15 shouldBe('div.offsetWidth', '100');
16 host.style.display = 'none';
17 shouldBe('div.offsetWidth', '0');
18 };
19 </script>
20
21 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« 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