Fix CSS statement at-rules consuming following rules

- stop statement at-rules such as @charset at their semicolon
  - preserve the following selector and declaration block
  - support feature-level not() expressions in media queries
  - add regression coverage for @charset and negated media features

Fixes Lobsters theme variables being discarded, which caused mixed light and dark colors when loading its stylesheets.
This commit is contained in:
Martín Lucas Golini
2026-08-03 22:52:25 -03:00
parent bfe72a439b
commit 0de33c574d
4 changed files with 62 additions and 3 deletions
+1
View File
@@ -119,6 +119,7 @@ struct EE_API MediaQueryExpression {
float fval{ 0 };
float fval2{ 0 };
bool checkAsBool{ false };
bool negated{ false };
std::string valStr;
MediaQueryExpression();