Skip to content

Identifiers with "named-color" parts are broken. #2841

Closed

Description

@ernscht

since release 2.6.1 less.js changes the animation-name value if it starts with a css color name

animation: blue-change 5s infinite;
animation-name: green-black;

results in

animation: blue change 5s infinite;
animation-name: #008000;

Activity

  1. changed the title [-]animation-name sould not be changed[/-] [+]Identifiers with "named-color" parts are broken.[/+] on Apr 1, 2016
  2. matthew-dean commented on Apr 22, 2016

    @matthew-dean
    Member

    This is due to the change in 01b11a7?diff=unified where the regex for named colors was altered.

    Technically this should be caught by the parser as a keyword before it attempts any operations. However, I've reverted the regex change which passes all tests, including new ones which test for this case.

  3. added a commit that references this issue on Apr 22, 2016
  4. seven-phases-max commented on May 7, 2016

    @seven-phases-max
    Member

    Closing as fixed in d07a9b6.

  5. added a commit that references this issue on May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions