[css-lists] Error in example 19 in the Lists spec

Open Beginner friendly
#6,413 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
css, html
Domain
documentation

Research direction

Open the CSS Lists specification at the linked URL and inspect Example 19, especially the nesting of the three closing tags. Move the "Third second-level item" into the intended second-level list, then verify that the rendered example labels it as a second-level item rather than a top-level item.

Written by the indexing model from the issue text.

Description

css-lists-3

See "Example 19" at https://drafts.csswg.org/css-lists/#list-item-counter. The example markup shown is

<ol>
  <li>First top-level item
  <li value=5>Second top-level item, value=5
    <ol start=3>
      <li>First second-level item, list start=3
      <li>Second second-level item, list start=3
        <ol reversed>
          <li>First third-level item in reversed list
          <li>Second third-level item in reversed list
          <li>Third third-level item in reversed list
          <li>Fourth third-level item in reversed list
        </ol>
    </ol>
  <li>Third second-level item, list start=3
  <li>Third top-level item
</ol>

but I believe the intention is clearly for the "Third second-level item" to be before, not after, the second of the three closing </ol> tags. Otherwise it becomes a "top-level item" instead.

Dominant language
Bikeshed
Stars
4.9k
Forks
816
Avg merge
2d 18h
Merged PRs (30d)
24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from w3c/csswg-drafts

All issues in w3c/csswg-drafts

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.