Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for nested stacking context overflow areas.
- Loading branch information
Showing
5 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Inner stacking contexts' transforms are taken into account for overflow computation</title> | ||
<link rel="match" href="overflow_transformed_sc_ref.html"> | ||
<style> | ||
.outer-sc { | ||
transform: translate(-50px, -50px); | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 50px; | ||
left: 50px; | ||
background: blue; | ||
} | ||
|
||
.inner-sc { | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 0; | ||
left: 0; | ||
transform: translate(250px, 250px); | ||
background: green; | ||
} | ||
|
||
html, body { margin: 0; padding: 0; } | ||
</style> | ||
<div class="outer-sc"> | ||
<div class="inner-sc"> | ||
</div> | ||
</div> |
28 changes: 28 additions & 0 deletions
28
tests/wpt/mozilla/tests/css/overflow_transformed_sc_ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>CSS test reference</title> | ||
<style> | ||
.outer-sc { | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 0; | ||
left: 0; | ||
background: blue; | ||
} | ||
|
||
.inner-sc { | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 250px; | ||
left: 250px; | ||
background: green; | ||
} | ||
|
||
html, body { margin: 0; padding: 0; } | ||
</style> | ||
<div class="outer-sc"> | ||
<div class="inner-sc"> | ||
</div> | ||
</div> |
31 changes: 31 additions & 0 deletions
31
tests/wpt/mozilla/tests/css/overflow_transformed_sc_rotate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Inner stacking contexts' transforms are taken into account for overflow computation</title> | ||
<link rel="match" href="overflow_transformed_sc_rotate_ref.html"> | ||
<style> | ||
.outer-sc { | ||
transform: translate(-50px, -50px); | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 50px; | ||
left: 50px; | ||
background: blue; | ||
} | ||
|
||
.inner-sc { | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 0; | ||
left: 0; | ||
transform: translate(250px, 250px) rotate(45deg); | ||
background: green; | ||
} | ||
|
||
html, body { margin: 0; padding: 0; } | ||
</style> | ||
<div class="outer-sc"> | ||
<div class="inner-sc"> | ||
</div> | ||
</div> |
30 changes: 30 additions & 0 deletions
30
tests/wpt/mozilla/tests/css/overflow_transformed_sc_rotate_ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>CSS test reference.</title> | ||
<style> | ||
.outer-sc { | ||
transform: translate(-50px, -50px); | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 50px; | ||
left: 50px; | ||
background: blue; | ||
} | ||
|
||
.inner-sc { | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: 0; | ||
left: 0; | ||
transform: translate(250px, 250px) rotate(45deg); | ||
background: green; | ||
} | ||
|
||
html, body { margin: 0; padding: 0; } | ||
</style> | ||
<div class="outer-sc"> | ||
</div> | ||
<div class="inner-sc"> | ||
</div> |