- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Thu, 08 May 2008 20:55:08 -0700
- To: Alan Gresley <alan@css-class.com>
- CC: Francois Remy <fremycompany_pub@yahoo.fr>, www-style <www-style@w3.org>
Alan Gresley wrote:
> Andrew Fedoniouk wrote:
> [...]
>> <style>
>> [for]
>> {
>> when-hover-on: $1(#< self.for >).highlight = true;
>> when-hover-off: $1(#< self.for >).highlight = null;
>> when-active-on: $1(#< self.for >).set-focus();
>> cursor:pointer;
>> }
>> input[highlight]
>> {
>> outline: 4px glow blue 1px;
>> }
>> </style>
>
>
> Some of that can be done with CSS2 selectors. There has be plenty of
> recent discussion on this list about selectors (for transition states)
> like :initial and :alternative without introducing any other language.
>
> That above looks like some hybrid CSS and scripting language.
>
>
> Alan
>
"Some" of what can be done exactly? Could you provide an example of how
you would do such binding (<label for="id">) with use of selectors?
Existing or any hypothetical ones - it does not matter.
This particular behavior (<label for="id">) is so basic that it has to
be perfectly safe and always available. With JS or without it.
--
Andrew Fedoniouk.
http://terrainformatica.com
Received on Friday, 9 May 2008 03:55:50 UTC