OBackgroundSize extends AbstractCssProperty<OBackgroundSize> { public void setAsInherit() { setCssValue(INHERIT); } OBackgroundSize();  OBackgroundSize(final String cssValue);  OBackgroundSize(final OBackgroundSize backgroundSize);  OBackgroundSize(final float horizontalHeight,
            final CssLengthUnit cssLengthUnit);  OBackgroundSize(final float width,
            final CssLengthUnit widthCssLengthUnit, final float height,
            final CssLengthUnit heightCssLengthUnit); OBackgroundSize setValue(final float width,
            final CssLengthUnit widthCssLengthUnit, final float height,
            final CssLengthUnit heightCssLengthUnit); OBackgroundSize 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 OBackgroundSize 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 testSetAsInherit() { OBackgroundSize backgroundSize = new OBackgroundSize(); assertNotNull(backgroundSize.getWidth()); assertNotNull(backgroundSize.getHeight()); assertNotNull(backgroundSize.getWidthUnit()); assertNotNull(backgroundSize.getHeightUnit()); backgroundSize.setAsInherit(); assertEquals(OBackgroundSize.INHERIT, backgroundSize.getCssValue()); assertNull(backgroundSize.getWidth()); assertNull(backgroundSize.getHeight()); assertNull(backgroundSize.getWidthUnit()); assertNull(backgroundSize.getHeightUnit()); }