mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
Set nth() selector specificity
This commit is contained in:
parent
ce7e9dd049
commit
48775182e6
@ -723,6 +723,9 @@ def parse_page_selectors(rule):
|
||||
if number.type != 'number':
|
||||
return None
|
||||
types['index'] = number.value - 1
|
||||
# TODO: specificity is not specified yet
|
||||
# https://github.com/w3c/csswg-drafts/issues/3791
|
||||
types['specificity'][1] += 1
|
||||
continue
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user