mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
33 lines
645 B
TypeScript
33 lines
645 B
TypeScript
import { itBundled } from "../expectBundled";
|
|
|
|
describe("css", () => {
|
|
itBundled("css/is-selector", {
|
|
files: {
|
|
"index.css": /* css */ `
|
|
.foo:is(input:checked) {
|
|
color: red;
|
|
}
|
|
`,
|
|
},
|
|
outdir: "/out",
|
|
entryPoints: ["/index.css"],
|
|
onAfterBundle(api) {
|
|
api.expectFile("/out/index.css").toMatchInlineSnapshot(`
|
|
"/* index.css */
|
|
.foo:-webkit-any(input:checked) {
|
|
color: red;
|
|
}
|
|
|
|
.foo:-moz-any(input:checked) {
|
|
color: red;
|
|
}
|
|
|
|
.foo:is(input:checked) {
|
|
color: red;
|
|
}
|
|
"
|
|
`);
|
|
},
|
|
});
|
|
});
|