Interface MediaFeature

All Superinterfaces:
BooleanCondition, MediaFeaturePredicate, MediaQueryPredicate

public interface MediaFeature extends MediaFeaturePredicate
Media Feature.

Represents a predicate like (min-width: 600px) or (400px <= width < 1000px).

  • Method Details

    • getValue

      CSSTypedValue getValue()
      Get the value to be tested on the feature. If the predicate involves two values, this is the first value.
      the value to be tested on the feature.
    • getRangeSecondValue

      CSSTypedValue getRangeSecondValue()
      If this is a range feature test involving two values, get the second value.
      the second value in this range test, or null if this is not a range feature or the range only involves one value.