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

Crash: 'StackingContext' object has no attribute 'style' #1396

Closed
smeggingsmegger opened this issue Jul 13, 2021 · 1 comment
Closed

Crash: 'StackingContext' object has no attribute 'style' #1396

smeggingsmegger opened this issue Jul 13, 2021 · 1 comment

Comments

@smeggingsmegger
Copy link

<style>
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 2.5cm;
    width: 100%;
    padding: 0 84px;
    background-color: #00e300;
  }
  
footer p {
    color: red;
    font-size: 13px;
    font-family: hero-new;
  }
.footer-wrap {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}
</style>
<footer>
  <div class="footer-wrap">
    <p>Page 1 of 1   >   © COMPANY.COM   >   [email protected]</p>
  </div>
</footer>

Will crash with this error: "'StackingContext' object has no attribute 'style'"

display: inline-block; inside of .footer-wrap is the cause of the crash. Remove that item and it stops crashing.

@smeggingsmegger
Copy link
Author

More context, this is using the example from the Weasyprint documentation to allow for repeating headers and footers. This is in the repeating footer.

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

No branches or pull requests

1 participant