Class AttrCssFunction<T>

java.lang.Object
org.jhotdraw8.css.function.AbstractCssFunction<T>
org.jhotdraw8.css.function.AttrCssFunction<T>
Type Parameters:
T - the element type of the DOM
All Implemented Interfaces:
CssFunction<T>

public class AttrCssFunction<T> extends AbstractCssFunction<T>
Processes the attr() function.
     attr = "attr(" ,  s* , attr-name, s* , [ type-or-unit ] ,  s* , [ "," ,  s* , attr-fallback ] ,  s* , ")" ;
     attr-name = qualified-name;
     type-or-unit = "string" | "color" | "url" | "integer" | "number"
                   | "%" ( "length" | "angle" | "time" | "frequency" )
                   ;
     attr-fallback = ident-token;

     qualified-name = [ [ ident-token ], "|" ] , ident-token ;
 
If attr-fallback is not given, then ident "none" is assumed.

References:

CSS Values and Units Module Level 5. Paragraph 5.4. Attribute References: the attr() function
csswg.org
  • Field Details

  • Constructor Details

    • AttrCssFunction

      public AttrCssFunction()
      Creates a new instance with the function name "attr"<T>.
    • AttrCssFunction

      public AttrCssFunction(String name)
      Creates a new instance with the specified function name.
      Parameters:
      name - the name of the function
  • Method Details