WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
284945
Query container breaks position: fixed
https://bugs.webkit.org/show_bug.cgi?id=284945
Summary
Query container breaks position: fixed
Sebastian Zartner
Reported
2024-12-19 03:17:07 PST
Created
attachment 473603
[details]
Test case If an element is turned into a query container via container-type, elements within it can not be fixed positioned. See the attached test case. If the container-type property is removed, the nested element is positioned at the top of the viewport as expected. For a real test case, see
https://www.gamestar.de/artikel/drohnen-new-jersey-usa-ostkueste-lage-deutschland,3424742.html
. The video embedded in the article content has a picture-in-picture mode when scrolling away from it, which should be fixed positioned. Though in Safari 18.2 it is stuck at the top and positioned behind the header even with a extremely big z-index set. I've tested this in Safari 18 on macOS 15 and an iPhone 14. In Chrome 131.0 and Firefox 133.0 the test case works as expected. Sebastian
Attachments
Test case
(2.91 KB, text/html)
2024-12-19 03:17 PST
,
Sebastian Zartner
no flags
Details
rendering in safari, firefox, chrome
(3.16 MB, image/png)
2024-12-23 15:57 PST
,
Karl Dubost
no flags
Details
rendering in safari, firefox, chrome
(1.96 MB, image/png)
2024-12-23 16:00 PST
,
Karl Dubost
no flags
Details
Screenshot of simple test case in Safari 18.1
(797.14 KB, image/png)
2024-12-24 00:01 PST
,
Sebastian Zartner
no flags
Details
Screenshot of simple test case on iOS 16.4
(803.94 KB, image/png)
2024-12-24 00:06 PST
,
Sebastian Zartner
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Karl Dubost
Comment 1
2024-12-23 15:57:17 PST
Created
attachment 473642
[details]
rendering in safari, firefox, chrome Hmm, So I haven't been able to reproduce so far. Did the site change in between the bug report and now? Tested in ``` Safari Technology Preview 209 20621.1.6 Firefox Nightly 135.0a1 13524.12.16 Google Chrome Canary 133.0.6912.0 6912.0 ```
Karl Dubost
Comment 2
2024-12-23 16:00:17 PST
Created
attachment 473643
[details]
rendering in safari, firefox, chrome Let's try the reduced testcase, The 3 browsers renders the same for me.
Sebastian Zartner
Comment 3
2024-12-24 00:01:18 PST
Created
attachment 473647
[details]
Screenshot of simple test case in Safari 18.1 (In reply to Karl Dubost from
comment #1
)
> Did the site change in between the bug report and now?
Indeed, the site changed. Due to this bug it got the following rule assigned to turn of the query container: ```css .article-content { container-type: unset; } ``` Note that I am testing this in BrowserStack, though it got first reported by people on an iPhone. See the attached screenshot of the simple test case. Note that the issue is mainly visible when the page has overflow. In BrowserStack, I don't have the possibility to try out the Technology Preview. So it might be that this already got fixed in the meantime. If you need any additional info, please let me know! Happy Holidays! Sebastian
Sebastian Zartner
Comment 4
2024-12-24 00:06:50 PST
Created
attachment 473648
[details]
Screenshot of simple test case on iOS 16.4
Karl Dubost
Comment 5
2024-12-24 00:37:01 PST
Ah yes this is fixed in STP 209 (Safari 18.2, WebKit 20621.1.6) but not in (Safari 18.2, WebKit 20620.1.16.11.8) So it was probably recently fixed, and will be available probably in a future release.
Sebastian Zartner
Comment 6
2024-12-24 04:30:40 PST
Ah, great! Thanks for the info, Karl! Again, Merry Christmas! Sebastian
Radar WebKit Bug Importer
Comment 7
2024-12-26 03:18:11 PST
<
rdar://problem/142057904
>
verstraete.jordy
Comment 8
2025-02-06 06:24:09 PST
Glad to see this was fixed!
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