-
…in reply to @linhtadev
linhtadev Something like this should be done anyway, setting the font-size “back” to 16px , I mean. But here is the catch: What if you write those rules and I import your CSS, e.g. as a dependency, but my modules all expect 1rem to be 16px (=the default in most browsers)?
-
…in reply to @m_ott
linhtadev There is no way to redefine the size of 1rem for only a certain part of the document. So all my rem-based font-sizes and spacings are now much too small. Or, if I overwrite your 62.5% with 100% again, everything you wrote ends up being much too big.
-
…in reply to @m_ott
linhtadev It might work in projects that are very self-contained. But for everything that might be used within other codebases, sticking to the defaults is a good idea.