Fix #3584934. Case insensitive matching of align attribute value.
This commit is contained in:
parent
8bf3346ce2
commit
700429897a
|
@ -2669,11 +2669,13 @@ node_presentational_hint_float(nscss_select_ctx *ctx,
|
|||
return CSS_PROPERTY_NOT_SET;
|
||||
}
|
||||
|
||||
if (dom_string_lwc_isequal(align, corestring_lwc_left)) {
|
||||
if (dom_string_caseless_lwc_isequal(align,
|
||||
corestring_lwc_left)) {
|
||||
hint->status = CSS_FLOAT_LEFT;
|
||||
dom_string_unref(align);
|
||||
return CSS_OK;
|
||||
} else if (dom_string_lwc_isequal(align, corestring_lwc_right)) {
|
||||
} else if (dom_string_caseless_lwc_isequal(align,
|
||||
corestring_lwc_right)) {
|
||||
hint->status = CSS_FLOAT_RIGHT;
|
||||
dom_string_unref(align);
|
||||
return CSS_OK;
|
||||
|
|
Loading…
Reference in New Issue