Skip to content

Commit fa59850

Browse files
committed
Update cmp files
DEVSIX-2050
1 parent cf382ea commit fa59850

File tree

64 files changed

+32
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+32
-24
lines changed

src/test/java/com/itextpdf/html2pdf/css/CssStylesResolvingTest.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void collectStylesDeclarationsTest01() throws IOException {
8888
"margin-right: 0",
8989
"margin-top: 1em",
9090
"display: block",
91-
"font-family: times-roman");
91+
"font-family: times");
9292
}
9393

9494
@Test
@@ -100,7 +100,7 @@ public void collectStylesDeclarationsTest02() throws IOException {
100100
"margin-right: 0",
101101
"margin-top: 1em",
102102
"display: block",
103-
"font-family: times-roman");
103+
"font-family: times");
104104
}
105105

106106
@Test
@@ -112,37 +112,37 @@ public void collectStylesDeclarationsTest03() throws IOException {
112112
"margin-right: 0",
113113
"margin-top: 1em",
114114
"display: block",
115-
"font-family: times-roman");
115+
"font-family: times");
116116
}
117117

118118
@Test
119119
public void stylesInheritanceTest01() throws IOException {
120120
test("stylesInheritanceTest01.html", "html body p span",
121-
"color: blue", "text-align: center", "font-style: italic", "font-size: 11.25pt", "font-family: times-roman");
121+
"color: blue", "text-align: center", "font-style: italic", "font-size: 11.25pt", "font-family: times");
122122
}
123123

124124
@Test
125125
public void stylesInheritanceTest02() throws IOException {
126126
test("stylesInheritanceTest02.html", "html body p span",
127-
"color: black", "text-align: center", "font-style: italic", "font-size: 11.25pt", "font-family: times-roman");
127+
"color: black", "text-align: center", "font-style: italic", "font-size: 11.25pt", "font-family: times");
128128
}
129129

130130
@Test
131131
public void stylesInheritanceTest03() throws IOException {
132132
test("stylesInheritanceTest03.html", "html body p span",
133-
"color: green", "font-size: 12.0pt", "font-family: times-roman");
133+
"color: green", "font-size: 12.0pt", "font-family: times");
134134
}
135135

136136
@Test
137137
public void stylesInheritanceTest04() throws IOException {
138138
test("stylesInheritanceTest04.html", "html body p span",
139-
"color: blue", "font-size: 12.0pt", "font-family: times-roman");
139+
"color: blue", "font-size: 12.0pt", "font-family: times");
140140
}
141141

142142
@Test
143143
public void stylesInheritanceTest05() throws IOException {
144144
test("stylesInheritanceTest05.html", "html body p span",
145-
"color: black", "font-size: 12.0pt", "font-family: times-roman");
145+
"color: black", "font-size: 12.0pt", "font-family: times");
146146
}
147147

148148
@Test
@@ -151,7 +151,7 @@ public void stylesInheritanceTest06() throws IOException {
151151
"margin-left: 20px",
152152
"margin-right: 0",
153153
"background-color: yellow",
154-
"font-size: 12.0pt", "font-family: times-roman");
154+
"font-size: 12.0pt", "font-family: times");
155155
}
156156

157157
@Test
@@ -160,7 +160,7 @@ public void stylesInheritanceTest07() throws IOException {
160160
"margin-left: 0",
161161
"padding-top: 10px",
162162
"background-color: yellow",
163-
"font-size: 12.0pt", "font-family: times-roman");
163+
"font-size: 12.0pt", "font-family: times");
164164
}
165165

166166
@Test
@@ -184,7 +184,7 @@ public void stylesShorthandsTest01() throws IOException {
184184
"margin-right: 0",
185185
"margin-top: 1em",
186186
"display: block",
187-
"font-family: times-roman");
187+
"font-family: times");
188188
}
189189

190190
@Test
@@ -197,7 +197,7 @@ public void htmlStylesConvertingTest01() throws IOException {
197197
"margin-right: 0",
198198
"margin-top: 1em",
199199
"display: block",
200-
"font-family: times-roman");
200+
"font-family: times");
201201
}
202202

