mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
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
26 lines
602 B
HTML
26 lines
602 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Reftest Reference</title>
|
|
<link rel="author" title="Aryeh Gregor" href="mailto:[email protected]">
|
|
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
|
|
<link rel="author" title="Google" href="http://www.google.com/">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
div {
|
|
background: url(support/transform-triangle-left.svg);
|
|
width: 100px;
|
|
height: 100px;
|
|
position: relative;
|
|
left: 50px;
|
|
top: 50px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div></div>
|
|
</body>
|
|
</html>
|