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 using scoped styles in Svelte, placeholder pseudo-elements like ::placeholder are compiled to selectors such as:
input:where(.s-abc123)::placeholder
This pattern fails to apply in Safari (tested in Safari 16.6 and 17.0 on macOS and iOS). The issue appears to be that Safari does not recognise ::placeholder correctly when it is placed after a :where(...) pseudo-class, especially if that pseudo-class holds the scoped class.
Describe the bug
When using scoped styles in Svelte, placeholder pseudo-elements like
::placeholder
are compiled to selectors such as:This pattern fails to apply in Safari (tested in Safari 16.6 and 17.0 on macOS and iOS). The issue appears to be that Safari does not recognise
::placeholder
correctly when it is placed after a:where(...)
pseudo-class, especially if that pseudo-class holds the scoped class.Looks OK in Chrome, interestingly.
Reproduction
Given the following scoped Svelte style:
Svelte compiles it to:
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: