Skip to content

Counters used in content css property are broken after calling ToCss #58

Closed
@nazar554

Description

@nazar554

Bug Report

Description

After parsing a CSS stylesheet with counter() call inside content: property, ToCss() returns invalid CSS.

Steps to Reproduce

var parser = new CssParser();
var sheet = parser.ParseStyleSheet(@"
h1::before {
  counter-increment: h1;
  content: counter(h1) "".\00A0"";
}
");
var css = sheet.ToCss();

Expected behavior:
h1::before { counter-increment: h1 1; content: counter(h1) ". " }
Actual behavior:
h1::before { counter-increment: h1 1; content: h1 decimal ". " }

Environment details: [OS, .NET Runtime, ...] .NET 4.8/Windows 10 AngleSharp.Css 0.14.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions