Bug 258015

Summary: Resolution context for `::backdrop` must not use element's style as parent style
Product: WebKit Reporter: Vitaly Dyackhov <vitaly>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Vitaly Dyackhov 2023-06-13 04:42:01 PDT
Until a very recent "Fullscreen API" spec update [1], `::backdrop` pseudo-element was not supposed to inherit from any element, including its owner element.
But because some style-related functions expect that the parent style is never `nullptr` we use render view style as a parent style [2].
Since it's expected behavior for now across the codebase and the tests were not updated yet, we should use the same approach when creating `ResultionContext` for `::backdrop` pseudo-element.

[1] https://github.com/whatwg/fullscreen/commit/666438755d2f252be1d1f73d8214ac494489d32c
[2] https://github.com/WebKit/WebKit/blob/b872c8723cdbb67aafa46776c2e05066fd4ebbe2/Source/WebCore/rendering/updating/RenderTreeUpdaterGeneratedContent.cpp#L203C6-L204
Comment 1 Vitaly Dyackhov 2023-06-13 04:52:43 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14915
Comment 2 EWS 2023-06-19 01:44:01 PDT
Committed 265300@main (e8f5190a3e2d): <https://commits.webkit.org/265300@main>

Reviewed commits have been landed. Closing PR #14915 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-06-19 01:45:17 PDT
<rdar://problem/110992224>