You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that preset-typography doesn't work well on some traditional browsers because it used the :where() selector, which does not work on Chrome before version 88 and Firefox before version 78 according to the browser compatibility table on MDN. It's partially same for :not() selector too.
Since I'm working on a website whose users use very old browsers, I need a workaround. It seems like that add a option to disable not utility (default to not-prose) is the only solution, because with it disabled, the :where() and :not() selectors are no longer needed.
It seems that
preset-typography
doesn't work well on some traditional browsers because it used the:where()
selector, which does not work on Chrome before version 88 and Firefox before version 78 according to the browser compatibility table on MDN. It's partially same for:not()
selector too.Since I'm working on a website whose users use very old browsers, I need a workaround. It seems like that add a option to disable
not
utility (default tonot-prose
) is the only solution, because with it disabled, the:where()
and:not()
selectors are no longer needed.The main change is below:
unocss/packages/preset-typography/src/preflights/index.ts
Lines 25 to 29 in 5812486
If you think this is a good idea, I can make a pull request.
The text was updated successfully, but these errors were encountered: