Skip to content
Browse files

Add support for @page:blank pseudo-class

  • Loading branch information...
1 parent 7852a27 commit d2cf7f03bbd3652532ba4b0ee211a8fd0233b5b0 @liZe liZe committed Aug 23, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 tinycss/page3.py
View
5 tinycss/page3.py
@@ -130,7 +130,7 @@ def parse_page_selector(self, head):
The ``head`` attribute of an unparsed :class:`AtRule`.
:returns:
A page selector. For CSS 2.1, this is 'first', 'left', 'right'
- or None.
+ or None. 'blank' is added by GCPM.
:raises:
:class`~parsing.ParseError` on invalid selectors
@@ -151,7 +151,8 @@ def parse_page_selector(self, head):
and head[1].type == 'IDENT'):
pseudo_class = head[1].value
specificity = {
- 'first': (1, 0), 'left': (0, 1), 'right': (0, 1),
+ 'first': (1, 0), 'blank': (1, 0),
+ 'left': (0, 1), 'right': (0, 1),
}.get(pseudo_class)
if specificity:
return (name, pseudo_class), (name_specificity + specificity)

0 comments on commit d2cf7f0

Please sign in to comment.
Something went wrong with that request. Please try again.