LibWeb: Allow custom properties in CSSStyleDeclaration.getPropertyValue

This commit is contained in:
Aliaksandr Kalenik 2024-11-20 17:21:22 +01:00 committed by Alexander Kalenik
commit ce26e5d757
Notes: github-actions[bot] 2024-11-21 12:17:21 +00:00
6 changed files with 20 additions and 1 deletions

View file

@ -5,6 +5,7 @@
test(() => {
const div = document.createElement('div');
div.style.setProperty("--redcolor", "red");
println(`style.getPropertyValue(--redcolor)=${div.style.getPropertyValue("--redcolor")}`);
const nested = document.createElement('div');
nested.style["backgroundColor"] = "var(--redcolor)";