Skip to content

Commit 1322a26

Browse files
unodefmichonneau
authored andcommitted
Add comment to explain pixelated rendering CSS setting
1 parent 74d1c06 commit 1322a26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

assets/css/lesson.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,12 @@ span.fold-unfold {
321321
opacity: 0.5;
322322
}
323323

324+
/*
325+
Force a pixelated rendering of images when original resolution is bigger than
326+
the <img> viewport to avoid a blurring effect that makes it difficult to read the image.
327+
This issue affects primarily Chrome based browsers (as of 2021).
328+
See https://github.com/carpentries/styles/pull/636 for the original report and related links
329+
*/
324330
img {
325331
image-rendering: pixelated;
326332
}

0 commit comments

Comments
 (0)