diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-02 00:29:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-02 00:44:19 +0200 |
commit | 8f88e5f05b76dd9b16ba91c9e28f07bd1549ae93 (patch) | |
tree | af65e0743bc92a0dd312b0f0f09b36ec8fa14d70 /test | |
parent | 22625453ef3275adab3a47990c242dc92397b02b (diff) | |
download | chawan-8f88e5f05b76dd9b16ba91c9e28f07bd1549ae93.tar.gz |
cssvalues, twtstr, mediaquery: refactor & fixes
* cssvalues, twtstr: unify enum parsing code paths, parse enums by bisearch instead of hash tables * mediaquery: refactor (long overdue), fix range comparison syntax parsing, make ident comparisons case-insensitive (as they should be)
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/media-query.color.expected | 1 | ||||
-rw-r--r-- | test/layout/media-query.html | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/layout/media-query.color.expected b/test/layout/media-query.color.expected new file mode 100644 index 00000000..edb263b3 --- /dev/null +++ b/test/layout/media-query.color.expected @@ -0,0 +1 @@ +[38;2;255;40;40mred[39m diff --git a/test/layout/media-query.html b/test/layout/media-query.html new file mode 100644 index 00000000..1d09e25f --- /dev/null +++ b/test/layout/media-query.html @@ -0,0 +1,9 @@ +<style> +@media (WiDtH >= 1px) and (HeiGhT < 10000px) { + #red { color: red } +} +@media (width >= 1px 2px) { + #red { color: blue } +} +</style> +<div id=red>red</div> |