Skip to content

False error when lexing CSS #2382

Closed
@mgroth0

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.

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