summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-break/box-decoration-break-first-letter.html
blob: 16853af338df3ba5e2329c87316962a3881be6eb (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
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
<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
  <title>::first-letter with border-radius</title>
  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1067088">
<style>
html,body { color:black; background-color:white; font-size:24px; }
div { line-height:36px; }
.b::first-letter { background: blue; }
.c::first-letter { box-decoration-break:clone; }
.r100p::first-letter { border-radius: 100%; }
.r10p::first-letter { border-radius: 10%; }
.s1::first-letter { border:1px solid black; }
.i::first-letter { background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR%2FmAAAAAXNSR0IArs4c6QAAADpJREFUWMPtzgENAAAIA6Br%2F85aQzdIQGVyUCdaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpan1oLQKsBY3S7VU8AAAAASUVORK5CYII%3D); }
.shadowi::first-letter { box-shadow: inset 15px 9px 7px 0px #00F; }
.shadowo::first-letter { box-shadow: 0px 0px 7px 0px #00F;}
.shadowio::first-letter { box-shadow: inset 15px 9px 7px 0px #00F, 0px 0px 7px 0px #00F;}
.bi::first-letter {
  border: 5px solid red;
  border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD%2FgAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAoUlEQVR42u3bwQ0AIAgEwcOmtXttgScmsxWQCTyp3EysJo61IliwYMGCBUuwYMGCBQuWYMGCBQsWLMGCBQsWLFiCBQsWLFiwBAsWLFiwYAkWLFiwYMESLFiwYMGCpXaVka%2BsO8dmOUNYggULFixYsAQLFixYsGAJFixYsGDBEixYsGDBgiVYsGDBggVLsGDBggULlmDBggULFizBggUL1t89N%2FYEtBGStpoAAAAASUVORK5CYII%3D) 10 10 repeat;
  background: pink;
  border-image-outset: 7px 3px 5px 9px;
}
</style>
</head>
<body>
<table cellpadding="10"><tr><td>
  <div class="b r100p">First-letter</div>
  <div class="b r10p">First-letter</div>
  <div class="b s1 r100p">First-letter</div>
  <div class="b s1 r10p">First-letter</div>
  <div class="shadowo r100p">First-letter</div>
  <div class="shadowo s1 r10p">First-letter</div>
  <div class="shadowi s1 r100p">First-letter</div>
  <div class="shadowi r10p">First-letter</div>
  <div class="shadowio r100p">First-letter</div>
  <div class="shadowio s1 r10p">First-letter</div>
  <div class="s1 r100p">First-letter</div>
  <div class="s1 r10p">First-letter</div>
  <div class="i r100p">First-letter</div>
  <div class="i r10p">First-letter</div>
  <div class="i s1 r100p">First-letter</div>
  <div class="i s1 r10p">First-letter</div>
  <div class="bi">First-letter</div>
</td>
<td>
  <!-- box-decoration-break:clone should render the same for ::first-letter -->
  <div class="c b r100p">First-letter</div>
  <div class="c b r10p">First-letter</div>
  <div class="c b s1 r100p">First-letter</div>
  <div class="c b s1 r10p">First-letter</div>
  <div class="c shadowo r100p">First-letter</div>
  <div class="c shadowo s1 r10p">First-letter</div>
  <div class="c shadowi s1 r100p">First-letter</div>
  <div class="c shadowi r10p">First-letter</div>
  <div class="c shadowio r100p">First-letter</div>
  <div class="c shadowio s1 r10p">First-letter</div>
  <div class="c s1 r100p">First-letter</div>
  <div class="c s1 r10p">First-letter</div>
  <div class="c i r100p">First-letter</div>
  <div class="c i r10p">First-letter</div>
  <div class="c i s1 r100p">First-letter</div>
  <div class="c i s1 r10p">First-letter</div>
  <div class="c bi">First-letter</div>
</td>
</tr></table>
</body>
</html>