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

Side by Side Diff: LayoutTests/fast/css/script-tests/transform-origin-parsing.js

Issue 649153002: Align -webkit-transform-origin behaviour with transform-origin behaviour (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 6 years, 2 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 | LayoutTests/fast/css/transform-inline-style-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
1 description("This tests checks parsing of the '-webkit-transform-origin' propert y \ 1 description("This tests checks parsing of the '-webkit-transform-origin' propert y \
2 and in particular that specifying invalid z values discards the property."); 2 and in particular that specifying invalid z values discards the property.");
3 3
4 function test(declaration, property) 4 function test(declaration, property)
5 { 5 {
6 var div = document.createElement("div"); 6 var div = document.createElement("div");
7 div.setAttribute("style", declaration); 7 div.setAttribute("style", declaration);
8 document.body.appendChild(div); 8 document.body.appendChild(div);
9 9
10 var result = div.style.getPropertyValue(property); 10 var result = div.style.getPropertyValue(property);
11 document.body.removeChild(div); 11 document.body.removeChild(div);
12 return result; 12 return result;
13 } 13 }
14 14
15 shouldBe('test("-webkit-transform-origin: 10% 10% 10%", "-webkit-transform-origi n")', 'null'); 15 shouldBe('test("-webkit-transform-origin: 10% 10% 10%", "-webkit-transform-origi n")', 'null');
16 shouldBe('test("-webkit-transform-origin: 10% 10% 10px", "-webkit-transform-orig in")', '"10% 10% 10px"'); 16 shouldBe('test("-webkit-transform-origin: 10% 10% 10px", "-webkit-transform-orig in")', '"10% 10% 10px"');
17 shouldBe('test("-webkit-transform-origin: 10px 10px 10%", "-webkit-transform-ori gin")', 'null'); 17 shouldBe('test("-webkit-transform-origin: 10px 10px 10%", "-webkit-transform-ori gin")', 'null');
18 shouldBe('test("-webkit-transform-origin: 10px 10px 10px", "-webkit-transform-or igin")', '"10px 10px 10px"'); 18 shouldBe('test("-webkit-transform-origin: 10px 10px 10px", "-webkit-transform-or igin")', '"10px 10px 10px"');
19 shouldBe('test("-webkit-transform-origin: left top 10%", "-webkit-transform-orig in")', 'null'); 19 shouldBe('test("-webkit-transform-origin: left top 10%", "-webkit-transform-orig in")', 'null');
20 shouldBe('test("-webkit-transform-origin: left top 10px", "-webkit-transform-ori gin")', '"0% 0% 10px"'); 20 shouldBe('test("-webkit-transform-origin: left top 10px", "-webkit-transform-ori gin")', '"left top 10px"');
21 shouldBe('test("-webkit-transform-origin: left top left", "-webkit-transform-ori gin")', 'null'); 21 shouldBe('test("-webkit-transform-origin: left top left", "-webkit-transform-ori gin")', 'null');
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/transform-inline-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698