OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test of box-decoration break rendering when the a text is broken in m
ultiple lines</title> | 4 <title>Test of box-decoration break rendering when the a text is broken in m
ultiple lines</title> |
5 <style type="text/css"> | 5 <style type="text/css"> |
6 body { | 6 body { |
7 width: 360px; | 7 width: 360px; |
8 font: monospace 10px; | 8 font: monospace 10px; |
9 } | 9 } |
10 span { | 10 span { |
11 display: block; | 11 display: block; |
12 width: 360px; | 12 width: 350px; |
13 } | 13 } |
14 span highlight { | 14 span highlight { |
15 border: 2px solid red; | 15 border: 2px solid red; |
16 background: yellow; | 16 background: yellow; |
17 box-shadow: 0px 1px 3px dimgrey; | 17 box-shadow: 0px 1px 3px dimgrey; |
18 } | 18 } |
19 #slice highlight { | 19 #slice highlight { |
20 box-decoration-break: slice; | 20 box-decoration-break: slice; |
21 -webkit-box-decoration-break: slice; | 21 -webkit-box-decoration-break: slice; |
22 } | 22 } |
23 | 23 |
24 #clone highlight { | 24 #clone highlight { |
25 box-decoration-break: clone; | 25 box-decoration-break: clone; |
26 -webkit-box-decoration-break: clone; | 26 -webkit-box-decoration-break: clone; |
27 } | 27 } |
28 </style> | 28 </style> |
29 | 29 |
30 </head> | 30 </head> |
31 <body> | 31 <body> |
32 <h1>Box-decoration-break: slice</h1> | 32 <h1>Box-decoration-break: slice</h1> |
33 <span id="slice">This long word should break in a new line : <highlight>very
veryveryveryveryveryvery-<br>-longword</highlight>. box-decoration-break is set
to cloned, | 33 <span id="slice">This long word should break in a new line : <highlight>very
veryveryveryveryveryvery-<br>-longword</highlight>. box-decoration-break is set
to cloned, |
34 so the right edge of the previous line is cut, and the left edge of the high
light in this line is cut too.</span> | 34 so the right edge of the previous line is cut, and the left edge of the high
light in this line is cut too.</span> |
35 <h1>Box-decoration-break: clone</h1> | 35 <h1>Box-decoration-break: clone</h1> |
36 <span id="clone">This long word should break in a new line : <highlight>very
veryveryveryveryveryvery-<br>-longword</highlight>. box-decoration-break is set
to cloned, | 36 <span id="clone">This long word should break in a new line : <highlight>very
veryveryveryveryveryvery-<br>-longword</highlight>. box-decoration-break is set
to cloned, |
37 so the right edge of the previous line is similar as its left edge, and the
left edge of the highlight in this line is similar as its right one. </span> | 37 so the right edge of the previous line is similar as its left edge, and the
left edge of the highlight in this line is similar as its right one. </span> |
38 </body> | 38 </body> |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |