Skip to content

Commit 6fb7fb6

Browse files
Force color-adjust for markdown checkboxes (#17146)
this forces browsers to render background correctly Co-authored-by: techknowlogick <[email protected]>
1 parent cbd5dc4 commit 6fb7fb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web_src/less/markup/content.less

+4
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)