Skip to content

Commit

Permalink
Fix unreferenced CSS variables (PR 17533 follow-up)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Snuffleupagus committed Jan 25, 2024
1 parent a5d4660 commit 1cbcb89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions web/pdf_viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}
Expand Down
1 change: 0 additions & 1 deletion web/text_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cbcb89

Please sign in to comment.