Skip to content

Commit 67c26f6

Browse files
committed
fixed massive performance hit in Chromium v80 (Electron v8) when background color is applied to all elements, the workaround is to use transparent instead.
1 parent 5cf7718 commit 67c26f6

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

css/dist/ReadiumCSS-after.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/dist/cjk-horizontal/ReadiumCSS-after.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/dist/cjk-vertical/ReadiumCSS-after.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/src/modules/ReadiumCSS-night_mode.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/* we don’t need to redeclare bg-color and color for :root since we will inherit and update from day/default mode */
2525

2626
:root:--night-mode *:not(a) {
27-
background-color: var(--RS__backgroundColor) !important;
27+
background-color: transparent !important;
2828
color: inherit !important;
2929
border-color: currentColor !important;
3030
}

css/src/modules/ReadiumCSS-sepia_mode.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* we don’t need to redeclare bg-color and color for :root since we will inherit and update from day/default mode */
2626

2727
:root:--sepia-mode *:not(a) {
28-
background-color: var(--RS__backgroundColor) !important;
28+
background-color: transparent !important;
2929
color: inherit !important;
3030
}
3131

0 commit comments

Comments
 (0)