mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
18 lines
402 B
HTML
18 lines
402 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const sheet = new CSSStyleSheet();
|
|
const css = `
|
|
@property --test {
|
|
syntax: '<color>';
|
|
inherits: false;
|
|
initial-value: black;
|
|
}
|
|
`;
|
|
sheet.replaceSync(css);
|
|
document.adoptedStyleSheets = [sheet];
|
|
println("PASS (Didn't crash)");
|
|
});
|
|
</script>
|