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

貢獻者指南