mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-04-01 03:42:57 +03:00
Fix form input size attribute handling to be case insensitive. Fixes form input widths.
This commit is contained in:
parent
8bf3346ce2
commit
d7e3ca2230
11
css/select.c
11
css/select.c
@ -2516,20 +2516,17 @@ node_presentational_hint_width(nscss_select_ctx *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((width == NULL) ||
|
if ((width == NULL) ||
|
||||||
dom_string_lwc_isequal(width,
|
dom_string_caseless_lwc_isequal(width,
|
||||||
corestring_lwc_text) ||
|
corestring_lwc_text) ||
|
||||||
dom_string_lwc_isequal(width,
|
dom_string_caseless_lwc_isequal(width,
|
||||||
corestring_lwc_search) ||
|
corestring_lwc_search) ||
|
||||||
dom_string_lwc_isequal(width,
|
dom_string_caseless_lwc_isequal(width,
|
||||||
corestring_lwc_file) ||
|
corestring_lwc_file) ||
|
||||||
dom_string_lwc_isequal(width,
|
dom_string_caseless_lwc_isequal(width,
|
||||||
corestring_lwc_password)) {
|
corestring_lwc_password)) {
|
||||||
hint->data.length.unit = CSS_UNIT_EX;
|
hint->data.length.unit = CSS_UNIT_EX;
|
||||||
|
|
||||||
}
|
}
|
||||||
dom_string_unref(width);
|
dom_string_unref(width);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user