Skip to content

Commit 03de354

Browse files
committed
Add HEIGHT constant to CssDefaults
DEVSIX-4139
1 parent 5d6d8c2 commit 03de354

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

styled-xml-parser/src/main/java/com/itextpdf/styledxmlparser/css/CommonCssConstants.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,11 @@ public class CommonCssConstants {
648648
*/
649649
public static final String WIDTH = "width";
650650

651+
/**
652+
* The Constant HEIGHT.
653+
*/
654+
public static final String HEIGHT = "height";
655+
651656
/**
652657
* The Constant WORDWRAP.
653658
*/

styled-xml-parser/src/main/java/com/itextpdf/styledxmlparser/css/resolve/CssDefaults.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public class CssDefaults {
103103
defaultValues.put(CommonCssConstants.FONT_VARIANT, CommonCssConstants.NORMAL);
104104
defaultValues.put(CommonCssConstants.FONT_WEIGHT, CommonCssConstants.NORMAL);
105105

106+
defaultValues.put(CommonCssConstants.HEIGHT, CommonCssConstants.AUTO);
106107
defaultValues.put(CommonCssConstants.HYPHENS, CommonCssConstants.MANUAL);
107108

108109
defaultValues.put(CommonCssConstants.LINE_HEIGHT, CommonCssConstants.NORMAL);

0 commit comments

Comments
 (0)