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
This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:02 UTC