mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibWeb: Treat null as empty string in CSSStyleDeclaration::internal_set
Spec defines `[LegacyNullToEmptyString]` on `value` argument of `setProperty` but since `internal_set` calls `setProperty` directly instead of using IDL generated binding, we need to make sure that null is treated as empty string. Fixes items grid loading on https://d.rsms.me/stuff/
This commit is contained in:
parent
e9e1ee11d4
commit
7e2308d290
3 changed files with 19 additions and 1 deletions
9
Tests/LibWeb/Layout/input/misc/set-display-null.html
Normal file
9
Tests/LibWeb/Layout/input/misc/set-display-null.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><style>
|
||||
#box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: magenta;
|
||||
}
|
||||
</style><body><div id="box"></div></body><script>
|
||||
document.getElementById("box").style.display = "none";
|
||||
document.getElementById("box").style.display = null;</script>
|
Loading…
Add table
Add a link
Reference in a new issue