From df4c69ecc1fb3abbcd6e855cdaed19e524720a38 Mon Sep 17 00:00:00 2001 From: yuanchuan Date: Mon, 13 Feb 2023 15:38:59 +0800 Subject: [PATCH] Fix CSS parser for statement break --- src/parser/parse-css.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parser/parse-css.js b/src/parser/parse-css.js index 4ad08cc..2ec4178 100644 --- a/src/parser/parse-css.js +++ b/src/parser/parse-css.js @@ -518,6 +518,9 @@ function read_value(it) { } text.value += c; } + if (it.curr() === ';' || it.curr() == '}') { + break; + } it.next(); } if (text.value.length) {