Interface CSSRatioValue

All Superinterfaces:
Cloneable, CSSPrimitiveValue, CSSPrimitiveValue2, CSSValue, ExtendedCSSPrimitiveValue, ExtendedCSSValue
All Known Implementing Classes:
RatioValue

public interface CSSRatioValue extends ExtendedCSSPrimitiveValue
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

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

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

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