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

Unified Diff: third_party/WebKit/LayoutTests/animations/responsive/font-variation-settings-responsive.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
Index: third_party/WebKit/LayoutTests/animations/responsive/font-variation-settings-responsive.html
diff --git a/third_party/WebKit/LayoutTests/animations/responsive/font-variation-settings-responsive.html b/third_party/WebKit/LayoutTests/animations/responsive/font-variation-settings-responsive.html
new file mode 100644
index 0000000000000000000000000000000000000000..933aa7e7c72647cb0f85683bd7d545dc7e48b410
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/responsive/font-variation-settings-responsive.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<script src="resources/responsive-test.js"></script>
+<script>
+assertCSSResponsive({
+ property: 'font-variation-settings',
+ from: neutralKeyframe,
+ to: "'test' 200"
+ configurations: [{
+ state: {underlying: "'test' 100"},
+ expect: [
+ {at: 0.25, is: "'test' 125"},
+ {at: 0.75, is: "'test' 175"},
+ ],
+ }, {
+ state: {underlying: 'normal'},
+ expect: [
+ {at: 0.25, is: 'normal'},
+ {at: 0.75, is: "'test 200"},
+ ],
+ }, {
+ state: {underlying: "'test' 100, 'abcd' 100"},
+ expect: [
+ {at: 0.25, is: "'test' 100, 'abcd' 100"},
+ {at: 0.75, is: "'test' 200"},
+ ],
+ }],
+});
+
+assertCSSResponsive({
+ property: 'font-variation-settings',
+ from: 'inherit',
+ to: "'test' 200"
+ configurations: [{
+ state: {inherited: "'test' 100"},
+ expect: [
+ {at: 0.25, is: "'test' 125"},
+ {at: 0.75, is: "'test' 175"},
+ ],
+ }, {
+ state: {inherited: 'normal'},
+ expect: [
+ {at: 0.25, is: 'normal'},
+ {at: 0.75, is: "'test 200"},
+ ],
+ }, {
+ state: {inherited: "'test' 100, 'abcd' 100"},
+ expect: [
+ {at: 0.25, is: "'test' 100, 'abcd' 100"},
+ {at: 0.75, is: "'test' 200"},
+ ],
+ }],
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698