WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 31267
:nth-child(-2n) should match no element
https://bugs.webkit.org/show_bug.cgi?id=31267
Summary
:nth-child(-2n) should match no element
Jan Kassens
Reported
2009-11-09 12:45:51 PST
:nth-child(-an) matches the a-th element, but should not match anything. This applies to querySelectorAll and CSS rules. NOTE: :nth-child(-n) correctly matches nothing.
Attachments
testcase
(787 bytes, text/html)
2009-11-30 04:52 PST
,
Jan Kassens
no flags
Details
Add tests for Bug 31267 - :nth-child(-2n) should match no element.
(2.22 KB, patch)
2010-05-16 23:06 PDT
,
Yuzo Fujishima
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jan Kassens
Comment 1
2009-11-30 04:52:30 PST
Created
attachment 44015
[details]
testcase A simple manual testcase.
Yuzo Fujishima
Comment 2
2010-05-16 23:06:22 PDT
Created
attachment 56213
[details]
Add tests for
Bug 31267
- :nth-child(-2n) should match no element.
Yuzo Fujishima
Comment 3
2010-05-16 23:10:06 PDT
The proposed patch just adds tests because this bug has been already fixed by
http://trac.webkit.org/changeset/58300
.
Darin Adler
Comment 4
2010-05-17 10:52:17 PDT
Comment on
attachment 56213
[details]
Add tests for
Bug 31267
- :nth-child(-2n) should match no element. Good to add a test case. A test that replaces "Test didn't run" with "PASS" or "FAIL" isn't quite as good as a test that explains what it's testing. It's better when possible to have the test explain itself and write out specifics of the unwanted result. r=me
Yuzo Fujishima
Comment 5
2010-05-17 21:46:40 PDT
Committed
r59649
: <
http://trac.webkit.org/changeset/59649
>
Yuzo Fujishima
Comment 6
2010-05-17 21:49:22 PDT
Thank you for the review. Landed the patch after making the tests more descriptive.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug