Unspecified input types are text and so get EX widths

This commit is contained in:
Daniel Silverstone 2012-11-04 17:26:42 +00:00
parent dfaa29d5b8
commit efd6d11e47
1 changed files with 3 additions and 2 deletions

View File

@ -2511,11 +2511,12 @@ node_presentational_hint_width(nscss_select_ctx *ctx,
if (input) {
err = dom_element_get_attribute(node,
corestring_dom_type, &width);
if ((err != DOM_NO_ERR) || (width == NULL)) {
if (err != DOM_NO_ERR) {
return CSS_PROPERTY_NOT_SET;
}
if (dom_string_lwc_isequal(width,
if ((width == NULL) ||
dom_string_lwc_isequal(width,
corestring_lwc_text) ||
dom_string_lwc_isequal(width,
corestring_lwc_password)) {