Skip to content

Empty @keyframes should not be removed #1665

@eelco

Description

@eelco

While “mangling” CSS, empty rules get removed:

if p.options.MangleSyntax {
rules = removeEmptyAndDuplicateRules(rules)
}

However, empty @keyframes are a valid (albeit hacky) use case, as these animations can still be triggered to dispatch JavaScript animation events: https://bugzilla.mozilla.org/show_bug.cgi?id=1004377

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions