You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should only affect media "print". However, it's being parsed by ParseStyleBlocks and inserted under media "all" before being parsed again by ParseMediaStyleBlocks and inserted under media "print".
Code which demonstrates this:
var testCSS = @"
@media print {
foo { bar: baz }
}";
var css = CssData.Parse(adapter, testCSS, false);
Assert(css.GetCssBlock("foo", "print").First().Properties["bar"] == "baz");
Assert(!css.GetCssBlock("foo", "all").Any(block => block.Properties.ContainsKey("bar")));
This bug then has knock-on effects because the default CSS includes an @media print section with h1 { page-break-before: always }, which is thoroughly undesirable in the WPF renderer.
The text was updated successfully, but these errors were encountered:
Consider the following CSS:
This should only affect media
"print"
. However, it's being parsed byParseStyleBlocks
and inserted under media"all"
before being parsed again byParseMediaStyleBlocks
and inserted under media"print"
.Code which demonstrates this:
This bug then has knock-on effects because the default CSS includes an
@media print
section withh1 { page-break-before: always }
, which is thoroughly undesirable in the WPF renderer.The text was updated successfully, but these errors were encountered: