Microsoft/vscode

[css] Wrong selector specificity values with :where

クローズ

#129,487 opened on 2021/07/27

 (1 件のコメント) (5 件のリアクション) (1 人の担当者)TypeScript (39,847 件のフォーク)batch import
bugcss-less-scsshelp wanted

Repository metrics

Stars
 (184,936 個のスター)
PR merge metrics
 (平均マージ 11h 43m) (30d で 1,000 merged PRs)

説明

Does this issue occur when all extensions are disabled?: Yes/No

Issue Type: Bug

In CSS files : It seems like selectors inside where pseudo class count as normal, and where pseudo class itself counted as class.

:where(.foo) li {...}

indicates

Specificity should be Selector Specificity: (0, 0, 1)

バージョン: 1.58.2 コミット: c3f126316369cd610563c75b1b1725e0679adfb3 日付: 2021-07-14T22:10:15.214Z Electron: 12.0.13 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Windows_NT x64 10.0.18363

Extensions: none

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