webapi: (minor) CSS WebApi should be called "CSS" not "Css"

This commit is contained in:
Karl Seguin committed 2026-09-14 08:56:24 +08:00
1 parent 19b165d099
commit ea1ce09753
2 files changed
+2

No files matched your search

@@ -9,6 +9,7 @@
testing.expectEqual("[object HTMLDivElement]", Object.prototype.toString.call(HTMLDivElement.prototype));
testing.expectEqual("[object HTMLDivElement]", Object.prototype.toString.call(document.createElement("div")));
testing.expectEqual("[object HTMLUnknownElement]", Object.prototype.toString.call(document.createElement("bogus")));
testing.expectEqual("[object CSS]", Object.prototype.toString.call(CSS));
</script>
<script id=tag_descriptors>
+1
View File
@@ -206,6 +206,7 @@ pub const JsApi = struct {
pub const Meta = struct {
pub const name = "Css";
pub const class_string = "CSS";
// Per the CSSOM spec, CSS is a namespace object — members are own
// properties so Object.entries(CSS) returns them.