CSS boilerplate/reset/reboot (interpolate-size: allow-keywords) question

Hi everyone. Just watched the live stream yesterday. I do have one question. With interpolate-size: allow-keywords; should this go within a prefers-reduced-motion: no-preference media query as it is a transition? Thanks
8 Replies
MarkBoots
MarkBoots5mo ago
Although I can not come up with a clear example, this is not only for transition. There could be scenarios where you want to set a default size based on a intrinsic-size-keyword together with calc-size(). ohw, never mind, you can still use calc-size without it.
jackh
jackhOP5mo ago
Ah ok so is it something we should be applying to the root would you suggest? Better to apply to the specific element you are using it for?
MarkBoots
MarkBoots5mo ago
all the examples show it in the root. don't see a reason why you should apply it per element.
jackh
jackhOP5mo ago
Ok cool thanks. Ye if all the examples are doing it that way I guess just do the same.
jackh
jackhOP5mo ago
Perfect thanks Mark
MarkBoots
MarkBoots5mo ago
no problem
jackh
jackhOP5mo ago
Appreciate the quick response

Did you find this page helpful?