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
I found a problem that a blank page selector (@page :blank) is applied to a non-blank page.
Test case:
<!doctype html><html><head><metacharset="utf-8"><style>
@page {
@top-center {
content: "Normal Page";
}
@bottom-center {
content: counter(page);
}
}
@page :blank {
color: red;
@top-center {
content: "Blank Page";
}
}
nav li a::after {
content: leader(".") " " target-counter(attr(href), page);
}
section {
break-before: page;
}
.recto {
break-before: recto;
}
</style></head><body><nav><h2>Table of Contents</h2><ol><li><ahref="#One">One</a></li></ol></nav><sectionid="One"><h2>One</h2><p>This page is a Normal Page.</p></section><sectionclass="recto"><h2>Two</h2><p>This page should be a Normal Page (not a Blank Page).</p><p><code>break-before: recto;</code> is specified but no blank page will be generated.</p></section><section><h2>Three</h2><p>This page is a Normal Page.</p></section></body></html>
I found a problem that a blank page selector (
@page :blank
) is applied to a non-blank page.Test case:
GitHub Gist: https://gist.github.com/MurakamiShinyu/8ba399c0dcfc87c093ffc55e8333102a
Test with Vivliostyle Viewer:
https://vivliostyle.vercel.app/#src=https://gist.github.com/MurakamiShinyu/8ba399c0dcfc87c093ffc55e8333102a
Result screenshot:
The text was updated successfully, but these errors were encountered: