diff --git a/css/select.c b/css/select.c index b745a2f73..5ad0edcff 100644 --- a/css/select.c +++ b/css/select.c @@ -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)) {