- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 21 Jan 2016 22:06:39 -0800
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: www-style list <www-style@w3.org>
On Thu, Jan 21, 2016 at 8:34 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> We now have at least two implementations of
> https://drafts.csswg.org/selectors-4/#attribute-case shipping in release
> browsers: Safari and Chrome. Sadly, they are not actually interoperable
> with each other. Simple testcase:
>
> <!doctype html>
> <style type='text/css'>
> [foo="bar" I] { color: purple; }
> </style>
> <div foo="BAR">I am purple in Safari but not Chrome</div>
>
> The spec says "the attribute selector may include the identifier i before
> the closing bracket" but doesn't make it clear what the case handling is.
> Given the case-insensitivity of CSS in general, clearly WebKit decided to
> also accept "I", whereas Blink read this more literally.
>
> The spec could use better wording or a more exhaustive example, or
> _something_, since clearly what's there right now is not enough to produce
> interoperable implementations.
The spec is quite clear on the matter:
<https://drafts.csswg.org/selectors-4/#case-sensitive> states plainly
that all of Selector syntax is case-insensitive except for the few
exceptions called out in that section.
This is just a silly bug on Blink's part.
~TJ
Received on Friday, 22 January 2016 06:07:27 UTC