Changeset 75039 in webkit


Ignore:
Timestamp:
Jan 4, 2011 6:21:00 PM (13 years ago)
Author:
yael.aharon@nokia.com
Message:

2011-01-04 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Darin Adler.

CSS3 :nth-child selector and valid whitespace test fails
https://bugs.webkit.org/show_bug.cgi?id=36279

  • fast/css/css3-nth-space-expected.txt: Added.
  • fast/css/css3-nth-space.html: Added.

2011-01-04 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Darin Adler.

CSS3 :nth-child selector and valid whitespace test fails
https://bugs.webkit.org/show_bug.cgi?id=36279

Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.

Test: fast/css/css3-nth-space.html

  • css/tokenizer.flex:
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r75035 r75039  
     12011-01-04  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        CSS3 :nth-child selector and valid whitespace test fails
     6        https://bugs.webkit.org/show_bug.cgi?id=36279
     7
     8        * fast/css/css3-nth-space-expected.txt: Added.
     9        * fast/css/css3-nth-space.html: Added.
     10
    1112011-01-04  Tony Gentilcore  <tonyg@chromium.org>
    212
  • trunk/WebCore/ChangeLog

    r75034 r75039  
     12011-01-04  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        CSS3 :nth-child selector and valid whitespace test fails
     6        https://bugs.webkit.org/show_bug.cgi?id=36279
     7
     8        Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
     9
     10        Test: fast/css/css3-nth-space.html
     11
     12        * css/tokenizer.flex:
     13
    1142011-01-04  Chris Fleizach  <cfleizach@apple.com>
    215
  • trunk/WebCore/css/tokenizer.flex

    r72747 r75039  
    2424nl              \n|\r\n|\r|\f
    2525range           \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
    26 nth             [\+-]?{intnum}*n([\+-]{intnum})?
     26nth             [\+-]?{intnum}*n([\t\r\n ]*[\+-][\t\r\n ]*{intnum})?
    2727
    2828%%
Note: See TracChangeset for help on using the changeset viewer.