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

Unified Diff: third_party/WebKit/LayoutTests/animations/composition/font-variation-settings-composition.html

Issue 2891743003: Enable interpolation of CSS property font-variation-settings (Closed)
Patch Set: updatetest Created 3 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 | third_party/WebKit/LayoutTests/animations/interpolation/font-variation-settings-interpolation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/composition/font-variation-settings-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/composition/font-variation-settings-composition.html b/third_party/WebKit/LayoutTests/animations/composition/font-variation-settings-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..cec5f4552027ab0e7e1984fb315ea73cada4bc3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/composition/font-variation-settings-composition.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<body>
+<script src="../interpolation/resources/interpolation-test.js"></script>
+<script>
+assertComposition({
+ property: 'font-variation-settings',
+ underlying: '"'test' 50"',
+ addFrom: '"'test' 100"',
+ addTo: '"'test' 200"',
+}, [
+ {at: -0.3, is: "'test' 120"},
+ {at: 0, is: "'test' 150"},
+ {at: 0.5, is: "'test' 200"},
+ {at: 1, is: "'test' 250"},
+ {at: 1.5, is: "'test' 300"},
+]);
+
+assertComposition({
+ property: 'font-variation-settings',
+ underlying: '"'test' 50"',
+ addFrom: '"'test' 100"',
+ replaceTo: '"'test' 200"',
+}, [
+ {at: -0.3, is: "'test' 135"},
+ {at: 0, is: "'test' 150"},
+ {at: 0.5, is: "'test' 175"},
+ {at: 1, is: "'test' 200"},
+ {at: 1.5, is: "'test' 225"},
+]);
+
+assertComposition({
+ property: 'font-variation-settings',
+ underlying: '"'test' 100"',
+ addFrom: ''normal'',
+ replaceTo: '"'test' 200"',
+}, [
+ {at: -0.3, is: 'normal'},
+ {at: 0, is: 'normal'},
+ {at: 0.5, is: "'test' 200"},
+ {at: 1, is: "'test' 200"},
+ {at: 1.5, is: "'test' 200"},
+]);
+
+assertComposition({
+ property: 'font-variation-settings',
+ underlying: '"'test' 100"',
+ addFrom: ''normal'',
+ addTo: '"'test' 200"',
+}, [
+ {at: -0.3, is: 'normal'},
+ {at: 0, is: 'normal'},
+ {at: 0.5, is: "'test' 300"},
+ {at: 1, is: "'test' 300"},
+ {at: 1.5, is: "'test' 300"},
+]);
+
+assertComposition({
+ property: 'font-variation-settings',
+ underlying: '"'aaaa' 100, 'bbbb' 200"',
+ addFrom: '"'aaaa' 20, 'bbbb' 50"',
+ addTo: '"'aaaa' 30, 'bbbb' 100"',
+}, [
+ {at: -0.3, is: "'aaaa' 117, 'bbbb' 235"},
+ {at: 0, is: "'aaaa' 120, 'bbbb' 250"},
+ {at: 0.5, is: "'aaaa' 125, 'bbbb' 275"},
+ {at: 1, is: "'aaaa' 230, 'bbbb' 300"},
+ {at: 1.5, is: "'aaaa' 235, 'bbbb' 325"},
+]);
+
+assertComposition({
+ property: 'font-variation-settings',
+ underlying: '"'test' 100"',
+ addFrom: '"'aaaa' 20, 'bbbb' 50"',
+ addTo: '"'aaaa' 30, 'bbbb' 100"',
+}, [
+ {at: -0.3, is: "'aaaa' 17, 'bbbb' 35"},
+ {at: 0, is: "'aaaa' 20, 'bbbb' 50"},
+ {at: 0.5, is: "'aaaa' 25, 'bbbb' 75"},
+ {at: 1, is: "'aaaa' 30, 'bbbb' 100"},
+ {at: 1.5, is: "'aaaa' 35, 'bbbb' 125"},
+]);
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/font-variation-settings-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698