Skip to content

The syntax used to display counters in CSS cannot be displayed correctly;content: counter(linenumber); #137

@jifafa484

Description

@jifafa484

content: counter(linenumber);
1、Cannot render:
span::before {
counter-increment: linenumber;
content: counter(linenumber);
display: block;
width: 100%;
height: 50px;
background: #e0e0e0;
margin-top: 20px;
}
2、Can render:
span::before {
content: ‘1’;
display: block;
width: 100%;
height: 50px;
background: #e0e0e0;
margin-top: 20px;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions