@@ -241,6 +241,30 @@ public String getDimensionUnitText() {
241241 return "vmin" ;
242242 case VMAX :
243243 return "vmax" ;
244+ case DVW :
245+ return "dvw" ;
246+ case DVH :
247+ return "dvh" ;
248+ case DVMIN :
249+ return "dvmin" ;
250+ case DVMAX :
251+ return "dvmax" ;
252+ case LVW :
253+ return "lvw" ;
254+ case LVH :
255+ return "lvh" ;
256+ case LVMIN :
257+ return "lvmin" ;
258+ case LVMAX :
259+ return "lvmax" ;
260+ case SVW :
261+ return "svw" ;
262+ case SVH :
263+ return "svh" ;
264+ case SVMIN :
265+ return "svmin" ;
266+ case SVMAX :
267+ return "svmax" ;
244268 case PIXEL :
245269 return "px" ;
246270 case INCH :
@@ -363,6 +387,18 @@ public String getCssText() {
363387 case VH :
364388 case VMIN :
365389 case VMAX :
390+ case DVW :
391+ case DVH :
392+ case DVMIN :
393+ case DVMAX :
394+ case LVW :
395+ case LVH :
396+ case LVMIN :
397+ case LVMAX :
398+ case SVW :
399+ case SVH :
400+ case SVMIN :
401+ case SVMAX :
366402 case PIXEL :
367403 case INCH :
368404 case CENTIMETER :
@@ -584,6 +620,78 @@ public String toDebugString() {
584620 .append (getDimensionUnitText ())
585621 .append (")" );
586622 break ;
623+ case DVW :
624+ sb .append ("DVW(" )
625+ .append (getTrimedDoubleValue ())
626+ .append (getDimensionUnitText ())
627+ .append (")" );
628+ break ;
629+ case DVH :
630+ sb .append ("DVH(" )
631+ .append (getTrimedDoubleValue ())
632+ .append (getDimensionUnitText ())
633+ .append (")" );
634+ break ;
635+ case DVMIN :
636+ sb .append ("DVMIN(" )
637+ .append (getTrimedDoubleValue ())
638+ .append (getDimensionUnitText ())
639+ .append (")" );
640+ break ;
641+ case DVMAX :
642+ sb .append ("DVMAX(" )
643+ .append (getTrimedDoubleValue ())
644+ .append (getDimensionUnitText ())
645+ .append (")" );
646+ break ;
647+ case LVW :
648+ sb .append ("LVW(" )
649+ .append (getTrimedDoubleValue ())
650+ .append (getDimensionUnitText ())
651+ .append (")" );
652+ break ;
653+ case LVH :
654+ sb .append ("LVH(" )
655+ .append (getTrimedDoubleValue ())
656+ .append (getDimensionUnitText ())
657+ .append (")" );
658+ break ;
659+ case LVMIN :
660+ sb .append ("LVMIN(" )
661+ .append (getTrimedDoubleValue ())
662+ .append (getDimensionUnitText ())
663+ .append (")" );
664+ break ;
665+ case LVMAX :
666+ sb .append ("LVMAX(" )
667+ .append (getTrimedDoubleValue ())
668+ .append (getDimensionUnitText ())
669+ .append (")" );
670+ break ;
671+ case SVW :
672+ sb .append ("SVW(" )
673+ .append (getTrimedDoubleValue ())
674+ .append (getDimensionUnitText ())
675+ .append (")" );
676+ break ;
677+ case SVH :
678+ sb .append ("SVH(" )
679+ .append (getTrimedDoubleValue ())
680+ .append (getDimensionUnitText ())
681+ .append (")" );
682+ break ;
683+ case SVMIN :
684+ sb .append ("SVMIN(" )
685+ .append (getTrimedDoubleValue ())
686+ .append (getDimensionUnitText ())
687+ .append (")" );
688+ break ;
689+ case SVMAX :
690+ sb .append ("SVMAX(" )
691+ .append (getTrimedDoubleValue ())
692+ .append (getDimensionUnitText ())
693+ .append (")" );
694+ break ;
587695 case PIXEL :
588696 sb .append ("PIXEL(" )
589697 .append (getTrimedDoubleValue ())
@@ -973,6 +1081,114 @@ public static LexicalUnit createVMax(final LexicalUnit prev, final double d) {
9731081 return new LexicalUnitImpl (prev , LexicalUnitType .VMAX , d );
9741082 }
9751083
1084+ /**
1085+ * @param prev the previous LexicalUnit
1086+ * @param d the double value
1087+ * @return lexical unit with type dvw
1088+ */
1089+ public static LexicalUnit createDvw (final LexicalUnit prev , final double d ) {
1090+ return new LexicalUnitImpl (prev , LexicalUnitType .DVW , d );
1091+ }
1092+
1093+ /**
1094+ * @param prev the previous LexicalUnit
1095+ * @param d the double value
1096+ * @return lexical unit with type dvh
1097+ */
1098+ public static LexicalUnit createDvh (final LexicalUnit prev , final double d ) {
1099+ return new LexicalUnitImpl (prev , LexicalUnitType .DVH , d );
1100+ }
1101+
1102+ /**
1103+ * @param prev the previous LexicalUnit
1104+ * @param d the double value
1105+ * @return lexical unit with type dvmin
1106+ */
1107+ public static LexicalUnit createDvMin (final LexicalUnit prev , final double d ) {
1108+ return new LexicalUnitImpl (prev , LexicalUnitType .DVMIN , d );
1109+ }
1110+
1111+ /**
1112+ * @param prev the previous LexicalUnit
1113+ * @param d the double value
1114+ * @return lexical unit with type dvmax
1115+ */
1116+ public static LexicalUnit createDvMax (final LexicalUnit prev , final double d ) {
1117+ return new LexicalUnitImpl (prev , LexicalUnitType .DVMAX , d );
1118+ }
1119+
1120+ /**
1121+ * @param prev the previous LexicalUnit
1122+ * @param d the double value
1123+ * @return lexical unit with type lvw
1124+ */
1125+ public static LexicalUnit createLvw (final LexicalUnit prev , final double d ) {
1126+ return new LexicalUnitImpl (prev , LexicalUnitType .LVW , d );
1127+ }
1128+
1129+ /**
1130+ * @param prev the previous LexicalUnit
1131+ * @param d the double value
1132+ * @return lexical unit with type lvh
1133+ */
1134+ public static LexicalUnit createLvh (final LexicalUnit prev , final double d ) {
1135+ return new LexicalUnitImpl (prev , LexicalUnitType .LVH , d );
1136+ }
1137+
1138+ /**
1139+ * @param prev the previous LexicalUnit
1140+ * @param d the double value
1141+ * @return lexical unit with type lvmin
1142+ */
1143+ public static LexicalUnit createLvMin (final LexicalUnit prev , final double d ) {
1144+ return new LexicalUnitImpl (prev , LexicalUnitType .LVMIN , d );
1145+ }
1146+
1147+ /**
1148+ * @param prev the previous LexicalUnit
1149+ * @param d the double value
1150+ * @return lexical unit with type lvmax
1151+ */
1152+ public static LexicalUnit createLvMax (final LexicalUnit prev , final double d ) {
1153+ return new LexicalUnitImpl (prev , LexicalUnitType .LVMAX , d );
1154+ }
1155+
1156+ /**
1157+ * @param prev the previous LexicalUnit
1158+ * @param d the double value
1159+ * @return lexical unit with type svw
1160+ */
1161+ public static LexicalUnit createSvw (final LexicalUnit prev , final double d ) {
1162+ return new LexicalUnitImpl (prev , LexicalUnitType .SVW , d );
1163+ }
1164+
1165+ /**
1166+ * @param prev the previous LexicalUnit
1167+ * @param d the double value
1168+ * @return lexical unit with type svh
1169+ */
1170+ public static LexicalUnit createSvh (final LexicalUnit prev , final double d ) {
1171+ return new LexicalUnitImpl (prev , LexicalUnitType .SVH , d );
1172+ }
1173+
1174+ /**
1175+ * @param prev the previous LexicalUnit
1176+ * @param d the double value
1177+ * @return lexical unit with type svmin
1178+ */
1179+ public static LexicalUnit createSvMin (final LexicalUnit prev , final double d ) {
1180+ return new LexicalUnitImpl (prev , LexicalUnitType .SVMIN , d );
1181+ }
1182+
1183+ /**
1184+ * @param prev the previous LexicalUnit
1185+ * @param d the double value
1186+ * @return lexical unit with type svmax
1187+ */
1188+ public static LexicalUnit createSvMax (final LexicalUnit prev , final double d ) {
1189+ return new LexicalUnitImpl (prev , LexicalUnitType .SVMAX , d );
1190+ }
1191+
9761192 /**
9771193 * @param prev the previous LexicalUnit
9781194 * @param d the double value
0 commit comments