-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy pathborder_radius.rml
54 lines (53 loc) · 1.31 KB
/
border_radius.rml
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
<rml>
<head>
<title>Border-radius</title>
<link type="text/rcss" href="../style.rcss"/>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-radius" />
<meta name="Description" content="Border-radius property" />
<style>
body {
background: #ddd;
color: #444;
}
div {
margin: 20px auto;
width: 200px;
height: 120px;
background: #c3c3c3;
border-color: #55f #f57 #55f #afa;
}
.thin {
border-width: 10px 5px 25px 20px;
border-radius: 80px 30px;
decorator: gradient( horizontal #ff8400 #ffd34f );
}
.thick {
border-width: 40px 20px;
border-radius: 30px;
}
.arc {
width: 80px;
height: 80px;
border-width: 40px;
border-color: #ff8400 #ff8400 #ffd34f #ffd34f;
border-radius: 0 150px;
}
.split {
line-height: 2.5;
}
.split span {
background: #c3c3c3;
border-color: #55f #f57 #55f #afa;
border-width: 5px;
border-radius: 8px;
}
</style>
</head>
<body>
<p>The following boxes should produce curved borders. There should be no overlapping triangles, and their backgrounds should not be visible outside their borders.</p>
<div class="thin"/>
<div class="thick"/>
<div class="arc"/>
<p class="split">The following text <span>should wrap down to the<br/> next line</span> and produce borders on each line.</p>
</body>
</rml>