Bug 241847 - [css-conditional] @supports selector fails for ::placeholder & ::file-selector-button
Summary: [css-conditional] @supports selector fails for ::placeholder & ::file-selecto...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Joonghun Park
URL:
Keywords: InRadar
: 254682 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-22 02:06 PDT by Jan Nicklas
Modified: 2023-05-15 16:49 PDT (History)
8 users (show)

See Also:


Attachments
Reproduction Example (471 bytes, text/html)
2022-06-22 02:06 PDT, Jan Nicklas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Nicklas 2022-06-22 02:06:49 PDT
Created attachment 460411 [details]
Reproduction Example

The `@supports selector ()` fails for shadow DOM pseudo element tests.

An example for supported shadow DOM pseudo element styling is `input::placeholder { color: orchid }`.

Therefore the expected behaviour would be that `@supports selector(input::placeholder) {` matches.
Furthermore the expected behaviour would also be that `@supports not selector(input::placeholder) {` does NOT match.

Instead the current behaviour is that `@supports selector(input::placeholder) {` does NOT match.
In addition the current behaviour is also that `@supports not selector(input::placeholder) {` does match.

This behaviour can be reproduced on different Safari versions:

- iOS 15.5 Safari
- MacOS Safari Version 15.5 (17613.2.7.1.8) 
- MacOS Safari Technology Preview Release 146 (Safari 15.4, WebKit 17614.1.14.10.6)

Current Firefox and Chrome versions behave correctly.

Please see the attached reproduction example.
Comment 1 Radar WebKit Bug Importer 2022-06-22 05:33:44 PDT
<rdar://problem/95683424>
Comment 2 Ryosuke Niwa 2022-06-22 22:16:50 PDT
Oh, this is nothing to do with Shadow DOM.
Comment 3 Tim Nguyen (:ntim) 2022-10-12 17:22:56 PDT
WPT PR is at: https://github.com/web-platform-tests/wpt/pull/36410
Comment 4 Tim Nguyen (:ntim) 2023-03-29 19:31:46 PDT
*** Bug 254682 has been marked as a duplicate of this bug. ***
Comment 5 Tim Nguyen (:ntim) 2023-04-24 12:02:09 PDT
Joonghun, any update on this?
Comment 6 Joonghun Park 2023-05-15 09:18:26 PDT
(In reply to Tim Nguyen (:ntim) from comment #5)
> Joonghun, any update on this?

I'm sorry for the delay. I made a patch and uploaded it to https://github.com/WebKit/WebKit/pull/13879. Please refer to it.
Comment 7 EWS 2023-05-15 16:49:03 PDT
Committed 264090@main (61a3212d56ea): <https://commits.webkit.org/264090@main>

Reviewed commits have been landed. Closing PR #13879 and removing active labels.