File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
main/java/com/gargoylesoftware/css/dom
test/java/com/gargoylesoftware/css Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ public enum CSSPrimitiveValueType {
6868 /** CSS_EXS. */
6969 CSS_EXS ,
7070
71+ /** CSS_REM. */
72+ CSS_REM ,
73+
7174 /** CSS_CH. */
7275 CSS_CH ,
7376
@@ -310,7 +313,7 @@ public CSSPrimitiveValueType getPrimitiveType() {
310313 case EM :
311314 return CSSPrimitiveValueType .CSS_EMS ;
312315 case REM :
313- return CSSPrimitiveValueType .CSS_UNKNOWN ;
316+ return CSSPrimitiveValueType .CSS_REM ;
314317 case EX :
315318 return CSSPrimitiveValueType .CSS_EXS ;
316319 case CH :
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ public void rem() throws Exception {
534534 final CSSValueImpl value = new CSSValueImpl (lu , false );
535535
536536 Assert .assertEquals ("1.2rem" , value .getCssText ());
537- Assert .assertEquals (CSSPrimitiveValueType .CSS_UNKNOWN , value .getPrimitiveType ());
537+ Assert .assertEquals (CSSPrimitiveValueType .CSS_REM , value .getPrimitiveType ());
538538 Assert .assertEquals (LexicalUnit .LexicalUnitType .REM , value .getLexicalUnitType ());
539539 Assert .assertEquals (1.2 , value .getDoubleValue (), 0.00001 );
540540 try {
Original file line number Diff line number Diff line change @@ -2343,7 +2343,7 @@ public void dimensionEMS() throws Exception {
23432343 @ Test
23442344 public void dimensionREM () throws Exception {
23452345 final CSSValueImpl value = dimension ("17rem" );
2346- Assert .assertEquals (CSSPrimitiveValueType .CSS_UNKNOWN , value .getPrimitiveType ());
2346+ Assert .assertEquals (CSSPrimitiveValueType .CSS_REM , value .getPrimitiveType ());
23472347 }
23482348
23492349 /**
You can’t perform that action at this time.
0 commit comments