Skip to content

Commit

Permalink
Related to #1540.
Browse files Browse the repository at this point in the history
Regression test
  • Loading branch information
grewn0uille committed Jan 14, 2022
1 parent f8c9747 commit cd8a463
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/layout/test_page.py
Expand Up @@ -1360,3 +1360,25 @@ def test_running_img():
</style>
<img src="pattern.png" />
''')


@pytest.mark.xfail
@assert_no_logs
def test_running_absolute():
# Test regression: https://github.com/Kozea/WeasyPrint/issues/1540
render_pages('''
<style>
footer {
position: running(footer);
}
p {
position: absolute;
}
@page {
@bottom-center {
content: element(footer);
}
}
</style>
<footer>Hello!<p>Bonjour!</p></footer>
''')

0 comments on commit cd8a463

Please sign in to comment.