Skip to content

Commit

Permalink
Remove useless condition
Browse files Browse the repository at this point in the history
The bug #880 has been resolved by handling stacking contexts stored as box
children, adding this condition.

But the stacking contexts stored as box children introduced other bugs. #1473
was another bug, and its fix also removed the problem of #880.
  • Loading branch information
liZe committed Apr 15, 2022
1 parent d49f93f commit 60edc71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions weasyprint/stacking.py
Expand Up @@ -69,8 +69,6 @@ def from_box(cls, box, page, child_contexts=None):
def dispatch(box):
if isinstance(box, AbsolutePlaceholder):
box = box._box
elif isinstance(box, StackingContext):
box = box.box
style = box.style
absolute_and_z_index = (
style['position'] != 'static' and style['z_index'] != 'auto')
Expand Down

0 comments on commit 60edc71

Please sign in to comment.