Skip to content

CSS: "already been defined" on different media #300

@GordanBlake

Description

@GordanBlake

If you have one or more @media in your css file and you define different rules for the same element on each media, lint mark the second one with a "TagName has already been defined" error.

Example (both declarations are in the same css file of course):

h1 { color: red; }

@media print {
h1 { color: black; } /* lint mark this as a duplicate */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions