The optimization where we avoid UpdateOverflow if clipped on both axes is not sound, because it has side effects like updating nsBlockFrame's line overflow. Also, make the recursive path update overflows of anonymous boxes like the scrolled frame. Differential Revision: https://phabricator.services.mozilla.com/D289548
28 lines
782 B
HTML
28 lines
782 B
HTML
<!DOCTYPE html>
|
|
<meta charset="UTF-8">
|
|
<title>CSS Test: Perspective with overflow: auto</title>
|
|
<link rel="author" title="Mozilla" href="https://mozilla.com">
|
|
<link rel="author" title="Yannis Juglaret" href="mailto:yjuglaret@mozilla.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#perspective-property">
|
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2023621">
|
|
<link rel="match" href="overflow-perspective-ref.html">
|
|
<style>
|
|
#container {
|
|
width: 300px;
|
|
height: 300px;
|
|
overflow: auto;
|
|
perspective: 1000px;
|
|
}
|
|
|
|
#child {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: lime;
|
|
transform: translateX(100px) translateY(140px) translateZ(550px);
|
|
transform-origin: top left;
|
|
}
|
|
</style>
|
|
<div id="container">
|
|
<div id="child"></div>
|
|
</div>
|