[webkit-dev] how about nav-up, nav-right, nav-down, nav-left in CSS3-ui ?

Ra Kyounga kyounga.ra at gmail.com
Thu Aug 11 07:09:42 PDT 2011

Hi, CSS developers, 

1]I need correct the wrong information of previous email 

2] Opera support these properties.

And, I need your help. 
I think I have to modify cssgrammar.y
I'm not familiar with lex&yacc syntanx.

Let me explain it. 
According to the standard, the syntax is "nav-up:#<id attribute value>"
I just added new property name to CSSPropertyNames.in and checked if it works using CSSParser::parseValue(). 

It doesn't work as I expected.
Expected : string type, string value. 
Real : HexColor type(for example nav-up:#b1) or not parsed(nave-up:#foo)

In my guess, the css parser assumes that a css value (which starts with "#" ) should be a color value.
What should I do for my expected result?

Thank you in advance.

2011. 8. 11., 오전 10:55, Ra Kyounga 작성:

> Thank you for your reply.
> I just filed this bug. 
> https://bugs.webkit.org/show_bug.cgi?id=66207
> and I'll create patch as soon as I can.
> kyounga.
> 2011. 8. 11., 오전 4:41, Antonio Gomes 작성:
>> It sounds like a interesting idea.  Some questions:
>> - Is there any other vendor implementing it?
> [kyounga] I'm wondering too.
>> - How is it better than a good Spatial Navigation implementation (like webkit's or opera's)? I see that it makes it possible to limit which elements in the page are actually css-directionally-focusable...
> [kyounga] I think these property is new feature in addition to a "spatial navigation" which browsers provide by default.
> If <a> element with "nav-up:auto" has focused and the user press "up arrow key", the browser use a spatial navigation, or if there is "nav-up:#foo", the browser send a focus the element with "id=foo" attribute. 
>> On Tue, Aug 9, 2011 at 9:18 PM, Ra Kyounga <kyounga.ra at gmail.com> wrote:
>> Hi, CSS developers.
>> I'm wondering if anyone is trying to implement new css properties for directional focus navgation. (nav-up, nav-right, nav-down, nav-left)
>> They are defined in CSS3-ui module.
>> http://www.w3.org/TR/css3-ui/#nav-dir
>> Although, CSS3-UI standards has not been updated for long time,
>> if there is no one to be addressed, I'd like to start to implement this feature.
>> I think we can re-use the function for a fragment link.
>> How about my idea?
>> or Is it better just to start implementation through bugs.webkit.org than e-mail communication?
>> Well, you should file a bug anyways, imo :).
>> -- 
>> --Antonio Gomes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110811/f41ac051/attachment.html>

More information about the webkit-dev mailing list