public final class ValueConstants extends Object
CSSValue instances.| Constructor and Description |
|---|
ValueConstants() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAbsoluteUnit(short type)
Returns true if the specified type absolute (even if we have a computed
value for it), meaning that either the value can be used directly (e.g.
|
static boolean |
isNumber(short cssPrimitiveType)
Deprecated.
Only used by the broken DOMInspector.
|
static String |
stringForSACPrimitiveType(short type)
Given a unit constant like
CSSPrimitiveValue.CSS_EMS
will return the unit suffix like em. |
public static String stringForSACPrimitiveType(short type)
CSSPrimitiveValue.CSS_EMS
will return the unit suffix like em.
FIXME: Not exhaustive.public static boolean isAbsoluteUnit(short type)
type - The CSSValue type to check.@Deprecated public static boolean isNumber(short cssPrimitiveType)
Copyright © 2004–2025. All rights reserved.