diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-04-18 00:34:33 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-04-18 00:34:33 +0200 |
| commit | b9ca0d24c99c3b7c07640ad7e3dc7654318da0dc (patch) | |
| tree | f03f2b52d1e31a9e0579c1fb2f5b9f095539715a /test | |
| parent | b01220178576ee4454334c25f57963350eb11e2c (diff) | |
| download | chawan-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.expected | 3 | ||||
| -rw-r--r-- | test/layout/id-selector-hash-token-type-flag.html | 9 |
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 +[38;2;88;87;255mtest[39m +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> |