1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Move ProgressBar-related CSS variables into the loadingBar DOM-element (issue 15958)

This way we avoid reflowing the entire viewer when e.g. updating the loading progress.
This commit is contained in:
Jonas Jenwald 2023-01-25 11:09:28 +01:00
parent 0b9d32bdad
commit 9d5085347a
3 changed files with 17 additions and 8 deletions

View file

@ -13,10 +13,6 @@
* limitations under the License.
*/
:root {
--progressBar-percent: 0%;
}
* {
padding: 0;
margin: 0;
@ -191,6 +187,10 @@ canvas {
}
#loadingBar {
/* Define this variable here, and not in :root, to avoid reflowing the
entire viewer when updating progress (see issue 15958). */
--progressBar-percent: 0%;
position: relative;
height: 0.6rem;
background-color: rgba(51, 51, 51, 1);