Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the different layers order in using a z-index #15861

Closed
calixteman opened this issue Dec 22, 2022 · 0 comments · Fixed by #15862
Closed

Set the different layers order in using a z-index #15861

calixteman opened this issue Dec 22, 2022 · 0 comments · Fixed by #15862

Comments

@calixteman
Copy link
Contributor

It'd slightly simplify the js code in moving this on the css side.

calixteman added a commit to calixteman/pdf.js that referenced this issue Dec 26, 2022
…5861)

Each layer has an absolute position, hence it induces the creation of
some stacking contexts (see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).
Thanks to this feature, we don't have to worry about the z-index used in
the annotation layer and how form elements interact with the other layers.
calixteman added a commit to calixteman/pdf.js that referenced this issue Dec 26, 2022
…5861)

Each layer has an absolute position, hence it induces the creation of
some stacking contexts (see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).
Thanks to this feature, we don't have to worry about the z-index used in
the annotation layer and how form elements interact with the other layers.
calixteman added a commit that referenced this issue Dec 26, 2022
Set a z-index for the different layers within a page (fixes #15861)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant