1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 19:55:07 +00:00
serenity/Tests/LibWeb/Layout/input/misc/set-display-null.html
Aliaksandr Kalenik 7e2308d290 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/
2024-01-21 21:03:39 +01:00

9 lines
No EOL
266 B
HTML

<!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>