Bug 1415946: Test that font-variant-alternates: historical-forms is parsed case-insensitively. r=jfkthame
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 11 Nov 2017 02:19:19 +0100
changeset 696837 7d77ff1bbdc451d566ea9e011976d9ae89200d74
parent 696836 12a211729fa623199fe0d627589272307da8bdce
child 696838 75381304ee9a3c3c8787192ab3704db0a5be9f37
push id88807
push userbmo:ato@sny.no
push dateSun, 12 Nov 2017 01:46:20 +0000
reviewersjfkthame
bugs1415946
milestone58.0a1
Bug 1415946: Test that font-variant-alternates: historical-forms is parsed case-insensitively. r=jfkthame MozReview-Commit-ID: 4qUwqD2pdD8
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-fonts-3/font-variant-alternates-parsing.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -307796,16 +307796,22 @@
     ]
    ],
    "css/css-flexbox-1/position-absolute-004.html": [
     [
      "/css/css-flexbox-1/position-absolute-004.html",
      {}
     ]
    ],
+   "css/css-fonts-3/font-variant-alternates-parsing.html": [
+    [
+     "/css/css-fonts-3/font-variant-alternates-parsing.html",
+     {}
+    ]
+   ],
    "css/css-fonts-3/test_datafont_same_origin.html": [
     [
      "/css/css-fonts-3/test_datafont_same_origin.html",
      {}
     ]
    ],
    "css/css-fonts-3/test_font_family_parsing.html": [
     [
@@ -484475,16 +484481,20 @@
   "css/css-fonts-3/font-variant-alternates-18-ref.html": [
    "f5668694818ef83a690e783f0c1d5be5e628dc76",
    "support"
   ],
   "css/css-fonts-3/font-variant-alternates-18.html": [
    "de45acb63b567c5318b014ebab07098ca8c317b6",
    "reftest"
   ],
+  "css/css-fonts-3/font-variant-alternates-parsing.html": [
+   "ae9b89160506ac0f027789c7e4ccb5bba95a6b95",
+   "testharness"
+  ],
   "css/css-fonts-3/font-variant-caps-01-ref.html": [
    "dfc1e1995e9841ecfa8889ad25c6ef7a6a2d992f",
    "support"
   ],
   "css/css-fonts-3/font-variant-caps-01.html": [
    "bf8e5dc2e292d90ad2403a40b76db55f9af88d35",
    "reftest"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-fonts-3/font-variant-alternates-parsing.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>CSS Test:  font-variant-alternates: historical-forms; parses case-insensitively</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="emilio@crisal.io">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+test(function() {
+  let div = document.createElement('div');
+  div.style.fontVariantAlternates = "Historical-Forms";
+  assert_equals(
+    getComputedStyle(div).fontVariantAlternates,
+    "historical-forms",
+    "historical-forms is parsed case-insensitively"
+  );
+});
+</script>