Skip to content

The type attribute of the ordered list is ignored #70

@neupauer

Description

@neupauer

The type attribute of the ordered list ( MDN | The Ordered List element ) is ignored (reset).

<ol type="a">

</ol>

Reason:

'ol > li::before': {
  content: 'counter(list-counter) "."'
},

Possible solution:

'ol[type=a]': {
  --list-counter-style: lower-alpha
},

'ol[type=A]': {
  --list-counter-style: upper-alpha
},

'ol[type=i]': {
  --list-counter-style: lower-roman
},

'ol[type=I]': {
  --list-counter-style: upper-roman
},

'ol[type=1]': {
  --list-counter-style: decimal
},

'ol > li::before': {
  content: 'counter(list-counter, var(--list-counter-style, decimal)) "."'
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions