Set a z-index for the different layers within a page (fixes #15861)

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.
This commit is contained in:
Calixte Denizet 2022-12-22 21:55:25 +01:00
parent e49dd525b0
commit c677b167b6
5 changed files with 7 additions and 15 deletions

View file

@ -60,7 +60,7 @@
font-size: calc(100px * var(--scale-factor));
transform-origin: 0 0;
cursor: auto;
z-index: 20000;
z-index: 4;
}
.annotationEditorLayer.freeTextEditing {