Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use real clips when generating scroll roots
This is the first step toward removing inherited clips in favor of scroll roots for handling overflow and CSS clipping. This will allow us to more easily handle elements that should not be clipped. While we are still using inherited clips here, we now properly clip some types of content that wasn't clipped before.
- Loading branch information
Showing
6 changed files
with
134 additions
and
12 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
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
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,36 @@ | ||
<!doctype html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<title>Test to ensure that clipped overflow is clipped to border radius</title> | ||
<link rel="match" href="overflow_border_radius_ref.html"> | ||
|
||
<body> | ||
<style> | ||
.box { | ||
width: 50px; | ||
height: 50px; | ||
border-radius: 20px; | ||
border: 5px transparent solid; | ||
margin-right: 10px; | ||
float: left; | ||
} | ||
|
||
.overflowingbox { | ||
margin-left: -25px; | ||
margin-top: -25px; | ||
width: 100px; | ||
height: 100px; | ||
background: gray; | ||
} | ||
</style> | ||
|
||
<div class="box border" style="overflow: auto;"> | ||
<div class="overflowingbox"></div> | ||
</div> | ||
|
||
<div class="box border" style="overflow: scroll;"> | ||
<div class="overflowingbox"></div> | ||
</div> | ||
</body> | ||
|
||
</html> |
26 changes: 26 additions & 0 deletions
26
tests/wpt/mozilla/tests/css/overflow_border_radius_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,26 @@ | ||
<!doctype html> | ||
<html> | ||
<meta charset="utf-8"> | ||
<title></title> | ||
|
||
<body> | ||
<style> | ||
.box { | ||
width: 50px; | ||
height: 50px; | ||
margin-left: 5px; | ||
margin-top: 5px; | ||
|
||
border-radius: 15px; | ||
background: gray; | ||
float: left; | ||
|
||
margin-right: 15px; | ||
} | ||
</style> | ||
|
||
<div class="box"></div> | ||
<div class="box"></div> | ||
</body> | ||
|
||
</html> |