ladybird/Tests/LibWeb/Text/input/css/PropertyOwningCSSStyleDeclaration-serialized-custom-properties.html
2025-03-20 11:50:49 +01:00

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>