aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-04-18 00:34:33 +0200
committerbptato <nincsnevem662@gmail.com>2025-04-18 00:34:33 +0200
commitb9ca0d24c99c3b7c07640ad7e3dc7654318da0dc (patch)
treef03f2b52d1e31a9e0579c1fb2f5b9f095539715a /test
parentb01220178576ee4454334c25f57963350eb11e2c (diff)
downloadchawan-b9ca0d24c99c3b7c07640ad7e3dc7654318da0dc.tar.gz
selectorparser: check type flag of hash tokens
Diffstat (limited to 'test')
-rw-r--r--test/layout/id-selector-hash-token-type-flag.color.expected3
-rw-r--r--test/layout/id-selector-hash-token-type-flag.html9
2 files changed, 12 insertions, 0 deletions
diff --git a/test/layout/id-selector-hash-token-type-flag.color.expected b/test/layout/id-selector-hash-token-type-flag.color.expected
new file mode 100644
index 00000000..c2feb85e
--- /dev/null
+++ b/test/layout/id-selector-hash-token-type-flag.color.expected
@@ -0,0 +1,3 @@
+test
+test
+test
diff --git a/test/layout/id-selector-hash-token-type-flag.html b/test/layout/id-selector-hash-token-type-flag.html
new file mode 100644
index 00000000..55ba1568
--- /dev/null
+++ b/test/layout/id-selector-hash-token-type-flag.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<style>
+#99 { color: red } /* wrong */
+#-- { color: blue } /* valid */
+#- { color: green } /* wrong */
+</style>
+<div id=99>test</div>
+<div id=-->test</div>
+<div id=->test</div>