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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/touch-action-parsing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/touch-action-parsing.html
diff --git a/LayoutTests/fast/css/touch-action-parsing.html b/LayoutTests/fast/css/touch-action-parsing.html
new file mode 100644
index 0000000000000000000000000000000000000000..2dc9e05fcd28827431e55359fabb15d0b4c25ef2
--- /dev/null
+++ b/LayoutTests/fast/css/touch-action-parsing.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script src="../js/resources/js-test-pre.js"></script>
+<style>
+/*
+ Give some rules below something to override in order to test
+ that they really are being parsed
+*/
+.defnone {
+ touch-action: none;
+}
+</style>
+</head>
+<body>
+<p id="description"></p>
+<div class="test" id="default" expected="auto"></div>
+<div class="test defnone" id="stylesheet-none" expected="none"></div>
+<div class="test defnone" id="explicit-auto" style="touch-action: auto;" expected="auto"></div>
+<div class="test" id="explicit-none" style="touch-action: none;" expected="none"></div>
+<div class="test" id="explicit-invalid" style="touch-action: bogus;" expected="auto"></div>
+<div style="touch-action: none;">
+ <div class="test" id="not-inherited" expected="auto"></div>
+ <div class="test" id="inherit" style="touch-action: inherit;" expected="none"></div>
+</div>
+<div class="test defnone" id="initial" style="touch-action: initial;" expected="auto"></div>
+
+<div id="console"></div>
+<script>
+description("Test the parsing and application of the touch-action property.");
+
+var tests = document.querySelectorAll('.test');
+var style;
+for (var i = 0; i < tests.length; i++) {
+ debug('Test case: ' + tests[i].id);
+ style = window.getComputedStyle(tests[i]);
+ shouldBeEqualToString('style.touchAction', tests[i].attributes.expected.value);
+ debug('');
+}
+
+successfullyParsed = true;
+</script>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>
« 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