Support :nth-child(An+B of S)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Issue にリンクされている CSS Selectors のドラフトから始め、次に cssselect のセレクターパーサーと既存の :nth-child の処理を見つけてください。An+B 式とセレクター引数がどのように表現されているかを確認し、:nth-child(-n+3 of li.important) のようなセレクターがパースされ、期待される結果を生成することを検証してください。
索引モデルが issue の本文から書いたものです。
説明
The current CCS 4 draft has :nth-child(An+B [of S]? ), extending :nth-child(An+B)
The :nth-child(An+B [of S]? ) pseudo-class notation represents the An+Bth element that matches the selector list S among its inclusive siblings.
The CSS Syntax Module [CSS3SYN] defines the An+B notation. If S is omitted, it defaults to *.
By passing a selector argument, we can select the Nth element that matches that selector. For example, the following selector matches the first three “important” list items, denoted by the .important class:
:nth-child(-n+3 of li.important)
- 主要言語
- Python
- スター
- 312
- フォーク
- 71
- 平均マージ
- 2日 22分
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scrapy/cssselect のほかの issue
-
Add comprehensive developer docs対応中かも @AdrianAtZyte が 53 日前に担当しました。 オープンdocumentation enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
-
The parsing of :where and :is is not spec compliant対応中かも @AdrianAtZyte が 67 日前に担当しました。 オープンCSS Selectors Level 4 enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
scrapy/cssselect#135 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[feature-request] `:not()` to support generic selectors (not only "simple" ones)対応中かも @AdrianAtZyte が 67 日前に担当しました。 オープンCSS Selectors Level 4
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
scrapy/cssselect#51 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
scrapy/cssselect の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
topoteretes/cognee#5773 ·
メンテナーはふだん 1 日以内に返信
-
MiKTeX: a failed build reports no errors because texify --quiet switches the log to file:line: styleオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
SublimeText/LaTeXTools#1718 ·