Bug 258015
| Summary: | Resolution context for `::backdrop` must not use element's style as parent style | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Vitaly Dyackhov <vitaly> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Vitaly Dyackhov
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Vitaly Dyackhov
Pull request: https://github.com/WebKit/WebKit/pull/14915
EWS
Committed 265300@main (e8f5190a3e2d): <https://commits.webkit.org/265300@main>
Reviewed commits have been landed. Closing PR #14915 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/110992224>