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