Skip to content

Commit 053a31f

Browse files
Force color-adjust for markdown checkboxes
this forces browsers to render background correctly
1 parent 623d2dd commit 053a31f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web_src/less/markup/content.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@
181181
opacity: 1 !important; // override fomantic on edit preview
182182
pointer-events: auto !important; // override fomantic on edit preview
183183
vertical-align: middle !important; // override fomantic on edit preview
184+
-webkit-print-color-adjust: exact;
185+
color-adjust: exact;
184186
}
185187

186188
input[type="checkbox"]:not([disabled]):hover,
@@ -204,6 +206,8 @@
204206
content: "";
205207
mask-image: var(--checkbox-mask-checked);
206208
-webkit-mask-image: var(--checkbox-mask-checked);
209+
-webkit-print-color-adjust: exact;
210+
color-adjust: exact;
207211
}
208212

209213
input[type="checkbox"]:indeterminate::after {

0 commit comments

Comments
 (0)