203203
@Test
@@ -210,7 +210,7 @@ public void htmlStylesConvertingTest02() throws IOException {
210210
"margin-right: 0",
211211
"margin-top: 1em",
212212
"display: block",
213-
"font-family: times-roman");
213+
"font-family: times");
214214
}
215215

216216
@Test
@@ -223,7 +223,7 @@ public void htmlStylesConvertingTest03() throws IOException {
223223
"margin-right: 0",
224224
"margin-top: 1em",
225225
"display: block",
226-
"font-family: times-roman");
226+
"font-family: times");
227227
}
228228

229229
@Test
@@ -236,7 +236,7 @@ public void htmlStylesConvertingTest04() throws IOException {
236236
"margin-right: 0",
237237
"margin-top: 1em",
238238
"display: block",
239-
"font-family: times-roman");
239+
"font-family: times");
240240
}
241241

242242
@Test
@@ -252,7 +252,7 @@ public void htmlStylesConvertingTest05() throws IOException {
252252
"text-indent: 0",
253253
"display: table",
254254
"border-spacing: 2px",
255-
"font-family: times-roman",
255+
"font-family: times",
256256
"border-bottom-color: currentcolor",
257257
"border-left-color: currentcolor",
258258
"border-right-color: currentcolor",
@@ -268,7 +268,7 @@ public void htmlStylesConvertingTest06() throws IOException {
268268
"vertical-align: middle",
269269
"display: table-row",
270270
"border-spacing: 2px",
271-
"font-family: times-roman");
271+
"font-family: times");
272272
}
273273

274274
@Test
@@ -289,7 +289,7 @@ public void htmlStylesConvertingTest09() throws IOException {
289289
"text-align: center",
290290
"display: block",
291291
"font-size: 12.0pt",
292-
"font-family: times-roman");
292+
"font-family: times");
293293
}
294294

295295
@Test
@@ -304,7 +304,7 @@ public void htmlStylesConvertingTest11() throws IOException {
304304
"background-color: yellow",
305305
"font-size: 12.0pt",
306306
"display: block",
307-
"font-family: times-roman");
307+
"font-family: times");
308308
}
309309

310310
private void resolveStylesForTree(INode node, ICssResolver cssResolver, CssContext context) {
Binary file not shown.
Binary file not shown.

src/test/resources/com/itextpdf/html2pdf/css/CssStyleSheetParserTest/cmp_default.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
html {
2-
font-family: times-roman
2+
font-family: times
33
}
44
pre {
55
font-family: monospace;
@@ -366,7 +366,9 @@ input {
366366
display: inline-block;
367367
text-align: start;
368368
margin: 0em 0em 0em 0em;
369-
font: 13.3333px arial
369+
font-size: 13.3333px;
370+
font-family: arial,helvetica;
371+
font-weight: normal
370372
}
371373
textarea {
372374
color: initial;
@@ -378,7 +380,9 @@ textarea {
378380
display: inline-block;
379381
text-align: start;
380382
margin: 0em 0em 0em 0em;
381-
font: 13.3333px arial
383+
font-size: 13.3333px;
384+
font-family: arial,helvetica;
385+
font-weight: normal
382386
}
383387
select {
384388
color: initial;
@@ -390,7 +394,9 @@ select {
390394
display: inline-block;
391395
text-align: start;
392396
margin: 0em 0em 0em 0em;
393-
font: 13.3333px arial
397+
font-size: 13.3333px;
398+
font-family: arial,helvetica;
399+
font-weight: normal
394400
}
395401
button {
396402
color: initial;
@@ -402,7 +408,9 @@ button {
402408
display: inline-block;
403409
text-align: start;
404410
margin: 0em 0em 0em 0em;
405-
font: 13.3333px arial
411+
font-size: 13.3333px;
412+
font-family: arial,helvetica;
413+
font-weight: normal
406414
}
407415
input {
408416
background-color: white;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)