Bug 1733145 [wpt PR 30937] - Fix the transform-fixed-bg-*.html tests., a=testonly
commit9644528ff876c1649233aec118c9b0ea3609e4cc
authorL. David Baron <dbaron@chromium.org>
Sun, 3 Oct 2021 15:12:35 +0000 (3 15:12 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 4 Oct 2021 00:20:30 +0000 (4 00:20 +0000)
treed22dafca0ace72e586832f73de02aef26e940e97
parent917acb9e08bb06278c54606aa3691bedcb587b92
Bug 1733145 [wpt PR 30937] - Fix the transform-fixed-bg-*.html tests., a=testonly

Automatic update from web-platform-tests
Fix the transform-fixed-bg-*.html tests. (#30937)

These tests were, I believe, testing an old version of the spec, prior
to the wording:
  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.

This updates the tests to reflect that change.

I intend to write an additional set of tests testing fixed backgrounds
on the root element, which these did not test.

Prior to this change:
 * Chromium and WebKit pass tests 005 and 007 only and fail the other 5
   tests (but fail 002 and 004 differently).
 * Gecko fails all 7 tests

After this change:
 * Chromium and WebKit pass tests 001 and 003 only, and fail the other 5
   tests (but fail 002 and 004 differently).
 * Gecko passes all 7 tests.

I checked in both Chromium and Gecko that all 7 tests match the
reference if I remove the background-attachment: fixed.
--

wpt-commits: bfec5f548f67491d7cf6af31a172100f2b9900c0
wpt-pr: 30937
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-001.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-002.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-003.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-004.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-005.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-006.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-007.html
testing/web-platform/tests/css/css-transforms/transform-fixed-bg-ref.html