W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: Cross Referencing Between Elements

From: Bobby Mozumder <mozumder@futureclaw.com>
Date: Sat, 14 Jun 2014 11:40:53 -0400
Cc: Marat Tanalin <mtanalin@yandex.ru>, Brian Blakely <anewpage.media@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <594741F4-82F1-497F-ACFF-803A1DA24967@futureclaw.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Not sure how Iíd reference the state of another element with this right-hand spec proposal.  Iíve had several times where i needed at least simple cross references to just things like :hover.

For example, change the color of an element based on if some other element in the DOM tree has :hover on it, or :active.  I donít see how a selector on the right-hand side can select that state. (maybe store the state in the source element as a variable?)

CSS does need a stateful representational model that perhaps includes time-domain considerations and variable storageÖ this could get rid of a lot of Javascript usage.

Bobby Mozumder
FutureClaw Magazine

On Jun 12, 2014, at 1:04 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 6/12/14, 12:59 PM, Marat Tanalin wrote:
>> I meant effective pixel value of course
> This is even more of a performance problem.  Even just allowing IDs means you can get cycles that are completely non-obvious and can't be tracked via just the id references.
> -Boris
Received on Saturday, 14 June 2014 15:41:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC