Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jfkthame opened this issue Jun 29, 2021 · 1 comment
Open

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

jfkthame opened this issue Jun 29, 2021 · 1 comment
Labels
css-lists-3 Current Work

Comments

@jfkthame
Copy link
Contributor

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.

@jfkthame
Copy link
Contributor Author

In addition, it seems "Example 22" at https://drafts.csswg.org/css-lists/#counter-functions is also incorrect: its use of counter-reset on the heading elements without a proper nesting structure of document sections, subsections, etc. means that it will not render as expected in a spec-conformant browser. See comments 8 and 9 at https://bugzilla.mozilla.org/show_bug.cgi?id=1718070.

As @MatsPalmgren notes in https://bugzilla.mozilla.org/show_bug.cgi?id=1718070#c9, it should probably be amended to use counter-set instead.

@fantasai fantasai added the css-lists-3 Current Work label Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-lists-3 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants