Re: [csswg-drafts] [css-color] Be more explicit that color names are *ASCII* case-insensitive (#4599)

@svgeesus Having ASCII-only names is not enough because ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt has mappings from non-ASCII to ASCII characters. As I pointed out in the description, `U+017F LATIN SMALL LETTER LONG S` is mapped to `LATIN SMALL LETTER S U+0073` when doing Unicode case-insensitive comparison. Which means that "ſilver" would be treated as "silver" if CSS doesn't restrict to ASCII case insensitive. 

FYI I recently fixed a similar bug in Chromium where e.g. `<link rel="ſtylesheet">` was accepted contrary to what the HTML5 spec says and what Gecko & WebKit implement. You can still check that inconsistency with release builds. 

-- 
GitHub Notification of comment by fred-wang
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4599#issuecomment-565657647 using your GitHub account

Received on Saturday, 14 December 2019 00:17:01 UTC