mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 23:22:52 +00:00
Previously, we were only checking the current element and not the parents in `ResolvedCSSStyleDeclaration::custom_property()` which wasn't correct.
13 lines
302 B
HTML
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>
|