From 1cbcb89dac51bb698534bd357285c3d6c3f2341c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 25 Jan 2024 09:13:40 +0100 Subject: [PATCH] Fix unreferenced CSS variables (PR 17533 follow-up) The latest mozilla-central update has test failures, because some CSS variables are not "properly" referenced; in particular: - Give `--hcm-highlight-selected-filter` a default value, of `none`, similar to the previously existing HCM filter. - Remove the `--mix-blend-mode` variable, since it's unused. --- web/pdf_viewer.css | 2 ++ web/text_layer_builder.css | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pdf_viewer.css b/web/pdf_viewer.css index d28c21af5..0abf0b5e2 100644 --- a/web/pdf_viewer.css +++ b/web/pdf_viewer.css @@ -64,6 +64,8 @@ padding-bottom: var(--pdfViewer-padding-bottom); --hcm-highlight-filter: none; + --hcm-highlight-selected-filter: none; + @media screen and (forced-colors: active) { --hcm-highlight-filter: invert(100%); } diff --git a/web/text_layer_builder.css b/web/text_layer_builder.css index d0536676c..ada239b73 100644 --- a/web/text_layer_builder.css +++ b/web/text_layer_builder.css @@ -52,7 +52,6 @@ --highlight-selected-bg-color: rgb(0 100 0 / 0.25); --highlight-backdrop-filter: none; --highlight-selected-backdrop-filter: none; - --mix-blend-mode: exclusion; @media screen and (forced-colors: active) { --highlight-bg-color: transparent;