Files
browser/src
Pierre Tachoire 13b008b56c css: fix crash in consumeName() on UTF-8 multibyte sequences
advance() asserts that each byte it steps over is either an ASCII byte
or a UTF-8 sequence leader, never a continuation byte (0x80–0xBF).
consumeName() was calling advance(1) for all non-ASCII bytes
('\x80'...'\xFF'), processing multi-byte sequences one byte at a time.
For a two-byte sequence like é (0xC3 0xA9), the second iteration landed
on the continuation byte 0xA9 and triggered the assertion, crashing the
browser in Debug mode.

Fix: replace advance(1) with consumeChar() for all non-ASCII bytes.
consumeChar() reads the lead byte, derives the sequence length via
utf8ByteSequenceLength, and advances the full code point in one step,
so the position never rests on a continuation byte.

Observed on saintcyrlecole.caliceo.com, whose root element carries an
inline style with custom property names containing French accented
characters (--color-store-bulles-été-fg, etc.). The crash aborted JS
execution before the Angular app could render any dynamic content.
2026-03-03 11:13:30 +01:00
..
2026-01-29 21:00:06 +08:00
2026-03-02 18:00:55 +08:00
2026-02-25 23:29:54 +00:00
2026-02-25 05:31:28 +00:00
2026-03-02 12:55:55 +03:00
2026-03-02 12:56:10 +03:00
2026-02-28 19:08:58 +08:00
2026-02-28 19:08:58 +08:00
2026-02-16 15:48:18 +00:00
2026-02-25 15:29:27 +08:00
2026-02-25 23:29:54 +00:00
2026-01-24 07:59:41 +08:00