summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filter-cb-abspos-inline-001-ref.html
blob: d092a401e4f1ced778b6445f7d92b72d6c2baabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<meta charset=UTF-8>
<title>CSS Filter: Establishing containing block for absolutely-positioned elements, on an inline element</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
<style>

#cb {
    position: relative;
    filter: brightness(100%);
}

#abspos {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: blue;
}

</style>

<p>Filler text.</p>

<div>
    <span id="cb">Blue box should cover top-left corner of this sentence.<span id="abspos"></span></span>
</div>