- From: Ian Hickson <py8ieh@bath.ac.uk>
- Date: Sat, 22 Jan 2000 18:35:21 +0000 (GMT)
- To: Sjoerd Visscher <sjoerd@heeten.nl>
- cc: www-style <www-style@w3.org>
On Sat, 22 Jan 2000, Sjoerd Visscher wrote: >> A /attribute/ B >> Is anyone violently disgusted by this combinator proposal? > At least there shouldn't be a space between A and /attribute/ Why? This is a _combinator_, like "+" and ">", and whitespace is allowed around combinators: A B A + B A > B A ~ B A /attr/ B > A /attribute/ B > means an element B with an ancestor that (1) is pointed to by *any* > element and (2) has an ancestor A You are treating it as a selector, which it isn't. It is a combinator. ====== > (I'll note again that my proposal, ::pseudo-element and :: as > 'self', is much shorter: > A/href/[title]:: { color: green; } Oops. Forgot about that suggestion. Sorry. :-) (Actually, using your syntax that selector should be: A::/href/[title] ...or (with whitespace to make it clearer): A:: /href/ [title] I have to say, though, that it is not IMHO as readable as: A:matches(/href/ [title]) ...but that is just a personal opinion...) > ) -- Ian Hickson ("`-''-/").___..--''"`-._ http://www.bath.ac.uk/%7Epy8ieh/ `6_ 6 ) `-. ( ).`-.__.`) (_Y_.)' ._ ) `._ `. ``-..-' fL Member, Mozilla Quality Assurance _..`--'_..-_/ /--'_.' ,' Browser Standards Compliance Team (il).-'' (li).' ((!.-'
Received on Saturday, 22 January 2000 13:35:25 UTC