From f86664f13136ed9197656b9b823abc9db056a6c6 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 6 Jul 2024 17:47:06 +0200 Subject: [PATCH] Issue #2045 - Temporarily force hidden elements to be actually hidden. For the time being, because we don't have `revert` yet, we should force normally hidden elements to be hidden, so they aren't revealed by sites using the bad practice of `*{ }` style blanking rules but then using `revert` to re-hide them. --- layout/style/res/html.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/style/res/html.css b/layout/style/res/html.css index 38814a8354..fcca8cf2ff 100644 --- a/layout/style/res/html.css +++ b/layout/style/res/html.css @@ -720,12 +720,12 @@ canvas { /* hidden elements */ base, basefont, datalist, head, meta, script, style, title, noembed, param, template { - display: none; + display: none !important; } area { /* Don't give it frames other than its imageframe */ - display: none ! important; + display: none !important; } iframe:fullscreen {