Skip to content

Commit

Permalink
Add test about flexbox baseline
Browse files Browse the repository at this point in the history
Related to #765.
  • Loading branch information
liZe committed Mar 19, 2019
1 parent a5e9127 commit d134ea7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions weasyprint/tests/test_layout/test_flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,12 @@ def test_flex_auto_margin():
page, = render_pages('<div style="display: flex; margin: auto">')
page, = render_pages(
'<div style="display: flex; flex-direction: column; margin: auto">')


@assert_no_logs
def test_flex_no_baseline():
# Regression test for https://github.com/Kozea/WeasyPrint/issues/765
page, = render_pages('''
<div class="references" style="display: flex; align-items: baseline;">
<div></div>
</div>''')

0 comments on commit d134ea7

Please sign in to comment.