layout/reftests/border-radius/clipping-and-zindex-1.html
author Paul Adenot <paul@paul.cx>
Tue, 15 Jul 2025 08:36:21 +0000 (7 hours ago)
changeset 796624 8b4dd515e78c642a9744dfd44f2f78fc59439587
parent 52297 c1cc7b565dc740206b5b46b613f99da334195329
permissions -rw-r--r--
Bug 1838735 - Change NS_WARNING to MOZ_LOG for real-time limit warning in CubebUtils. r=media-playback-reviewers,karlt Differential Revision: https://phabricator.services.mozilla.com/D257222
<!DOCTYPE HTML>
<title>Test for z-index relationship to border-radius clipping of overflow</title>
<style>

#one { position: absolute; z-index: 2; background: blue;
       top: 50px; left: 50px; width: 100px; height: 100px }

#twoouter { position: absolute; border-radius: 15px; overflow: hidden;
            top: 25px; left: 75px; width: 100px; height: 100px }
#twoinner { position: relative; z-index: 1; height: 100px; background: fuchsia }

#three { position: absolute; z-index: 0; background: yellow;
         top: 75px; left: 100px; width: 100px; height: 100px }

</style>

<div id="one"></div>
<div id="twoouter"><div id="twoinner"></div></div>
<div id="three"></div>