mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 11:01:53 +00:00
16 lines
418 B
HTML
16 lines
418 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let styleNode = document.createElement("style");
|
|
styleNode.innerText = `
|
|
test {
|
|
--color: red;
|
|
color: red;
|
|
}
|
|
`;
|
|
document.head.appendChild(styleNode);
|
|
const sheet = styleNode.sheet;
|
|
println(sheet.cssRules[0].cssText);
|
|
});
|
|
</script>
|