Bug 259752 - Nested @supports queries do not inherit parent declarations
Summary: Nested @supports queries do not inherit parent declarations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Intel) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
: 266287 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-02 15:06 PDT by Daniel J. Wilson
Modified: 2023-12-18 09:43 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel J. Wilson 2023-08-02 15:06:01 PDT
As of Safari Technology Preview 175 (Safari 17.0, WebKit 18617.1.1.2), nested @supports rules are not applied consistent with implementations in Blink and Gecko. In the Codepen linked below, the border color declaration is overridden by the color value specified in the @supports rules and the border-radius rule in the parent selector is completely ignored.

https://codepen.io/Membranophonist/pen/rNQPYXe
Comment 1 Radar WebKit Bug Importer 2023-08-09 15:06:15 PDT
<rdar://problem/113652033>
Comment 2 Matthieu Dubet 2023-12-13 01:12:16 PST
Pull request: https://github.com/WebKit/WebKit/pull/21726
Comment 3 EWS 2023-12-13 10:08:22 PST
Committed 271989@main (0dd51c9b2c6d): <https://commits.webkit.org/271989@main>

Reviewed commits have been landed. Closing PR #21726 and removing active labels.
Comment 4 Tim Nguyen (:ntim) 2023-12-18 09:43:57 PST
*** Bug 266287 has been marked as a duplicate of this bug. ***