aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-05 00:40:01 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-05 00:46:52 +0100
commit8db503b392040adec9742880991dc8a9d6f3bb7c (patch)
treedd7674389866dd0fb5faa128276077758047bd03 /test
parentb0afdb827276f7d8516bf37659172bf8b28cda19 (diff)
downloadchawan-8db503b392040adec9742880991dc8a9d6f3bb7c.tar.gz
cssparser: fix an infinite loop
startsWithNumber was a poorly copied version of the standard algorithm, which, as it turns out, is largely redundant. So I removed most of it and inlined the rest.
Diffstat (limited to 'test')
-rw-r--r--test/layout/invalid-pseudo-element-selectors.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/layout/invalid-pseudo-element-selectors.html b/test/layout/invalid-pseudo-element-selectors.html
index bd5fbd1f..76e38b3e 100644
--- a/test/layout/invalid-pseudo-element-selectors.html
+++ b/test/layout/invalid-pseudo-element-selectors.html
@@ -7,6 +7,7 @@
::before#x { color: blue }
:is(#x::before, #y) { color: purple }
:is(#x::before) span { color: red }
+.-0 { color: red }
</style>
<span id=x>
be