Files
LCUI/lib/css
Liu 3d2a8dc35a fix(css): reset parse target on '}' to avoid stale property name
When parsing a value-less declaration that ended with '}' (e.g. inside
`.gap-2 { gap: 8px }` where `gap` is not yet a supported property),
the parser stayed in CSS_PARSER_TARGET_VALUE state. The next rule was
then fed into the value parser with style_parser.property already
cleared, producing misleading "unsupported property" errors and
corrupting subsequent parsing.

Switch target to CSS_PARSER_TARGET_NONE on '}' and to
CSS_PARSER_TARGET_KEY on ';' inside the switch, mirroring the
end-of-block / end-of-declaration semantics. Add an assert to catch any
future regression where css_parser_commit is reached without a
property name.
2026-08-05 22:41:30 +08:00
..
2025-01-05 23:29:56 +08:00

libCSS

CSS (Cascading Style Sheet) parser and selection engine, providing CSS parsing and selection capabilities.