- From: Christoph Päper <christoph.paeper@crissov.de>
- Date: Mon, 25 Jul 2011 19:46:49 +0200
- To: CSS WG <www-style@w3.org>
fantasai: > http://dev.w3.org/csswg/selectors4/#attribute-case [att=val]i {foo: bar} I’d suggest to phrase it in a more general, extendable way, if this is indeed the way you want to go. (In my humble opinion this looks too much like grep and too little like CSS, although I would agree, that the character combinations I proposed earlier look just as scary.) : 6.3 Attribute value selector flags : : To match attribute values regardless of document language rules, : the attribute selector may be immediately followed by a sequence : of single-character, case-insensitive identifiers (“flags”). Later : flags are ignored if they are incompatible with earlier flags, : otherwise the order of identifiers is irrelevant : : This module specifies the following flags: : : ‘i’: When this flag is present, UAs must match the attribute's : value case-insensitively within the ASCII range. … : ‘s’: When this flag is present, UAs must match the attribute's : value case-sensitively. : ‘n’: When this flag is present, UAs must treat the attribute's : value as a decimal number. This flag cannot be used with : the substring comparisons ‘^=’, ‘$=’, ‘*=’, ‘|=’. It may : be used with the item comparison ‘~=’. Further numerical : comparisons may be defined in the future. : ‘b’: When this flag is present, UAs must treat the attribute's : value as a binary state. … …
Received on Monday, 25 July 2011 17:47:19 UTC