Class AttrUtil

java.lang.Object
io.sf.carte.doc.style.css.impl.AttrUtil

public class AttrUtil extends Object
Utility methods related to attribute values.
  • Constructor Details

    • AttrUtil

      public AttrUtil()
  • Method Details

    • isProxyAttr

      public static boolean isProxyAttr(LexicalUnit lunit)
      Determine whether the final type of an attr() could be only one, by comparing the attribute type to the fallback value, if any.
      Parameters:
      lunit - the attr() value.
      Returns:
      true if the final value type cannot be determined now.
    • finalAttrType

      public static CSSValue.Type finalAttrType(LexicalUnit lunit)
      Determine the CSSOM type of the given attr() lexical unit.
      Parameters:
      lunit - the lexical unit to test.
      Returns:
      the CSSOM type.