public class CustomPropertyDeclaration extends Object
--, e.g. --main-color: red). Custom properties are not
keyed by a CSSName (the name is
author-defined), so they are not regular PropertyDeclarations and
are kept in a parallel cascade.
The value is stored as raw text (which may itself contain var()
references) and is resolved per element at computed-value time.
| Constructor and Description |
|---|
CustomPropertyDeclaration(String name,
String valueText,
boolean important,
int origin) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFingerprint() |
int |
getImportanceAndOrigin() |
String |
getName()
The custom property name, including the leading
--. |
int |
getOrigin() |
String |
getValueText()
The raw (unsubstituted) value text; may contain
var() references. |
boolean |
isImportant() |
String |
toString() |
public String getName()
--.public String getValueText()
var() references.public boolean isImportant()
public int getOrigin()
public int getImportanceAndOrigin()
public String getFingerprint()
Copyright © 2004–2026. All rights reserved.