Changeset 85416 in webkit


Ignore:
Timestamp:
May 1, 2011 10:08:25 AM (13 years ago)
Author:
yael.aharon@nokia.com
Message:

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

Reviewed by Eric Seidel.

CSS3 nth-child(n) selector fails
https://bugs.webkit.org/show_bug.cgi?id=56943

  • fast/css/nth-child-n-expected.txt: Added.
  • fast/css/nth-child-n.html: Added.

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

Reviewed by Eric Seidel.

CSS3 nth-child(n) selector fails
https://bugs.webkit.org/show_bug.cgi?id=56943

Regression from r75158.
"n" is a valid parameter to nth() and should be allowed.

Test: fast/css/nth-child-n.html

  • css/CSSParser.cpp: (WebCore::isValidNthToken):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85413 r85416  
     12011-05-01  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        CSS3 nth-child(n) selector fails
     6        https://bugs.webkit.org/show_bug.cgi?id=56943
     7
     8        * fast/css/nth-child-n-expected.txt: Added.
     9        * fast/css/nth-child-n.html: Added.
     10
    1112011-05-01  Nikolas Zimmermann  <nzimmermann@rim.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r85415 r85416  
     12011-05-01  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        CSS3 nth-child(n) selector fails
     6        https://bugs.webkit.org/show_bug.cgi?id=56943
     7
     8        Regression from r75158.
     9        "n" is a valid parameter to nth() and should be allowed.
     10
     11        Test: fast/css/nth-child-n.html
     12
     13        * css/CSSParser.cpp:
     14        (WebCore::isValidNthToken):
     15
    1162011-05-01  Pavel Feldman  <pfeldman@chromium.org>
    217
  • trunk/Source/WebCore/css/CSSParser.cpp

    r85213 r85416  
    67736773{
    67746774    // The tokenizer checks for the construct of an+b.
    6775     // nth can also accept "odd" or "even" but should not accept any other token.
    6776     return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even");
     6775    // nth can also accept "n", "odd" or "even" but should not accept any other token.
     6776    return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") || equalIgnoringCase(token, "n");
    67776777}
    67786778
Note: See TracChangeset for help on using the changeset viewer.