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

Side by Side Diff: LayoutTests/transforms/webkit-perspective-parsing.html

Issue 993013002: Perspective property should only allow positive lengths (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 9 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
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 <div id="target"></div> 4 <div id="target"></div>
5 <script src="resources/parsing-test-helper.js"></script> 5 <script src="resources/parsing-test-helper.js"></script>
6 <script> 6 <script>
7 expect = expect.bind(this, 'perspective', 'perspective'); 7 expect = expect.bind(this, '-webkit-perspective', 'webkitPerspective');
8 8
9 expect('initial').parsesAs('initial').isComputedTo('none'); 9 expect('initial').parsesAs('initial').isComputedTo('none');
10 expect('inherit').parsesAs('inherit'); 10 expect('inherit').parsesAs('inherit');
11 11
12 expect('none').parsesAs('none').isComputedTo('none'); 12 expect('none').parsesAs('none').isComputedTo('none');
13 expect('1px').parsesAs('1px').isComputedTo('1px'); 13 expect('1px').parsesAs('1px').isComputedTo('1px');
14 14
15 expect('0').isInvalid(); 15 expect('0').isInvalid();
16 expect('0px').isInvalid(); 16 expect('0px').isInvalid();
17 expect('5').isInvalid(); 17 expect('5').parsesAs('5');
18 expect('-1px').isInvalid(); 18 expect('-1px').isInvalid();
19 expect('50%').isInvalid(); 19 expect('50%').isInvalid();
20 expect('calc(-1px)').parsesAs('calc(-1px)');
21 expect('calc(0px)').parsesAs('calc(0px)');
22 expect('calc(1px)').parsesAs('calc(1px)');
23 expect('calc(-1)').parsesAs('calc(-1)');
24 expect('calc(0)').parsesAs('calc(0)');
25 expect('calc(1)').parsesAs('calc(1)');
26 expect('calc(10em - 10px)').parsesAs('calc(10em - 10px)');
20 </script> 27 </script>
OLDNEW
« no previous file with comments | « LayoutTests/transforms/perspective-parsing-expected.txt ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698