Skip to content

False error when lexing CSS #2382

Closed

Description

@mgroth0

Here is the CSS:

.target-img {
  position: absolute; 
  top: 25%; 
  left: 50%; 
  transform: translate(-50%, -50%);
}

As you can see on https://pygments.org/demo/, the percent signs in the translate function are rendered as errors. But actually, they are valid CSS.

Activity

  1. added a commit that references this issue on Mar 19, 2023
    3080991
  2. added this to the 2.15.0 milestone on Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexersT-bugtype: a bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions