mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-04 16:07:57 +03:00
Test that the default stylesheet is applied.
This commit is contained in:
parent
531c8ec669
commit
e4716db0c7
@ -127,3 +127,11 @@ def test_annotate_document():
|
||||
# TODO much more tests here: test that origin and selector precedence
|
||||
# and inheritance are correct, ...
|
||||
|
||||
|
||||
@suite.test
|
||||
def test_default_stylesheet():
|
||||
document = parse_html('doc1.html')
|
||||
css.annotate_document(document)
|
||||
assert document.head.style.display == 'none', \
|
||||
'The HTML4 user-agent stylesheet was not applied'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user