mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1510486 - Add reftests for creating stacking-context and fixpos containing block on individual transforms. r=hiro
To make sure the test coverage is enough for individual transforms. Differential Revision: https://phabricator.services.mozilla.com/D47515 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
01cd967fa8
commit
1161a0a322
@ -8,6 +8,7 @@
|
||||
== will-change-stacking-context-perspective-1.html green-square-100-by-100-ref.html
|
||||
== will-change-stacking-context-position-1.html green-square-100-by-100-ref.html
|
||||
== will-change-stacking-context-transform-1.html green-square-100-by-100-ref.html
|
||||
test-pref(layout.css.individual-transform.enabled,true) == will-change-stacking-context-translate-1.html green-square-100-by-100-ref.html
|
||||
== will-change-stacking-context-transform-style-1.html green-square-100-by-100-ref.html
|
||||
== will-change-stacking-context-z-index-1.html green-square-100-by-100-ref.html
|
||||
test-pref(layout.css.contain.enabled,true) == will-change-fixpos-cb-contain-1.html green-square-100-by-100-offset-ref.html
|
||||
@ -16,4 +17,5 @@ test-pref(layout.css.contain.enabled,true) == will-change-fixpos-cb-contain-1.ht
|
||||
== will-change-fixpos-cb-perspective-1.html green-square-100-by-100-offset-ref.html
|
||||
== will-change-fixpos-cb-position-1.html green-square-100-by-100-offset-ref.html
|
||||
== will-change-fixpos-cb-transform-1.html green-square-100-by-100-offset-ref.html
|
||||
test-pref(layout.css.individual-transform.enabled,true) == will-change-fixpos-cb-translate-1.html green-square-100-by-100-offset-ref.html
|
||||
== will-change-fixpos-cb-transform-style-1.html green-square-100-by-100-offset-ref.html
|
||||
|
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS will-change: 'will-change: translate' creates a containing block for fixed positioned elements</title>
|
||||
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-will-change-1/#will-change">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
|
||||
<link rel="match" href="green-square-100-by-100-offset-ref.html">
|
||||
<meta name="assert" content="If any non-initial value of a property would cause the element to generate a containing block for fixed-position elements, specifying that property in will-change must cause the element to generate a containing block for fixed-position elements.">
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
div { width: 100px; height: 100px }
|
||||
#wc { will-change: translate; margin: 100px 0 0 100px; background: red }
|
||||
.child { top: 0; left: 0; width: 50px; background: green }
|
||||
#fixpos { position: fixed }
|
||||
#abspos { position: absolute; left: 50px }
|
||||
</style>
|
||||
<body>
|
||||
<div id="wc">
|
||||
<div class="child" id="fixpos">
|
||||
</div>
|
||||
<div class="child" id="abspos">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS will-change: 'will-change: translate' creates a stacking context</title>
|
||||
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-will-change-1/#will-change">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
|
||||
<link rel="match" href="green-square-100-by-100-ref.html">
|
||||
<meta name="assert" content="If any non-initial value of a property would create a stacking context on the element, specifying that property in will-change must create a stacking context on the element.">
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
div { width: 100px; height: 100px }
|
||||
#wc { will-change: translate; background: red }
|
||||
#child { position: absolute; top: 0; left: 0; z-index: -1; background: green }
|
||||
</style>
|
||||
<body>
|
||||
<div id="wc">
|
||||
<div id="child">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
Loading…
Reference in New Issue
Block a user