w3c.css.properties.css3.CssBorderBottomLeftRadius Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cssvalidator Show documentation
Show all versions of cssvalidator Show documentation
Backend for the W3C CSS Validation Service
// $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 http://www.w3.org/TR/2012/CR-css3-background-20120417/#border-bottom-left-radius
* @see CssBorderRadius
*/
public class CssBorderBottomLeftRadius extends org.w3c.css.properties.css.CssBorderBottomLeftRadius {
/**
* Create new CssBorderBottomLeftRadius
*/
public CssBorderBottomLeftRadius() {
value = initial;
}
/**
* Create new CssBorderBottomLeftRadius
*
* @param expression The expression for this property
* @throws InvalidParamException Values are incorrect
*/
public CssBorderBottomLeftRadius(ApplContext ac, CssExpression expression,
boolean check) throws InvalidParamException {
setByUser();
value = CssBorderRadius.checkBorderCornerRadius(ac, this, expression, check);
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;
}
}
public CssBorderBottomLeftRadius(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy