You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
tinycss unfortunately needs to be modified for every new kind of rule you might want to add. (There is an extension mechanism, but it’s not great.)
I recommend using tinycss2 instead, which was designed to fix this: you get an AtRule object that you can parse yourself. Something like:
forruleinparse_stylesheet(...):
ifrule.type=='at-rule'andrule.lower_at_keyword=='keyframes':
name=parse_one_component_value(rule.prelude)
ifname.type!='ident':
continuename=name.lower_valueforkeyframeinparse_rule_list(rule.content):
ifkeyframe.type!='qualified-rule'continue# You get the idea…
See https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes for a description of this CSS feature.
test.css
:test.py
The text was updated successfully, but these errors were encountered: