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

Side by Side Diff: LayoutTests/fast/layers/opacity-change-stacking-context.html

Issue 136903004: Changing from opacity less than 1 to opacity 1 should not trigger layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/layers/opacity-change-stacking-context-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="../../resources/js-test.js"></script>
4
5 <style>
6 #target {
7 top: 40px;
8 width: 150px;
9 height: 75px;
10 background-color: yellow;
11 -webkit-transform: translateZ(0);
12 opacity: 0;
13 }
14 </style>
15
16 <div id="target"></div>
17
18 <script>
19 description("Test that opacity changes from less than 1 to 1 don't cause layout if the layer remains a stacking context");
20 var div = document.getElementById('target');
21 div.offsetTop;
22 div.style.opacity = 1;
23 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
24 shouldBe("internals.needsLayoutCount()", "0");
25 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/layers/opacity-change-stacking-context-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698