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

Side by Side Diff: LayoutTests/fast/css/touch-action-parsing.html

Issue 15748002: Initial support for experimental touch-action CSS feature (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary CSSParserContext change Created 7 years, 7 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/touch-action-parsing-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 <html>
3 <head>
4 <script src="../js/resources/js-test-pre.js"></script>
5 <style>
6 /*
7 Give some rules below something to override in order to test
8 that they really are being parsed
9 */
10 .defnone {
11 touch-action: none;
12 }
13 </style>
14 </head>
15 <body>
16 <p id="description"></p>
17 <div class="test" id="default" expected="auto"></div>
18 <div class="test defnone" id="stylesheet-none" expected="none"></div>
19 <div class="test defnone" id="explicit-auto" style="touch-action: auto;" expecte d="auto"></div>
20 <div class="test" id="explicit-none" style="touch-action: none;" expected="none" ></div>
21 <div class="test" id="explicit-invalid" style="touch-action: bogus;" expected="a uto"></div>
22 <div style="touch-action: none;">
23 <div class="test" id="not-inherited" expected="auto"></div>
24 <div class="test" id="inherit" style="touch-action: inherit;" expected="none"> </div>
25 </div>
26 <div class="test defnone" id="initial" style="touch-action: initial;" expected=" auto"></div>
27
28 <div id="console"></div>
29 <script>
30 description("Test the parsing and application of the touch-action property.");
31
32 var tests = document.querySelectorAll('.test');
33 var style;
34 for (var i = 0; i < tests.length; i++) {
35 debug('Test case: ' + tests[i].id);
36 style = window.getComputedStyle(tests[i]);
37 shouldBeEqualToString('style.touchAction', tests[i].attributes.expected.value) ;
38 debug('');
39 }
40
41 successfullyParsed = true;
42 </script>
43 <script src="../js/resources/js-test-post.js"></script>
44 </body>
45 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/touch-action-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698