We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbdf83 commit a2e0fd2Copy full SHA for a2e0fd2
src/browser/html/elements.zig
@@ -1064,4 +1064,14 @@ test "Browser.HTML.Element" {
1064
.{ "document.getElementById('content').click()", "undefined" },
1065
.{ "click_count", "1" },
1066
}, .{});
1067
+
1068
+ try runner.testCases(&.{
1069
+ .{ "let style = document.getElementById('content').style", "undefined" },
1070
+ .{ "style.cssText = 'color: red; font-size: 12px; margin: 5px !important;'", "color: red; font-size: 12px; margin: 5px !important;" },
1071
+ .{ "style.length", "3" },
1072
+ .{ "style.setProperty('background-color', 'blue')", "undefined" },
1073
+ .{ "style.getPropertyValue('background-color')", "blue" },
1074
+ .{ "style.length", "4" },
1075
+ }, .{});
1076
1077
}
0 commit comments