We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Fixed counter issue #58
fa615f4
Thanks for the report!
A fix is available in 0.14.2.
Sorry, something went wrong.
FlorianRappl
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: