mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-30 22:26:20 +03:00
Unspecified input types are text and so get EX widths
This commit is contained in:
parent
dfaa29d5b8
commit
efd6d11e47
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user