Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Property does not exist error on container queries

オープン
#474 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
css
領域
frontend

調査の方向性

ソースファイルもテストも指定されていません。提示された HTML を再現し、その後 container-name、container-type、@container の CSS 検証ルールを見つけてください。例がプロパティや at-rule に対する誤検出エラーなしで検証されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The validator throws false positives for properties relating to container queries.

As an example, I get these errors for the following markup example:

  1. Error: CSS: container-name: Property container-name doesn't exist.
    From line 10, column 25; to line 10, column 38
    ner-name: test-container;↩

  2. Error: CSS: container-type: Property container-type doesn't exist.
    From line 11, column 25; to line 11, column 35
    ner-type: inline-size;↩

  3. Error: CSS: Unrecognized at-rule @container
    From line 16, column 7; to line 16, column 16
    }↩ @container test-

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Test Container Queries</title>
    <style>
      .container {
        container-name: test-container;
        container-type: inline-size;
      }
      p {
        font-size: 1rem;
      }
      @container test-container (max-width: 300px) {
        p {
          font-size: .5rem;
        }
      }
    </style>
  </head>

  <body>
    <div class="container">
      <p>
        Test if this is valid.
      </p>
    </div>
  </body>
</html>
主要言語
Java
スター
252
フォーク
124
平均マージ
2日 1時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

w3c/css-validator のほかの issue

w3c/css-validator の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。