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
When upgrading from v3.4.17 to v4.0.0, I encountered an issue on Safari and mobile devices where the visited state does not change the color as expected.
I suspect that :is or :where combined with :visited might not be compatible with Safari or mobile browsers or is it actually not recommended to use group-visited?
I stumbled into this too. Considering that the same :is(:where()) kind of selector gets generated for :hover too and that it works (https://play.tailwindcss.com/fMi98ljsf2), I'm thinking maybe it is a :visited security concern in the webkit team. These links offer a brief historical explanation of why :visited is different and lies in computedStyles and could offer a reason why the selector doesn't work (yet?).
What version of Tailwind CSS are you using?
v4.0.0
What browser are you using?
This bug appears on Safari and mobile but not in Chrome.
Chrome it's work
Safari
Chrome & Safari mobile
Reproduction URL
https://play.tailwindcss.com/TTbwnIDE64
Describe your issue
When upgrading from v3.4.17 to v4.0.0, I encountered an issue on Safari and mobile devices where the visited state does not change the color as expected.
I suspect that
:is
or:where
combined with:visited
might not be compatible with Safari or mobile browsers or is it actually not recommended to usegroup-visited
?The text was updated successfully, but these errors were encountered: