Skip to content

Commit

Permalink
⚫ Fade to black.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 24, 2021
1 parent 8c4ea60 commit 2489eb0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cssutils/css/csspagerule.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def S(expected, seq, token, tokenizer=None):
return expected

def IDENT(expected, seq, token, tokenizer=None):
""
""" """
val = self._tokenvalue(token)
if 'page' == expected:
if self._normalize(val) == 'auto':
Expand Down
4 changes: 3 additions & 1 deletion cssutils/css/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,9 @@ def _setCssText(self, cssText):
),
)

_operant = lambda: Choice(_DimensionProd(self), _CalcValueProd(self), _CSSVariableProd(self)) # noqa
_operant = lambda: Choice(
_DimensionProd(self), _CalcValueProd(self), _CSSVariableProd(self)
) # noqa

prods = Sequence(
Prod(
Expand Down
12 changes: 10 additions & 2 deletions cssutils/tests/test_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,16 @@ def test_cssText(self):
'calc(1 / 1px )': ('calc(1 / 1px)', 1, 'calc(1 / 1px)'),
'calc( 1*1px )': ('calc(1 * 1px)', 1, 'calc(1 * 1px)'),
'calc( 1 / 1px )': ('calc(1 / 1px)', 1, 'calc(1 / 1px)'),
'calc(calc(1px + 5px) * 4)': ('calc(calc(1px + 5px) * 4)', 1, 'calc(calc(1px + 5px) * 4)'),
'calc( calc(1px + 5px)*4 )': ('calc(calc(1px + 5px) * 4)', 1, 'calc(calc(1px + 5px) * 4)'),
'calc(calc(1px + 5px) * 4)': (
'calc(calc(1px + 5px) * 4)',
1,
'calc(calc(1px + 5px) * 4)',
),
'calc( calc(1px + 5px)*4 )': (
'calc(calc(1px + 5px) * 4)',
1,
'calc(calc(1px + 5px) * 4)',
),
'calc(var(X))': (None, 1, None),
'calc(2 * var(X))': (None, 1, None),
'calc(2px + var(X))': (None, 1, None),
Expand Down

0 comments on commit 2489eb0

Please sign in to comment.