зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1508645 - Upstream the test for bug 1495791 to WPT. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D12427
This commit is contained in:
Родитель
a3258f6f27
Коммит
d0ac8ac82b
|
@ -1,32 +0,0 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
html, body { margin: 0; }
|
||||
|
||||
#clip {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background: lime;
|
||||
clip: rect(0, auto, auto, 0);
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#fixed {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#clipped {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background: red;
|
||||
transform: translateY(100px);
|
||||
}
|
||||
</style>
|
||||
<div id="clip">
|
||||
<div id="fixed">
|
||||
<div id="clipped"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -2095,4 +2095,3 @@ test-pref(layout.css.visited_links_enabled,false) == 1488155.html 1488155-ref.ht
|
|||
== 1492660-1.html 1492660-1-ref.html
|
||||
pref(layout.css.supports-selector.enabled,true) == 1499386.html 1499386-ref.html
|
||||
pref(layout.css.supports-selector.enabled,false) != 1499386.html 1499386-ref.html
|
||||
== 1495791.html 1495791-ref.html
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test Reference</title>
|
||||
<style>
|
||||
html, body { margin: 0 }
|
||||
div {
|
|
@ -0,0 +1,38 @@
|
|||
<!doctype html>
|
||||
<title>CSS Masking: Transformed descendants of a fixed pos element under a clipped element get properly clipped</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Mozilla" href="https://mozilla.org">
|
||||
<link rel="match" href="clip-fixed-pos-transform-descendant-001-ref.html">
|
||||
<link rel="help" href="https://drafts.fxtf.org/css-masking/#clip-property">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1495791">
|
||||
<style>
|
||||
html, body { margin: 0; }
|
||||
|
||||
#clip {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background: lime;
|
||||
clip: rect(0, auto, auto, 0);
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#fixed {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#clipped {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background: red;
|
||||
transform: translateY(100px);
|
||||
}
|
||||
</style>
|
||||
<div id="clip">
|
||||
<div id="fixed">
|
||||
<div id="clipped"></div>
|
||||
</div>
|
||||
</div>
|
Загрузка…
Ссылка в новой задаче