Microsoft/vscode

[css] Wrong selector hover when using :has()

Open

#191,897 opened on 2023年8月31日

GitHub で見る
 (1 comment) (0 reactions) (1 assignee)TypeScript (10,221 forks)batch import
bugcss-less-scsshelp wanted

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (平均マージ 11h 43m) (30d で 1,000 merged PRs)

説明

Type: Bug

Set language to CSS.

Put this code:

article:has(.alert) {
	color: crimson;
}

Hover over article:has(.alert).

This dialog shows a wrong HTML example:

<article :has>

Instead, it could be:

<article>
  <div class="alert"></div>
</article>

VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:20:58.115Z) OS version: Darwin arm64 21.6.0 Modes: Restricted

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