less/less.js

Container style queries unexpected space

Open

#4,235 创建于 2023年9月26日

在 GitHub 查看
 (16 评论) (0 反应) (0 负责人)JavaScript (16,977 star) (3,517 fork)batch import
buggood first issuehigh priorityup-for-grabs

描述

To reproduce:

https://lesscss.org/less-preview/#eyJjb2RlIjoiQGNvbnRhaW5lciBzdHlsZSgtLXRoZW1lOiBkYXJrKXtcbiAgLm1haW57XG4gICAgY29sb3I6IzAwMDtcbiAgfVxufVxuXG4iLCJhY3RpdmVWZXJzaW9uIjoiNC4yLjAiLCJtYXRoIjoicGFyZW5zLWRpdmlzaW9uIiwic3RyaWN0VW5pdHMiOmZhbHNlfQ==

@container style(--theme: dark){
  .main{
    color: #000;
  }
}

Current behavior: There's a space between "style" and the bracket.

@container style (--theme: dark)

Expected behavior: No space between "style" and the bracket.

@container style(--theme: dark)

Environment information:

  • less version: 4.2.0

贡献者指南

Container style queries unexpected space · less/less.js#4235 | Good First Issue