Bug 1032034: Test that unicode range syntax isn't a primitive token. r?bz
MozReview-Commit-ID: AaV2pq5v4Ye
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -318945,16 +318945,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": [
[
@@ -515403,17 +515409,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",
@@ -517246,16 +517252,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>