resolveBorderWidth static method
Implementation
static CSSLengthValue? resolveBorderWidth(String input, RenderStyle renderStyle, String propertyName) {
// https://drafts.csswg.org/css2/#border-width-properties
// The interpretation of the first three values depends on the user agent.
// The following relationships must hold, however:
// thin ≤ medium ≤ thick.
CSSLengthValue? borderWidth;
switch (input) {
case THIN:
borderWidth = _thinWidth;
break;
case MEDIUM:
borderWidth = _mediumWidth;
break;
case THICK:
borderWidth = _thickWidth;
break;
default:
borderWidth = CSSLength.parseLength(input, renderStyle, propertyName);
}
return borderWidth;
}