diff --git a/weasy/tests/test_css.py b/weasy/tests/test_css.py index c4ceacbc..d5cd5a6a 100644 --- a/weasy/tests/test_css.py +++ b/weasy/tests/test_css.py @@ -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' +