Closed jogibear9988 closed 2 years ago
If you do this in Chrome:
$0.style.gridArea="bb"
window.getComputedStyle($0).gridRowEnd
window.getComputedStyle($0).gridColEnd
you get "bb" for both of the values. AngleSharp set's them to "auto"
I can fix this by adding
if (tuple.Items.Length > 0)
{
return tuple.Items[0];
}
to this method:
before that line:
return new Constant<Object>(CssKeywords.Auto, null);
but I don't know how to fix the minification correctly.
I think in the Merge if all 4 values are the same, they should be merged back to one.
Bug Report
Prerequisites
AngleSharp.Css
for CSS support)For more information, see the
CONTRIBUTING
guide.Description
Grid area is converted to wrong css
Steps to Reproduce
Try this snippet:
Expected behavior: [What you expected to happen]
I expect the text to be the same as in source (or nearly)
Actual behavior: [What actually happened]
the text look like this:
problem is, this text renders the html differently then the original one (at least in chrome)