Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't optimize display list for projective transforms
There are situations where elements are transformed from outside the display list. With projective transforms it's currently difficult to detect these. In those cases we just don't optimize the display list, so that they will always be shown. Fixes #13822.
- Loading branch information
Showing
4 changed files
with
81 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
33 changes: 33 additions & 0 deletions
33
tests/wpt/mozilla/tests/css/transform_3d_from_outside_viewport.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,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Ensure that content transformed from outside the viewport is displayed</title> | ||
<link rel="match" href="transform_3d_from_outside_viewport_ref.html"> | ||
<style> | ||
#container { | ||
left: 0; | ||
top: 0; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
perspective: 2000px; | ||
perspective-origin: 20% 50%; | ||
background: yellow; | ||
} | ||
|
||
#transformed { | ||
height: 200px; | ||
transform: translate3d(0px, 0px, -1300px) rotateY(45deg); | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="container"> | ||
<div id="transformed"></div> | ||
</div> | ||
</body> | ||
</html> |
15 changes: 15 additions & 0 deletions
15
tests/wpt/mozilla/tests/css/transform_3d_from_outside_viewport_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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Ensure that content transformed from outside the viewport is displayed</title> | ||
<style> | ||
body { | ||
background: yellow; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
</body> | ||
</html> |