1
1
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:
Guillaume Ayoub 2019-04-02 11:36:07 +02:00
parent ce7e9dd049
commit 48775182e6

View File

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