No framework supports it because it's not possible without it being a 
hack. You can't select a :hover state because it's not a node. And .css 
is not meant to be used in that way either. .css works on a style tag, 
or queries for computed styles. It has absolutely nothing to do with 
modifying css rules which is what is required for :hover

~Daniel Friesen (Dantman, Nadir-Seen-Fire)

Alexandre Plennevaux wrote:
> ok submitted http://dev.jquery.com/ticket/4434  it's in the hands of
> the jquery team to decide now.
>
> thanks to you all for an interesting investigation !
>
> On Fri, Mar 27, 2009 at 10:16 AM, Gilles <gil...@netxtra.net> wrote:
>   
>> Catching up the CSS on :hover would sure be interesting to see and
>> quite unique as I believe most javascript framework out there do not
>> support it.You could do some interesting thing with it I guess, use
>> the CSS property of hover to set the skin of some javascript button/
>> widget, so you end up just editing CSS to have a nice jquery effect
>> and basic styling if javascript off.
>>
>> I'll be suprise if the team didn't think about it yet tho, as it is
>> often highlited as what javascript selector engine can't get.
>>
>> On Mar 27, 7:49 am, Alexandre Plennevaux <aplennev...@gmail.com>
>> wrote:
>>     
>>> do you guys think i should suggest that it be included in the jquery
>>> core, allowing to do
>>>
>>> var myColor = $('a:hover').css('background-color');
>>>
>>> ?
>>> i have no idea about the cost/benefit ratio, i just think that it
>>> "feels" right to store styling in the stylesheet rather than in
>>> metadata quirks.
>>>
>>> On Fri, Mar 27, 2009 at 2:14 AM, Danny <d.wac...@prodigy.net> wrote:
>>>
>>>       
>>>> I honestly have never profiled it, so I don't know. It does not
>>>> involve any AJAX or other additional http access. It does n regular
>>>> expression comparisions, where n is the number of CSS rules in all
>>>> your stylesheets.
>>>>         
>>>> On Mar 26, 7:05 pm, Alexandre Plennevaux <aplennev...@gmail.com>
>>>> wrote:
>>>>         
>>>>> ok, so if i understand this correctly, this method does not bring in a
>>>>> heavy overhead?
>>>>>           
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to