GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Comments are incorrectly transpiled · Issue #595 · postcss/postcss-import

Comments are incorrectly transpiled #595

New issue
Copy link
New issue
Copy link
Closed
Closed
Comments are incorrectly transpiled#595
Copy link

Description

@dotnetCarpenter
dotnetCarpenter
opened on May 24, 2026
Issue body actions

The < sign inside a CSS comment is transpiled to \3c which breaks our live UI documentation.

postcss-import version: 16.1.1

Minimal reproducible repo

https://github.com/dotnetCarpenter/postcss-import-bug

Example CSS:

/*
<div class="f-content"> \3c !-- only here for the style guide - should not be used on the website -->
*/
body {
    background-color: black;
}

With the following package.json:

"scripts": {
    "bug": "postcss --no-map --use postcss-import -o main.css css/*.css",
    "build": "postcss --no-map --o main.css css/*.css"
}

If you run npm run bug && cat main.css you will get:

/*
<div class="f-content"> \3c !-- only here for the style guide - should not be used on the website -->
*/
body {
    background-color: black;
}

Running npm run build && cat main.cssyou will get:

/*
<div class="f-content"> <!-- only here for the style guide - should not be used on the website -->
*/
body {
    background-color: black;
}

Activity

  1. romainmenke commented on May 24, 2026

    @romainmenke
    romainmenke
    on May 24, 2026
    Collaborator
    More actions

    See: postcss/postcss#2074

    This is a change in PostCSS and unrelated to this plugin.

    (Keeping in mind that PostCSS ran without plugins is a noop)

    You can open an upstream issue to detail your use case.

  2. romainmenke
    closed this as completedon May 26, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.