Timeline for Why does :nth-child() in CSS start from 1 instead of 0?
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 16 at 23:31 | comment | added | RBT | Related post - Why do indexes in XPath start with 1 and not 0? | |
| Oct 18, 2017 at 9:09 | history | tweeted | twitter.com/StackSoftEng/status/920577546290434048 | ||
| Oct 17, 2017 at 5:24 | history | protected | gnat | ||
| Oct 17, 2017 at 4:26 | comment | added | user949300 | @lxrec In my answer XPath is cited as a precedent for 1-based indexing. Not sure if it actually was a factor, or just a coincidence, but it's another XML focused system so it makes sense. | |
| Oct 16, 2017 at 23:37 | answer | added | user949300 | timeline score: 3 | |
| Apr 3, 2016 at 18:59 | answer | added | Adam Zuckerman | timeline score: 10 | |
| Apr 2, 2016 at 16:05 | comment | added | JacquesB | @lxrec: I think it is a claim that "everything else is 0-indexed" which should be justified. You don't say Queen Elizabeth the Zeroth, The zeroth day of Christmas, the zeroth street to the left or the zeroth word on the page. | |
| Apr 2, 2016 at 14:06 | comment | added | Ixrec | Since I suspect this will draw a few close votes, I am leaving this open because it is at least theoretically possible to answer this objectively by either citing other examples of 1-indexing in CSS and claiming consistency, or finding a relevant statement from one of the people who actually makes CSS standards decision. I don't know nearly enough about CSS to do that myself, but as long as we don't upvote any answers that make the obvious "it's how normal humans count" argument without any justification for why everything else is 0-indexed, then there's no harm in leaving this open. | |
| Apr 2, 2016 at 10:49 | review | Close votes | |||
| Apr 14, 2016 at 3:01 | |||||
| Apr 2, 2016 at 10:22 | answer | added | JacquesB | timeline score: 50 | |
| Apr 2, 2016 at 10:10 | comment | added | Mason Wheeler | "Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration." -- Stan Kelly-Bootle | |
| Apr 2, 2016 at 9:47 | review | First posts | |||
| Apr 3, 2016 at 18:45 | |||||
| Apr 2, 2016 at 9:43 | history | asked | user51349 | CC BY-SA 3.0 |