lazy parse_rules

This commit is contained in:
Will McGugan
2022-04-29 10:34:35 +01:00
parent 233c2c4075
commit 8e821d4113
3 changed files with 17 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ def test_color_property_parsing(css_value, expectation, expected_color):
with expectation:
stylesheet.add_source(css)
stylesheet.parse()
if expected_color:
css_rule = stylesheet.rules[0]