Skip to content

Commit 8644024

Browse files
Kate IvanovaiText-CI
authored andcommitted
Add LineHeightTest#inlineBlockFloatAndLineHeightTest
DEVSIX-4574 Autoported commit. Original commit hash: [d263f092]
1 parent e44a528 commit 8644024

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/LineHeightTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ public virtual void LineHeightInheritInSpanTest() {
196196
TestLineHeight("lineHeightInheritInSpan");
197197
}
198198

199+
[NUnit.Framework.Test]
200+
public virtual void InlineBlockFloatAndLineHeightTest() {
201+
// TODO: update cmp file after fixing DEVSIX-4604
202+
TestLineHeight("inlineBlockFloatAndLineHeight");
203+
}
204+
199205
internal virtual void TestLineHeight(String name) {
200206
String sourceHtml = SOURCE_FOLDER + name + ".html";
201207
String destinationPdf = DESTINATION_FOLDER + name + ".pdf";
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<style>
6+
div {
7+
width: 400px;
8+
font-size:50px;
9+
border: solid blue 2px;
10+
display: inline-block;
11+
line-height: 2;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<p>Span with red border has float: left, it's height should be the same as in Div with blue border</p>
17+
<p>Span with yellow border has no float</p>
18+
<p>Span with green border has float: left and line-height: 1.2</p>
19+
<div>
20+
<span style="border: solid red 2px; float: left; width: 100;">Text1</span>
21+
<span style="border: solid yellow 2px; width: 100;">Text2</span>
22+
<span style="border: solid green 2px; float: left; line-height: 1.2; width: 100;">Text3</span>
23+
</div>
24+
</body>
25+
</html>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
308db0c95f56177584285a6595e4fb8d76f5d29d
1+
d263f0929bb79b3cc446b7a54e63fc6d79ee7721

0 commit comments

Comments
 (0)