less/less.js

Container style queries unexpected space

已关闭

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

 (16 条评论) (0 个反应) (0 位负责人)JavaScript (3,517 个派生)batch import
buggood first issuehigh priorityup-for-grabs

仓库指标

星标
 (16,977 个星标)
PR 合并指标
 (平均合并 19天 1小时) (30 天内合并 15 个 PR)

描述

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

贡献者指南