blob: 2ce3c844ff4c0cb0af09b2370088447516ce62bb (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<!DOCTYPE html>
<html>
<head>
<title>Zero-width layers</title>
<style>
.foo {
margin: 100px;
}
.button {
display: block;
font-size: 14px;
height: 46px;
position: absolute;
left: 105px;
text-align: center;
text-transform: lowercase;
top: 27px;
transform: none;
visibility: visible;
width: 100px;
z-index: 10021;
}
.button::before {
color: rgb(0, 0, 0);
display: block;
font-size: 40px;
height: 46px;
width: 0px;
z-index: auto;
content: 'A'
}
.container {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<aside class="container">
<span class="button"></span>
<div class="foo"></div>
</aside>
<p>
A lowercase a should appear above.
</p>
</body>
</html>
|