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 {
68
68
/** CSS_EXS. */
69
69
CSS_EXS ,
70
70
71
+ /** CSS_REM. */
72
+ CSS_REM ,
73
+
71
74
/** CSS_CH. */
72
75
CSS_CH ,
73
76
@@ -310,7 +313,7 @@ public CSSPrimitiveValueType getPrimitiveType() {
310
313
case EM :
311
314
return CSSPrimitiveValueType .CSS_EMS ;
312
315
case REM :
313
- return CSSPrimitiveValueType .CSS_UNKNOWN ;
316
+ return CSSPrimitiveValueType .CSS_REM ;
314
317
case EX :
315
318
return CSSPrimitiveValueType .CSS_EXS ;
316
319
case CH :
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ public void rem() throws Exception {
534
534
final CSSValueImpl value = new CSSValueImpl (lu , false );
535
535
536
536
Assert .assertEquals ("1.2rem" , value .getCssText ());
537
- Assert .assertEquals (CSSPrimitiveValueType .CSS_UNKNOWN , value .getPrimitiveType ());
537
+ Assert .assertEquals (CSSPrimitiveValueType .CSS_REM , value .getPrimitiveType ());
538
538
Assert .assertEquals (LexicalUnit .LexicalUnitType .REM , value .getLexicalUnitType ());
539
539
Assert .assertEquals (1.2 , value .getDoubleValue (), 0.00001 );
540
540
try {
Original file line number Diff line number Diff line change @@ -2343,7 +2343,7 @@ public void dimensionEMS() throws Exception {
2343
2343
@ Test
2344
2344
public void dimensionREM () throws Exception {
2345
2345
final CSSValueImpl value = dimension ("17rem" );
2346
- Assert .assertEquals (CSSPrimitiveValueType .CSS_UNKNOWN , value .getPrimitiveType ());
2346
+ Assert .assertEquals (CSSPrimitiveValueType .CSS_REM , value .getPrimitiveType ());
2347
2347
}
2348
2348
2349
2349
/**
You can’t perform that action at this time.
0 commit comments