Skip to content

Commit 45afc0e

Browse files
committed
Bug 1950035 [wpt PR 50897] - Support for the isolation CSS property, a=testonly
Automatic update from web-platform-tests Add behavior test Signed-off-by: Oriol Brufau <obrufauigalia.com> -- wpt-commits: 72098edd0ca9e29d82206812df6ad96f1de76638 wpt-pr: 50897 UltraBlame original commit: b0b7f8990ba49874bf914f83eaed846394400ead
1 parent 1c95a67 commit 45afc0e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Compositing and Blending: The isolation property</title>
4+
<link rel="author" title="Oriol Brufau" href="mailto:[email protected]">
5+
<link rel="help" href="https://www.w3.org/TR/compositing-1/#isolation">
6+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
7+
<meta name="assert" content="For CSS, setting `isolation` to `isolate` will turn the element into a stacking context.">
8+
9+
<style>
10+
#parent {
11+
width: 100px;
12+
height: 100px;
13+
isolation: isolate;
14+
background: red;
15+
}
16+
#child {
17+
width: 100px;
18+
height: 100px;
19+
position: relative;
20+
z-index: -1;
21+
background: green;
22+
}
23+
</style>
24+
25+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
26+
<div id="parent">
27+
<div id="child"></div>
28+
</div>

0 commit comments

Comments
 (0)