@@ -1464,7 +1464,9 @@ else if ("print".equalsIgnoreCase(mediaType)) {
14641464 private static double pixelValue (final CSSValueImpl cssValue , final WebWindow webWindow ) {
14651465 if (cssValue == null ) {
14661466 LOG .warn ("CSSValue is null but has to be a 'px', 'em', '%', 'ex', 'ch', "
1467- + "'vw', 'vh', 'vmin', 'vmax', 'rem', 'mm', 'cm', 'Q', or 'pt' value." );
1467+ + "'vw', 'vh', 'vmin', 'vmax', 'dvw', 'dvh', 'dvmin', 'dvmax', "
1468+ + "'lvw', 'lvh', 'lvmin', 'lvmax', 'svw', 'svh', 'svmin', 'svmax', "
1469+ + "'rem', 'mm', 'cm', 'Q', or 'pt' value." );
14681470 return -1 ;
14691471 }
14701472
@@ -1499,6 +1501,42 @@ private static double pixelValue(final CSSValueImpl cssValue, final WebWindow we
14991501 case VMAX :
15001502 // hard coded default for the moment 16px = 100%
15011503 return 0.16f * cssValue .getDoubleValue ();
1504+ case DVW :
1505+ // hard coded default for the moment 16px = 100%
1506+ return 0.16f * cssValue .getDoubleValue ();
1507+ case DVH :
1508+ // hard coded default for the moment 16px = 100%
1509+ return 0.16f * cssValue .getDoubleValue ();
1510+ case DVMIN :
1511+ // hard coded default for the moment 16px = 100%
1512+ return 0.16f * cssValue .getDoubleValue ();
1513+ case DVMAX :
1514+ // hard coded default for the moment 16px = 100%
1515+ return 0.16f * cssValue .getDoubleValue ();
1516+ case LVW :
1517+ // hard coded default for the moment 16px = 100%
1518+ return 0.16f * cssValue .getDoubleValue ();
1519+ case LVH :
1520+ // hard coded default for the moment 16px = 100%
1521+ return 0.16f * cssValue .getDoubleValue ();
1522+ case LVMIN :
1523+ // hard coded default for the moment 16px = 100%
1524+ return 0.16f * cssValue .getDoubleValue ();
1525+ case LVMAX :
1526+ // hard coded default for the moment 16px = 100%
1527+ return 0.16f * cssValue .getDoubleValue ();
1528+ case SVW :
1529+ // hard coded default for the moment 16px = 100%
1530+ return 0.16f * cssValue .getDoubleValue ();
1531+ case SVH :
1532+ // hard coded default for the moment 16px = 100%
1533+ return 0.16f * cssValue .getDoubleValue ();
1534+ case SVMIN :
1535+ // hard coded default for the moment 16px = 100%
1536+ return 0.16f * cssValue .getDoubleValue ();
1537+ case SVMAX :
1538+ // hard coded default for the moment 16px = 100%
1539+ return 0.16f * cssValue .getDoubleValue ();
15021540 case REM :
15031541 // hard coded default for the moment 16px = 100%
15041542 return 0.16f * cssValue .getDoubleValue ();
@@ -1522,7 +1560,9 @@ private static double pixelValue(final CSSValueImpl cssValue, final WebWindow we
15221560 if (LOG .isWarnEnabled ()) {
15231561 LOG .warn ("CSSValue '" + cssValue .getCssText ()
15241562 + "' has to be a 'px', 'em', '%', 'ex', 'ch', "
1525- + "'vw', 'vh', 'vmin', 'vmax', 'rem', 'mm', 'cm', 'Q', or 'pt' value." );
1563+ + "'vw', 'vh', 'vmin', 'vmax', 'dvw', 'dvh', 'dvmin', 'dvmax', "
1564+ + "'lvw', 'lvh', 'lvmin', 'lvmax', 'svw', 'svh', 'svmin', 'svmax', "
1565+ + "'rem', 'mm', 'cm', 'Q', or 'pt' value." );
15261566 }
15271567 return -1 ;
15281568 }
0 commit comments