Bug 1032034: Test that unicode range syntax isn't a primitive token. r=bz
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 10 May 2018 20:21:23 +0200
changeset 417841 85d3e5f022735230704ac89db5562addc65a6e6b
parent 417840 25c0ace5ecb425acd4f65a5e951b689bbfb2866b
child 417842 9f13413ebd3ce28b7d9ee4a7e3a73c01c36a0171
push id103165
push userebalazs@mozilla.com
push dateFri, 11 May 2018 09:45:25 +0000
treeherdermozilla-inbound@59a49b12b268 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1032034
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1032034: Test that unicode range syntax isn't a primitive token. r=bz MozReview-Commit-ID: AaV2pq5v4Ye
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-syntax/unicode-range-selector.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -319025,16 +319025,22 @@
     ]
    ],
    "css/css-syntax/ident-three-code-points.html": [
     [
      "/css/css-syntax/ident-three-code-points.html",
      {}
     ]
    ],
+   "css/css-syntax/unicode-range-selector.html": [
+    [
+     "/css/css-syntax/unicode-range-selector.html",
+     {}
+    ]
+   ],
    "css/css-tables/bounding-box-computation-1.html": [
     [
      "/css/css-tables/bounding-box-computation-1.html",
      {}
     ]
    ],
    "css/css-tables/bounding-box-computation-2.html": [
     [
@@ -515507,17 +515513,17 @@
    "27d36ba54623bbee2cdd09b7a9322873d5ab0011",
    "reftest"
   ],
   "css/css-scoping/stylesheet-title-001.html": [
    "2e49b6d74d2021144444ca77e62acbc6aeffac2a",
    "reftest"
   ],
   "css/css-scoping/stylesheet-title-002.html": [
-   "9e228381a0aa11c76568b8ec893ed6745581bbf9",
+   "5816d3d7af3c4bef07f4a299ab65c74b7b8d80f9",
    "testharness"
   ],
   "css/css-scroll-anchoring/README.md": [
    "31205944cbcf321f7aa77e3bef0f8835cc7b6d13",
    "support"
   ],
   "css/css-scroll-anchoring/abspos-containing-block-outside-scroller.html": [
    "d7a8e9904637c833d897b2e9c0da0a1628455670",
@@ -517358,16 +517364,20 @@
   "css/css-syntax/declarations-trim-whitespace.html": [
    "4e95ed2655816b40c437af2846bf4b513e527f0b",
    "testharness"
   ],
   "css/css-syntax/ident-three-code-points.html": [
    "7ce37259edc09da4e36f40c026ac76f33d829720",
    "testharness"
   ],
+  "css/css-syntax/unicode-range-selector.html": [
+   "781f8a4a4cc74736485d1c63f9d42562def2423d",
+   "testharness"
+  ],
   "css/css-tables/OWNERS": [
    "eccf10a7909e2358ac6425140e87c323ed786296",
    "support"
   ],
   "css/css-tables/anonymous-table-ws-001-ref.html": [
    "90019ee8161096455c9266672a2a90ac203f6f23",
    "support"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-syntax/unicode-range-selector.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Unicode range is not a token, and doesn't cause confusion in selectors</title>
+<link name="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="help" href="https://drafts.csswg.org/css-syntax/#urange">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+  a { color: red }
+  u+a { color: green }
+</style>
+<u></u><a></a>
+<script>
+  test(function() {
+    assert_equals(
+      getComputedStyle(document.querySelector("a")).color,
+      "rgb(0, 128, 0)"
+    );
+  }, "Unicode range is not a token, and doesn't cause confusion in selectors");
+</script>