Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

Parse errorunknown at-rule in stylesheet context: @keyframes #9

@jdufresne

Description

@jdufresne

See https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes for a description of this CSS feature.

test.css:

@keyframes identifier {
    0% { top: 0; left: 0; }
    30% { top: 50px; }
    68%, 72% { left: 50px; }
    100% { top: 100px; left: 100%; }
}

test.py

import tinycss

parser = tinycss.make_parser('page3')
ss = parser.parse_stylesheet_file('test.css')
print(ss.errors)
$ python3 test.py 
[ParseError('Parse error at 1:1, unknown at-rule in stylesheet context: @keyframes',)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions