mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 04:42:30 -04:00
Respect important declarations in tracked CSS cascade
This commit is contained in:
1 parent
6cd05967ed
commit
5b1bb1bc78
3 files changed
+115
-32
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user