Fix #3584934. Case insensitive matching of align attribute value.

This commit is contained in:
Michael Drake 2013-01-02 14:06:02 +00:00
parent 8bf3346ce2
commit 700429897a
1 changed files with 4 additions and 2 deletions

View File

@ -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;