Interface CSSRatioValue

All Superinterfaces:
Cloneable, CSSPrimitiveValue, CSSTypedValue, CSSValue
All Known Implementing Classes:
RatioValue

public interface CSSRatioValue extends CSSTypedValue
The ratio value type is a number followed by optional whitespace, followed by a solidus ('/'), followed by optional whitespace, followed by a number. (as defined by Media Queries level 4)
  • Method Details

    • getAntecedentValue

      CSSPrimitiveValue getAntecedentValue()
      Get the antecedent value (i.e. the 'a' in 'a/b').
      Returns:
      the antecedent value.
    • getConsequentValue

      CSSPrimitiveValue getConsequentValue()
      Get the consequent value (i.e. the 'b' in 'a/b').
      Returns:
      the consequent value.
    • clone

      CSSRatioValue clone()
      Description copied from interface: CSSValue
      Creates and returns a copy of this value.
      Specified by:
      clone in interface CSSValue
      Returns:
      a clone of this value.