Skip to content

Commit 3e75167

Browse files
committed
Add a visible page border in HCM (bug 1776914)
1 parent f1d4015 commit 3e75167

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

web/pdf_viewer.css

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@
2222
--pdfViewer-padding-bottom: 0;
2323
--page-margin: 1px auto -8px;
2424
--page-border: 9px solid transparent;
25+
--page-border-image: url(images/shadow.png) 9 9 repeat;
2526
--spreadHorizontalWrapped-margin-LR: -3.5px;
2627
--scale-factor: 1;
2728
}
2829

2930
@media screen and (forced-colors: active) {
3031
:root {
3132
--pdfViewer-padding-bottom: 9px;
32-
--page-margin: 9px auto 0;
33-
--page-border: none;
34-
--spreadHorizontalWrapped-margin-LR: 4.5px;
33+
--page-margin: 8px auto -1px;
34+
--page-border: 1px solid CanvasText;
35+
--page-border-image: none;
36+
--spreadHorizontalWrapped-margin-LR: 3.5px;
3537
}
3638
}
3739

@@ -61,8 +63,8 @@
6163
position: relative;
6264
overflow: visible;
6365
border: var(--page-border);
66+
border-image: var(--page-border-image);
6467
background-clip: content-box;
65-
border-image: url(images/shadow.png) 9 9 repeat;
6668
background-color: rgba(255, 255, 255, 1);
6769
}
6870

0 commit comments

Comments
 (0)