We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a342e commit b2c6cbaCopy full SHA for b2c6cba
2 files changed
tests/css/test_validation.py
@@ -964,12 +964,12 @@ def test_grid_template_areas_invalid(rule):
964
@pytest.mark.parametrize('rule, value', (
965
('auto', 'auto'),
966
('4', (None, 4, None)),
967
- ('C', (None, None, 'c')),
+ ('C', (None, None, 'C')),
968
('4 c', (None, 4, 'c')),
969
('col -4', (None, -4, 'col')),
970
('span c 4', ('span', 4, 'c')),
971
('span 4 c', ('span', 4, 'c')),
972
- ('4 span c', ('span', 4, 'c')),
+ ('4 span C', ('span', 4, 'C')),
973
('super 4 span', ('span', 4, 'super')),
974
))
975
def test_grid_line(rule, value):
weasyprint/css/validation/properties.py
@@ -1626,7 +1626,7 @@ def grid_line(tokens):
1626
if keyword == 'auto':
1627
return keyword
1628
elif keyword != 'span':
1629
- return (None, None, keyword)
+ return (None, None, token.value)
1630
elif token.type == 'number' and token.is_integer and token.value:
1631
return (None, token.int_value, None)
1632
return
@@ -1640,7 +1640,7 @@ def grid_line(tokens):
1640
span = 'span'
1641
continue
1642
elif keyword and ident is None:
1643
- ident = keyword
+ ident = token.value
1644
1645
1646
if number is None:
0 commit comments