WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
View All
Add attachment
proposed patch, testcase, etc.
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
Pull request:
https://github.com/WebKit/WebKit/pull/3433
Radar WebKit Bug Importer
Comment 7
2022-09-14 10:49:36 PDT
<
rdar://problem/99926239
>
Matt Woodrow
Comment 8
2022-09-20 18:31:09 PDT
***
Bug 245352
has been marked as a duplicate of this bug. ***
Matt Woodrow
Comment 9
2022-09-20 18:58:19 PDT
Affected WPT: css/css-transforms/transform-fixed-bg-002.html -
https://wpt.fyi/results/css/css-transforms/transform-fixed-bg-002.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2021-transforms
css/css-transforms/transform-fixed-bg-004.html -
https://wpt.fyi/results/css/css-transforms/transform-fixed-bg-004.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2021-transforms
css/css-transforms/transform-fixed-bg-005.html -
https://wpt.fyi/results/css/css-transforms/transform-fixed-bg-005.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2021-transforms
css/css-transforms/transform-fixed-bg-006.html -
https://wpt.fyi/results/css/css-transforms/transform-fixed-bg-006.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2021-transforms
css/css-transforms/transform-fixed-bg-007.html -
https://wpt.fyi/results/css/css-transforms/transform-fixed-bg-007.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2021-transforms
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.
Top of Page
Format For Printing
XML
Clone This Bug