// $Id$ // // (c) COPYRIGHT 1995-2012 World Wide Web Consortium (MIT, ERCIM, Keio University) // Please first read the full copyright statement at // http://www.w3.org/Consortium/Legal/copyright-software-19980720 package org.w3c.css.properties.css3; import org.w3c.css.util.ApplContext; import org.w3c.css.util.InvalidParamException; import org.w3c.css.values.CssExpression; import org.w3c.css.values.CssTypes; import org.w3c.css.values.CssValueList; /** * @spec https://www.w3.org/TR/2021/CRD-css-backgrounds-3-20210726/#propdef-border-bottom-right-radius * @see CssBorderRadius */ public class CssBorderBottomRightRadius extends org.w3c.css.properties.css.CssBorderBottomRightRadius { /** * Create new CssBorderBottomRightRadius */ public CssBorderBottomRightRadius() { value = initial; } /** * Create new CssBorderBottomRightRadius * * @param expression The expression for this property * @throws InvalidParamException Values are incorrect */ public CssBorderBottomRightRadius(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { setByUser(); value = CssBorderRadius.parseBorderCornerRadius(ac, expression, check, this); if (value.getType() == CssTypes.CSS_VALUE_LIST) { CssValueList vl = (CssValueList) value; h_radius = vl.get(0); v_radius = vl.get(1); } else { h_radius = v_radius = value; } } }