Closed Fraaankes closed 4 years ago
AngleSharp.Css
For more information, see the CONTRIBUTING guide.
CONTRIBUTING
Parsing a style rule with a linear-gradient, and then writing the same rule back to css causes the angle to get removed.
class Program { static void Main(string[] args) { var parser = new CssParser(); var styleSheet = parser.ParseStyleSheet(".bg { background-image: linear-gradient(to right, #FF866E 0, #F15A24 0); }"); var css = styleSheet.ToCss(); Console.WriteLine(css); // Outputs // .bg { background-image: linear-gradient(rgba(255, 134, 110, 1) 0, rgba(241, 90, 36, 1) 0) } } }
Awesome thanks for the report and ...
... :tada: even more appreciate the PR :heart:!
:beers: :beers: Thanks!
Landed in the preview! Available in devel.
devel
@FlorianRappl is there a preview nuget?
Bug Report
Prerequisites
AngleSharp.Css
for CSS support)For more information, see the
CONTRIBUTING
guide.Description
Parsing a style rule with a linear-gradient, and then writing the same rule back to css causes the angle to get removed.
Steps to Reproduce