java.lang.Object
org.jhotdraw8.css.function.AbstractCssFunction<T>
org.jhotdraw8.css.function.VarCssFunction<T>
- Type Parameters:
T- the element type of the DOM
- All Implemented Interfaces:
CssFunction<T>
Processes the var() function.
var = "var(" , s* , custom-property-name, s* , [ "," , s* , declaration-value ] , s* , ")" ;
custom-property-name = ident-token;
declaration-value = fallback-value;
The custom-property-name must start with two dashes "--".
References:
- CSS Custom Properties for Cascading Variables Module Level 2. Paragraph 3. Using Cascading Variables: the var() notation
- csswg.org
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets localized help text about this function.voidprocess(T element, CssTokenizer tt, SelectorModel<T> model, CssFunctionProcessor<T> functionProcessor, Consumer<CssToken> out, Deque<CssFunction<T>> recursionStack) Processes the function.Methods inherited from class org.jhotdraw8.css.function.AbstractCssFunction
getName
-
Field Details
-
NAME
Function name.- See Also:
-
-
Constructor Details
-
VarCssFunction
public VarCssFunction() -
VarCssFunction
-
-
Method Details
-
process
public void process(T element, CssTokenizer tt, SelectorModel<T> model, CssFunctionProcessor<T> functionProcessor, Consumer<CssToken> out, Deque<CssFunction<T>> recursionStack) throws IOException, ParseException Description copied from interface:CssFunctionProcesses the function.- Parameters:
element- the DOM elementtt- the tokenizer providing the unprocessed tokensmodel- the selector modelfunctionProcessor- the function processorout- the consumer for the processed tokensrecursionStack- the recursion stack- Throws:
IOException- on IO failureParseException- on parsing failure
-
getHelpText
Description copied from interface:CssFunctionGets localized help text about this function.- Returns:
- localized help text
-