summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/backdrop-descendant-selector-ref.html
blob: 70d84c21ff4b01ef933172c676679e04b9333f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
<style>
.backdrop {
    position: absolute;
    height: 100px;
    width: 100px;
    background: green;
}
</style>
</head>
<body>
Test ::backdrop used in descendant selectors. The test passes if there are two green boxes and no red.
<div class="backdrop" style="top: 100px; left: 100px"></div>
<div class="backdrop" style="top: 100px; left: 300px"></div>
</body>
</html>