LibWeb: Allow custom properties in getPropertyPriority()

This commit is contained in:
Aliaksandr Kalenik 2024-11-20 18:11:47 +01:00 committed by Alexander Kalenik
commit 41c172c663
Notes: github-actions[bot] 2024-11-21 12:17:07 +00:00
3 changed files with 8 additions and 0 deletions

View file

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