W3C home > Mailing lists > Public > www-svg@w3.org > July 2008

Re: proposed element() CSS function

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 15 Jul 2008 20:08:25 +1200
Message-ID: <11e306600807150108o4026a4bep95839e0719f71d62@mail.gmail.com>
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "www-style@w3.org" <www-style@w3.org>, www-svg <www-svg@w3.org>
On Tue, Jul 15, 2008 at 6:55 PM, Andrew Fedoniouk <news@terrainformatica.com>
wrote:

> I use selector() function in cases when one element needs reference to
> another. For example:
>
> input[type="scrollbar"]
> {
>  -context-menu: selector( menu#for-scrollbar );
> }
>
> Needless to say that selectors give you
> various addressing schemas:
>
> button[type="popup-menu"]
> {
>  -menu: selector( head > menu:nth-child(2) );
> }
>

That's a nice extension of referencing elements by ID but it doesn't
guarantee you get a unique element (I guess you can choose the first match
though) and it doesn't address the cross-document requirements which are
really the big issue.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 15 July 2008 08:09:04 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT