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