less/less.js

Container style queries unexpected space

クローズ

#4,235 opened on 2023/09/26

 (16 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (3,517 件のフォーク)batch import
buggood first issuehigh priorityup-for-grabs

Repository metrics

Stars
 (16,977 個のスター)
PR merge metrics
 (平均マージ 19d 1h) (30d で 15 merged PRs)

説明

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

コントリビューターガイド