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

Side by Side Diff: third_party/WebKit/LayoutTests/transforms/containing-block.html

Issue 2671763002: CSS: will-change offset-path establishes a stacking context (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 4
5 <div id="container" style="transform: rotate(360deg)"></div> 5 <div id="container" style="transform: rotate(360deg)"></div>
6 6
7 <script> 7 <script>
8 function generatesContainingBlock(property, value) { 8 function generatesContainingBlock(property, value) {
9 var outer = document.createElement('div'); 9 var outer = document.createElement('div');
10 outer.style[property] = value; 10 outer.style[property] = value;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 test(function() { 42 test(function() {
43 assert_true(generatesContainingBlock('will-change', 'scale')); 43 assert_true(generatesContainingBlock('will-change', 'scale'));
44 }, "will-change: scale establishes containing block"); 44 }, "will-change: scale establishes containing block");
45 45
46 test(function() { 46 test(function() {
47 assert_true(generatesContainingBlock('rotate', '3deg')); 47 assert_true(generatesContainingBlock('rotate', '3deg'));
48 }, "rotate establishes containing block"); 48 }, "rotate establishes containing block");
49 test(function() { 49 test(function() {
50 assert_true(generatesContainingBlock('will-change', 'rotate')); 50 assert_true(generatesContainingBlock('will-change', 'rotate'));
51 }, "will-change: rotate establishes containing block"); 51 }, "will-change: rotate establishes containing block");
52
53 test(function() {
54 assert_true(generatesContainingBlock('offset-position', '50% 50%'));
55 }, "offset-position establishes containing block");
56 test(function() {
57 assert_true(generatesContainingBlock('will-change', 'offset-position'));
58 }, "will-change: offset-position establishes containing block");
59
60 test(function() {
61 assert_true(generatesContainingBlock('offset-path', 'path("m 100 0")'));
62 }, "offset-path establishes containing block");
63 test(function() {
64 assert_true(generatesContainingBlock('will-change', 'offset-path'));
65 }, "will-change: offset-path establishes containing block");
52 </script> 66 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698