File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
styled-xml-parser/src/main/java/com/itextpdf/styledxmlparser/css Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,11 @@ public class CommonCssConstants {
463
463
*/
464
464
public static final String OPACITY = "opacity" ;
465
465
466
+ /**
467
+ * The Constant OPRPHANS.
468
+ */
469
+ public static final String ORPHANS = "orphans" ;
470
+
466
471
/**
467
472
* The Constant OUTLINE.
468
473
*/
@@ -618,6 +623,11 @@ public class CommonCssConstants {
618
623
*/
619
624
public static final String WHITE_SPACE = "white-space" ;
620
625
626
+ /**
627
+ * The Constant WIDOWS.
628
+ */
629
+ public static final String WIDOWS = "widows" ;
630
+
621
631
/**
622
632
* The Constant WIDTH.
623
633
*/
Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ public class CssDefaults {
142
142
defaultValues .put (CommonCssConstants .WHITE_SPACE , CommonCssConstants .NORMAL );
143
143
defaultValues .put (CommonCssConstants .WIDTH , CommonCssConstants .AUTO );
144
144
145
+ defaultValues .put (CommonCssConstants .ORPHANS , "2" );
146
+ defaultValues .put (CommonCssConstants .WIDOWS , "2" );
147
+
145
148
// TODO not complete
146
149
}
147
150
Original file line number Diff line number Diff line change @@ -126,7 +126,10 @@ public class CssInheritance implements IStyleInheritance {
126
126
CommonCssConstants .LIST_STYLE_TYPE ,
127
127
128
128
// Generated Content for Paged Media
129
- CommonCssConstants .QUOTES
129
+ CommonCssConstants .QUOTES ,
130
+
131
+ CommonCssConstants .ORPHANS ,
132
+ CommonCssConstants .WIDOWS
130
133
));
131
134
132
135
/**
You can’t perform that action at this time.
0 commit comments