RESOLVED CONFIGURATION CHANGED 90033
Position fixed elements are incorrectly clipped in composited layers
https://bugs.webkit.org/show_bug.cgi?id=90033
Summary Position fixed elements are incorrectly clipped in composited layers
Elliott Sprehn
Reported 2012-06-26 18:06:13 PDT
Created attachment 149651 [details] Reduction A position fixed element inside a composited layer will be incorrectly clipped to the containing positioned block. In the attached test case you should see two red boxes but Webkit only draws one because the other is clipped away. Note: This doesn't appear to be a bug with stacking contexts. The page renders the same with or without a stacking context being created.
Attachments
Reduction (1.27 KB, text/html)
2012-06-26 18:06 PDT, Elliott Sprehn
no flags
Elliott Sprehn
Comment 1 2012-07-20 01:07:46 PDT
enne: Any idea what's up here?
Adrienne Walker
Comment 2 2012-07-20 12:52:57 PDT
(In reply to comment #1) > enne: Any idea what's up here? This is on my radar, but I haven't had a chance to dig into this yet.
Adrienne Walker
Comment 3 2012-07-30 14:18:18 PDT
(In reply to comment #2) > (In reply to comment #1) > > enne: Any idea what's up here? > > This is on my radar, but I haven't had a chance to dig into this yet. Now that I have a chance look into this, it seems that the second fixed position div in the test case appears to be clipped by its parent's overflow regardless of whether the page triggers accelerated compositing or not. If it's not compositing-related, it's probably a bit outside what I know in WebKit.
Ahmad Saleem
Comment 4 2023-05-07 10:23:46 PDT
Attached testcase appear same in Safari 16.4.1, Chrome Canary 115 and Firefox Nightly 114 and show 'red' end to end container / rect on top of page (window wide). @Simon - if I am testing incorrectly, can you guide or else can we close, if all are matching?
Simon Fraser (smfr)
Comment 5 2023-05-08 10:54:42 PDT
The transform now acts as the continuing block for fixed, so the second box is clipped to zero height by its container.
Note You need to log in before you can comment on or make changes to this bug.