Commit 92e42a66 authored by Fred Chasen's avatar Fred Chasen

Add basic footnote-display inline support

parent e7344f17
Pipeline #694 passed with stage
in 3 minutes and 43 seconds
This diff is collapsed.
const TIMEOUT = 10000;
describe("footnote-display", () => {
let page;
beforeAll(async () => {
page = await loadPage("notes/footnote-display/footnote-display.html");
return page.rendered;
}, TIMEOUT);
afterAll(async () => {
if (!DEBUG) {
await page.close();
}
});
it("should render 6 pages", async () => {
let pages = await page.$$eval(".pagedjs_page", (r) => {
return r.length;
});
expect(pages).toEqual(6);
});
if (!DEBUG) {
it("should create a pdf", async () => {
let pdf = await page.pdf(PDF_SETTINGS);
expect(pdf).toMatchPDFSnapshot(2);
expect(pdf).toMatchPDFSnapshot(3);
expect(pdf).toMatchPDFSnapshot(4);
});
}
}
);
......@@ -428,6 +428,10 @@ export default `
content: counter(footnote-marker) ". ";
}
.pagedjs_area .pagedjs_footnote_inner_content [data-note-display="inline"] {
display: inline;
}
.pagedjs_page {
counter-increment: page;
width: var(--pagedjs-width);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment