-
Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathsize-resize.html
93 lines (76 loc) · 2.07 KB
/
size-resize.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Size: the resize property</title>
<link rel="stylesheet" href="../css-cookbook/styles.css">
<style>
.container {
display: flex;
}
.box {
border: 2px solid rgb(96, 139, 168);
border-radius: 5px;
background-color: rgba(96, 139, 168, .2);
padding: 10px;
margin: 10px;
overflow: scroll;
}
</style>
<style class="editable">
.box {
writing-mode: horizontal-tb;
}
.physical {
width: 200px;
height: 100px;
resize: horizontal;
}
.logical {
inline-size: 200px;
block-size: 100px;
resize: inline;
}
</style>
</head>
<body>
<section class="preview">
<div class="container">
<div class="physical box">
I have a width of 200px and a height of 100px. I can be resized horizontally.
</div>
<div class="logical box">
I have an inline-size of 200px and a block-size of 100px. I can be resized in the inline direction.
</div>
</div>
</section>
<textarea class="playable playable-css" style="height: 240px;">
.box {
writing-mode: horizontal-tb;
}
.physical {
width: 200px;
height: 100px;
resize: horizontal;
}
.logical {
inline-size: 200px;
block-size: 100px;
resize: inline;
}</textarea>
<textarea class="playable playable-html" style="height: 180px;">
<div class="container">
<div class="physical box">
I have a width of 200px and a height of 100px. I can be resized horizontally.
</div>
<div class="logical box">
I have an inline-size of 200px and a block-size of 100px. I can be resized in the inline direction.
</div>
</div>
</textarea>
<div class="playable-buttons">
<input id="reset" type="button" value="Reset">
</div>
</body>
<script src="../css-cookbook/playable.js"></script>
</html>