summaryrefslogtreecommitdiff
path: root/dev/test-writing-mode.html
blob: 96c811e7c328230d6b53b5239b70339ef0f4042f (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
<!DOCTYPE html>
<html>
<head>
<style>
html {
	-ms-writing-mode: lr-tb;
	-webkit-writing-mode: horizontal-tb;
	-moz-writing-mode: horizontal-tb;
	-ms-writing-mode: horizontal-tb;
	writing-mode: horizontal-tb;
}
html:hover {
	-ms-writing-mode: tb-rl;
	-webkit-writing-mode: vertical-rl;
	-moz-writing-mode: vertical-rl;
	-ms-writing-mode: vertical-rl;
	writing-mode: vertical-rl;
}
h1 {
	background: #600;
	color: #fff;
	width: 50%;
	margin: 0;
	padding: 3px;
	border-bottom: 2px solid black;
}
p {
	margin: 0;
	padding: 3px;
	border: 1px solid green;
	border-left-width: 1em;
	margin-top: 3em;
}
</style>
</head>
<body>
<h1>Test</h1>
<p>Here's some text to test CSS3 writing modes <a href="https://drafts.csswg.org/css-writing-modes/#abstract-layout">abstract box layout</a>!</p>
</body>
</html>