Respect important declarations in tracked CSS cascade

This commit is contained in:
Scott Taylor committed 2026-09-26 23:55:06 -04:00
1 parent 6cd05967ed
commit 5b1bb1bc78
3 files changed
+115 -32

No files matched your search

+8
View File
@@ -1014,6 +1014,14 @@ fn testHTTPHandler(req: *std.http.Server.Request) !void {
});
}
if (std.mem.eql(u8, path, "/styles/important-cascade.css")) {
return req.respond(".no-js-flex { display: none !important; }", .{
.extra_headers = &.{
.{ .name = "Content-Type", .value = "text/css" },
},
});
}
if (std.mem.eql(u8, path, "/styles/visibility.css")) {
// Used by css/external_stylesheet.html — drives the visibility
// cascade through StyleManager via Frame.loadExternalStylesheet