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 previously existing HCM filter.
 - Fix the `--mix-blend-mode` typo, by actually using the `mix-blend-mode` property; see https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode
  • Loading branch information
Snuffleupagus committed Jan 25, 2024
1 parent a5d4660 commit 8cb0862
Show file tree
Hide file tree
Showing 2 changed files with 3 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
2 changes: 1 addition & 1 deletion web/text_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
--highlight-selected-bg-color: rgb(0 100 0 / 0.25);
--highlight-backdrop-filter: none;
--highlight-selected-backdrop-filter: none;
--mix-blend-mode: exclusion;
mix-blend-mode: exclusion;

@media screen and (forced-colors: active) {
--highlight-bg-color: transparent;
Expand Down

0 comments on commit 8cb0862

Please sign in to comment.