File: editable-region-composited-and-non-composited-overlap.html

package info (click to toggle)
wpewebkit 2.38.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 311,508 kB
  • sloc: cpp: 2,653,313; javascript: 289,013; ansic: 121,268; xml: 64,149; python: 35,534; ruby: 17,287; perl: 15,877; asm: 11,072; yacc: 2,326; sh: 1,863; lex: 1,319; java: 937; makefile: 146; pascal: 60
file content (63 lines) | stat: -rw-r--r-- 1,606 bytes parent folder | download | duplicates (17)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width">
    <style>
        .container {
            position: relative;
            width: 500px;
            height: 200px;
            margin: 20px;
            border: 1px solid black;
        }

        .editable {
            -webkit-user-modify: read-write;
            background-color: aquamarine;
            border: 2px solid green;
        }
        
        .overlapper {
            position: absolute;
            top: 0;
            height: 100%;
            width: 50%;
            background-color: rgba(255, 255, 255, 0.75);
            border: 1px solid black;
            z-index: 1;
            box-shadow: 0 0 10px black;
        }
        
        .tap-point {
            position: absolute;
            height: 10px;
            width: 10px;
            border-radius: 50%;
            background-color: red;
            z-index: 1;
        }
    </style>
    
</head>
<body>
    <h2>Non-composited overlap</h2>
    <div class="container">
        <div class="editable" style="margin: 10px; height: 100px">
        </div>
        <div class="overlapper">
        </div>
    </div>

    <h2>Composited overlap</h2>
    <div class="container">
        <div class="editable" style="margin: 10px; height: 100px">
        </div>
        <div class="overlapper" style="transform: translateZ(0)">
        </div>
    </div>
    
    <div class="tap-point" style="top: 150px; left: 270px"></div>
    <div class="tap-point" style="top: 400px; left: 270px"></div>
    <p>Tap near the red dots</p>
</body>
</html>