Description
Lightning CSS 1.33.0 rejects these valid selectors:
::search-text:current
::search-text:not(:current)
Both are required by the Web Platform Tests for ::search-text and were
accepted by Lightning CSS 1.32.0. The regression affects both lightningcss
and lightningcss-wasm.
Reproduction
npm install lightningcss@1.33.0
import { transform } from "lightningcss";
for (const selector of [
"::search-text:current",
"::search-text:not(:current)",
]) {
transform({
filename: "input.css",
code: Buffer.from(`${selector} { color: red }`),
minify: true,
});
}
Both calls fail with:
Invalid pseudo class after pseudo element, only user action pseudo classes (e.g. :hover, :active) are allowed
Expected result
Both selectors should be accepted and minified.
Support for ::search-text was added in #1213, but its tests do not cover
these two forms.
References
Description
Lightning CSS 1.33.0 rejects these valid selectors:
Both are required by the Web Platform Tests for
::search-textand wereaccepted by Lightning CSS 1.32.0. The regression affects both
lightningcssand
lightningcss-wasm.Reproduction
Both calls fail with:
Expected result
Both selectors should be accepted and minified.
Support for
::search-textwas added in #1213, but its tests do not coverthese two forms.
References