Skip to content

Add counter and counter-reset #489

Open
@joshmoody24

Description

@joshmoody24

Apple Mail supports counter and counter-reset in CSS, as demonstrated by this example:

<!DOCTYPE html>
<html>
<head>
  <style>
    .no-counter {
      color: red;
      visibility: visible;
    }

    .counter {
      color: green;
      visibility: hidden;
    }

    @supports (counter-reset: test) {
      .no-counter {
        display: none;
      }

      .counter {
        counter-reset: section;
        visibility: visible;
      }

      .counter::before {
        counter-increment: section;
        content: "Counter: " counter(section);
        font-weight: bold;
      }
    }
  </style>
</head>
<body>
  <p class="no-counter">No counter support.</p>
  <p class="counter"></p>
</body>
</html>

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Data requestNeed to know about something we don't list yet?

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions