ladybird/Tests/LibWeb/Text/input/custom-property-from-parent.html
rmg-x e4dc758343 LibWeb/CSS: Check for matching custom properties on parent elements
Previously, we were only checking the current element and not the
parents in `ResolvedCSSStyleDeclaration::custom_property()` which wasn't
correct.
2024-11-22 00:32:19 +01:00

13 lines
302 B
HTML

<!DOCTYPE html>
<style>
:root {
--my-background-color: #19db6e;
}
</style>
<script src="include.js"></script>
<script>
test(() => {
const style = getComputedStyle(document.body);
println(`PASS: ${style.getPropertyValue("--my-background-color")}`);
});
</script>