blob: 7e5108e4807a1541ee532679f3332e1257f7cb33 (
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<style>
@font-face {
font-family: test;
src: url(../fonts/NotoSansCJKjp-Regular.subset.otf);
}
body {
font-family: test, serif;
line-height: 2em;
}
p {
margin: 1em;
}
span {
display: inline-block;
inline-size: 9em; /* length of 9 standard CJK chars */
}
.v {
writing-mode: vertical-rl;
}
.green {
color: green;
background: green;
}
.overlay {
position: relative;
inset-block-start: -3em;
}
</style>
</head>
<body>
There should be no red:
<div>
<p><span> </p>
<p class="overlay"><span class="green"> </p>
<p><span> </p>
<p class="overlay"><span class="green"> </p>
</div>
<div class="v">
<p><span> </p>
<p class="overlay"><span class="green"> </p>
<p><span> </p>
<p class="overlay"><span class="green"> </p>
</div>
|