Closed nazar554 closed 4 years ago
After parsing a CSS stylesheet with counter() call inside content: property, ToCss() returns invalid CSS.
counter()
content:
ToCss()
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 ". " }
h1::before { counter-increment: h1 1; content: counter(h1) ". " }
h1::before { counter-increment: h1 1; content: h1 decimal ". " }
Environment details: [OS, .NET Runtime, ...] .NET 4.8/Windows 10 AngleSharp.Css 0.14.1
Thanks for the report!
A fix is available in 0.14.2.
Bug Report
Description
After parsing a CSS stylesheet with
counter()
call insidecontent:
property,ToCss()
returns invalid CSS.Steps to Reproduce
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