Files
servo/tests/wpt/css-tests/css-masking-1_dev/html/reference/mask-origin-2-ref.htm

35 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>CSS Masking: mask-origin: mask positioning area</title>
<link href="mailto:aschen@mozilla.com" rel="author" title="Astley Chen">
<link href="https://www.mozilla.org" rel="author" title="Mozilla">
<style type="text/css">
div.outer {
border: 1px solid black;
width: 125px;
height: 125px;
position: relative;
}
div.inner {
width: 50px;
height: 50px;
background-color: purple;
position: absolute;
}
#pos-left-auto { left: 0px; top: 22px; }
#pos-left-bottom { left: 0px; top: 44px; }
#pos-right-top { left: 36px; top: 0px; }
#pos-right-bottom { left: 36px; top: 44px; }
</style>
</head>
<body>
<div class="outer"><div id="pos-left-auto" class="inner"></div></div>
<div class="outer"><div id="pos-left-bottom" class="inner"></div></div>
<div class="outer"><div id="pos-right-top" class="inner"></div></div>
<div class="outer"><div id="pos-right-bottom" class="inner"></div></div>
</body></html>