RESOLVED FIXED 15679
Fixed backgrounds should behave like 'scroll' inside transformed elements
https://bugs.webkit.org/show_bug.cgi?id=15679
Summary Fixed backgrounds should behave like 'scroll' inside transformed elements
Dave Hyatt
Reported 2007-10-24 13:31:10 PDT
Fixed backgrounds should not be affected by the transform, but should always render as though offset from the viewport.
Attachments
simple example of problem (2.38 KB, text/html)
2009-03-07 06:01 PST, Ken Martin
no flags
Ken Martin
Comment 1 2009-03-07 06:01:21 PST
Created attachment 28389 [details] simple example of problem
Ken Martin
Comment 2 2009-03-07 06:02:16 PST
Seeing this in nightly build, too: 530.1+ Have attached a pretty simple example file. There's WebKit "transform:" rules and everywhere "left:" rules in the CSS to demonstrate the problem. (The "everywhere" section is commented out by default.)
Simon Fraser (smfr)
Comment 3 2011-10-01 08:39:27 PDT
Known issue.
Simon Fraser (smfr)
Comment 4 2013-06-15 13:00:14 PDT
Spec <http://dev.w3.org/csswg/css-transforms/> now says: "Fixed backgrounds on the root element are affected by any transform specified for that element. For all other elements that are effected by a transform (i.e. have a transform applied to them, or to any of their ancestor elements), a value of ‘fixed’ for the ‘background-attachment’ property is treated as if it had a value of ‘scroll’. The computed value of ‘background-attachment’ is not affected."
Markus Stange
Comment 5 2016-08-05 10:28:51 PDT
(In reply to comment #4) > Spec <http://dev.w3.org/csswg/css-transforms/> now says: > "Fixed backgrounds on the root element are affected by any transform > specified for that element. For all other elements that are effected by a > transform (i.e. have a transform applied to them, or to any of their > ancestor elements), a value of ‘fixed’ for the ‘background-attachment’ > property is treated as if it had a value of ‘scroll’. The computed value of > ‘background-attachment’ is not affected." We (Mozilla) have shipped this change in Firefox 48. IIRC Edge has also shipped it.
Vitor Roriz
Comment 6 2022-08-17 16:36:55 PDT
Radar WebKit Bug Importer
Comment 7 2022-09-14 10:49:36 PDT
Matt Woodrow
Comment 8 2022-09-20 18:31:09 PDT
*** Bug 245352 has been marked as a duplicate of this bug. ***
EWS
Comment 10 2022-09-30 17:12:14 PDT
Committed 255055@main (eba490ba3cc4): <https://commits.webkit.org/255055@main> Reviewed commits have been landed. Closing PR #3433 and removing active labels.
EWS
Comment 11 2022-10-30 09:08:54 PDT
Committed 252432.728@safari-7614-branch (a1d3edc00b16): <https://commits.webkit.org/252432.728@safari-7614-branch> Reviewed commits have been landed. Closing PR #171 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.