WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
273951
[iOS, iPadOS, visionOS] Add CSS pseudo-element ::selection
https://bugs.webkit.org/show_bug.cgi?id=273951
Summary
[iOS, iPadOS, visionOS] Add CSS pseudo-element ::selection
Jeffrey Blanz
Reported
2024-05-09 09:25:28 PDT
iOS/iPhones lack the CSS cursor ::selection pseudo-element. I believe macOS, iPadOS, and possibly visionOS support the events. Considering visionOS seems to be very similar to iPadOS I am assuming visionOS supports it as well. The ::selection CSS pseudo-element applies rules to the portion of a document that has been highlighted (e.g., selected with the mouse or another pointing device) by the user.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-05-16 09:26:14 PDT
<
rdar://problem/128203999
>
Jeffrey Blanz
Comment 2
2024-06-18 11:42:27 PDT
iOS, iPadOS, and visionOS lack support for the CSS ::selection pseudo-element. Here is a demo:
https://quirksmode.org/css/selectors/selection.html
Samuel
Comment 3
2024-10-23 20:39:43 PDT
I have also run into this issue. I suspect there might be some complications due to the fact that iOS shows selection handles on the left and right edges of the selected text, but I'd very much like to be able to style the ::selection pseudo-element in Safari on iOS, including background color, text color, and/or underline style(s), as I can in Safari on macOS.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug