mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 08:08:07 +02:00
Merge pull request #13502 from calixteman/contentarea
XFA - contentarea must be on top of the other containers in a pageArea
This commit is contained in:
commit
aa2712744d
2 changed files with 11 additions and 4 deletions
|
@ -65,7 +65,7 @@ describe("XFAFactory", function () {
|
|||
});
|
||||
|
||||
expect(page1.children.length).toEqual(2);
|
||||
const container = page1.children[0];
|
||||
const container = page1.children[1];
|
||||
expect(container.attributes.class).toEqual(["xfaContentarea"]);
|
||||
expect(container.attributes.style).toEqual({
|
||||
height: "789px",
|
||||
|
@ -75,7 +75,7 @@ describe("XFAFactory", function () {
|
|||
position: "absolute",
|
||||
});
|
||||
|
||||
const wrapper = page1.children[1];
|
||||
const wrapper = page1.children[0];
|
||||
const draw = wrapper.children[0];
|
||||
|
||||
expect(wrapper.attributes.class).toEqual(["xfaWrapper"]);
|
||||
|
@ -105,7 +105,7 @@ describe("XFAFactory", function () {
|
|||
|
||||
// draw element must be on each page.
|
||||
expect(draw.attributes.style).toEqual(
|
||||
pages.children[1].children[1].children[0].attributes.style
|
||||
pages.children[1].children[0].children[0].attributes.style
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue