зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1271714 - Test.
MozReview-Commit-ID: 7dKuI80NEjr
This commit is contained in:
Родитель
89606c568a
Коммит
a779579806
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Reference for bug 1271714: .fixed should have a yellow background</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
.fixed {
|
||||
border: 1px solid black;
|
||||
height: 50px;
|
||||
width: 200px;
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="fixed"></div>
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Bug 1271714: Hit testing should be able to find the .fixed element</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
.positionedClip {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
position: fixed;
|
||||
border: 1px solid black;
|
||||
height: 50px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="positionedClip">
|
||||
<div class="relative">
|
||||
<div class="fixed"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
document.elementFromPoint(100, 30).style.backgroundColor = "yellow";
|
||||
|
||||
</script>
|
|
@ -1952,4 +1952,5 @@ fuzzy(100,2000) == 1239564.html 1239564-ref.html
|
|||
== 1242781.html 1242781-ref.html
|
||||
== 1263845.html 1263845-ref.html
|
||||
== 1260543-1.html 1260543-1-ref.html
|
||||
== 1271714-1.html 1271714-1-ref.html
|
||||
== 1272997-1.html 1272997-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче