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
MarkBoots3w 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
jackh3w 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
MarkBoots3w ago
all the examples show it in the root. don't see a reason why you should apply it per element.
jackh
jackh3w ago
Ok cool thanks. Ye if all the examples are doing it that way I guess just do the same.
jackh
jackh3w ago
Perfect thanks Mark
MarkBoots
MarkBoots3w ago
no problem
jackh
jackh3w ago
Appreciate the quick response
Want results from more Discord servers?
Add your server