-- When used in `sizes` or `@media` queries, `em` and `rem` are both specced to mean the user's default `font-size`. For a `sizes` decalaration like `sizes="(min-width: 768px) min(100vw, 108rem), 64rem"`, the actual `em` or `rem` that controls how the image is laid out on the page can end up different if your CSS changes it. This means one should not change the default size of `em` if they want to give the image preloader truthful information. For example, do not do something like `html { font-size: 62.5%; }` as the slot reserved by the browser preloader will now end up being larger than the actual slot of the CSS object model once it has been created.
0 commit comments