mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 21:41:58 +00:00
This change fixes unhoverable toolbar on https://excalidraw.com/ The problem was that React.js uses setProperty() to add style properties specified in the "style" attribute in the virtual DOM, and we were failing to add the CSS variable used to set the "pointer-events" value to "all".
19 lines
No EOL
547 B
HTML
19 lines
No EOL
547 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<body></body>
|
|
<script>
|
|
test(() => {
|
|
const div = document.createElement('div');
|
|
div.style.setProperty("--redcolor", "red");
|
|
|
|
const nested = document.createElement('div');
|
|
nested.style["backgroundColor"] = "var(--redcolor)";
|
|
nested.style["width"] = "100px";
|
|
nested.style["height"] = "100px";
|
|
div.appendChild(nested);
|
|
|
|
document.body.appendChild(div);
|
|
|
|
println(getComputedStyle(nested).backgroundColor);
|
|
});
|
|
</script> |