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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands.html

Issue 1955723004: Implement font-variant-numeric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 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/fast/css/font-variant-shorthand-from-longhands.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands.html b/third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands.html
index 842a79a04f37e83f7abf50d5a4de4cc8a1cfe202..c39eacc1176060fc46a8d358d9df9fc7f546fbf7 100644
--- a/third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands.html
+++ b/third_party/WebKit/LayoutTests/fast/css/font-variant-shorthand-from-longhands.html
@@ -20,16 +20,24 @@ shouldBeEqualToString("style.fontVariant", "");
shouldBeEqualToString("computedStyle.fontVariant", "small-caps");
style.fontVariantLigatures = "discretionary-ligatures";
-// All currently supported sub-properties are set.
-shouldBeEqualToString("style.fontVariant", "discretionary-ligatures small-caps");
+shouldBeEqualToString("style.fontVariant", "");
shouldBeEqualToString("computedStyle.fontVariant", "discretionary-ligatures small-caps");
+style.fontVariantNumeric = "proportional-nums";
+// All currently supported sub-properties are set.
+shouldBeEqualToString("style.fontVariant", "discretionary-ligatures small-caps proportional-nums");
+shouldBeEqualToString("computedStyle.fontVariant", "discretionary-ligatures small-caps proportional-nums");
+
style.fontVariantCaps = "normal";
-shouldBeEqualToString("style.fontVariant", "discretionary-ligatures");
-shouldBeEqualToString("computedStyle.fontVariant", "discretionary-ligatures");
+shouldBeEqualToString("style.fontVariant", "discretionary-ligatures proportional-nums");
+shouldBeEqualToString("computedStyle.fontVariant", "discretionary-ligatures proportional-nums");
style.fontVariantCaps = "small-caps";
style.fontVariantLigatures = "normal";
+shouldBeEqualToString("style.fontVariant", "small-caps proportional-nums");
+shouldBeEqualToString("computedStyle.fontVariant", "small-caps proportional-nums");
+
+style.fontVariantNumeric = "normal";
shouldBeEqualToString("style.fontVariant", "small-caps");
shouldBeEqualToString("computedStyle.fontVariant", "small-caps");
@@ -39,6 +47,7 @@ shouldBeEqualToString("computedStyle.fontVariant", "no-common-ligatures no-discr
style.fontVariantCaps = "initial";
style.fontVariantLigatures = "initial";
+style.fontVariantNumeric = "initial";
shouldBeEqualToString("style.fontVariant", "initial");
document.body.removeChild(testContainer);

Powered by Google App Engine
This is Rietveld 408576698