BackgroundSize extends AbstractCssProperty<BackgroundSize> { public void setAsInitial() { setCssValue(INITIAL); } BackgroundSize();  BackgroundSize(final String cssValue);  BackgroundSize(final BackgroundSize backgroundSize);  BackgroundSize(final float widthHeight,
            final CssLengthUnit cssLengthUnit);  BackgroundSize(final float width,
            final CssLengthUnit widthLengthUnit, final float height,
            final CssLengthUnit heightLengthUnit); BackgroundSize setValue(final float width,
            final CssLengthUnit widthLengthUnit, final float height,
            final CssLengthUnit heightLengthUnit); BackgroundSize setValue(final float widthHeight,
            final CssLengthUnit cssLengthUnit); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getWidth(); Float getHeight(); CssLengthUnit getWidthUnit(); CssLengthUnit getHeightUnit(); @Override BackgroundSize setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; static final String AUTO; static final String COVER; static final String CONTAIN; }
@Test public void testSetAsInitial() { BackgroundSize backgroundSize = new BackgroundSize(); assertNotNull(backgroundSize.getWidth()); assertNotNull(backgroundSize.getHeight()); assertNotNull(backgroundSize.getWidthUnit()); assertNotNull(backgroundSize.getHeightUnit()); backgroundSize.setAsInitial(); assertEquals(BackgroundSize.INITIAL, backgroundSize.getCssValue()); assertNull(backgroundSize.getWidth()); assertNull(backgroundSize.getHeight()); assertNull(backgroundSize.getWidthUnit()); assertNull(backgroundSize.getHeightUnit()); }