1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 07:57:52 +03:00

Test that the default stylesheet is applied.

This commit is contained in:
Simon Sapin 2011-05-19 14:57:41 +02:00
parent 531c8ec669
commit e4716db0c7

View File

@ -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'