Skip to content

Commit 258479e

Browse files
committed
box decoration break
1 parent 2b000d4 commit 258479e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

More-CSS-V2/box-decoration-break.html

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>box-decoration-break</title>
8+
<style>
9+
body {
10+
font: size 20px;
11+
}
12+
div {
13+
width: 500px;
14+
}
15+
span {
16+
border: 5px solid red;
17+
padding: 0em 1em;
18+
border-radius: 16px;
19+
font-size: 24px;
20+
line-height: 2;
21+
}
22+
.ex1 {
23+
box-decoration-break: clone;
24+
-o-box-decoration-break: clone;
25+
-webkit-box-decoration-break: clone;
26+
}
27+
.ex2 {
28+
box-decoration-break: slice;
29+
-webkit-box-decoration-break: slice;
30+
/* default value */
31+
}
32+
</style>
33+
</head>
34+
<body>
35+
<p>
36+
The <strong>box-decoration-break</strong> property specifies how the
37+
background, padding, border, border-image, box-shadow, margin, and
38+
clip-path of an element is applied when the box for the element is
39+
fragmented.
40+
</p>
41+
<div>
42+
<h1>What are you doing?</h1>
43+
<span class="ex1">CSS<br />is<br />easy<br />to learn</span>
44+
<br />
45+
<span class="ex2">CSS<br />is<br />easy<br />to learn</span>
46+
</div>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)