NativeScript / NativeScript/android
Chrome DevTools CSS Domain
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 563
- フォーク
- 144
- 平均マージ
- 10時間 46分
- マージ済み PR(30日)
- 14
説明
Implement the CSSAgent, part of the Chrome Debugging Protocol, inside Chrome DevTools.
Features:
- Preview CSS styles used in application/page
- Preview computed styles
- Preview inline styles
Requirements:
ping @vakrilov @hshristov @PanayotCankov
In order to display proper styles information, the CSS agent needs to be sent information following a very specific interface for the selected node in the visual tree.
Selecting an element from the DOM requires the following information to be computed and sent to the inspector:
- Inline styles -> CSSStyle
- Style matches -> RuleMatch[]
- Inherited styles -> InheritedStyleEntry[]
- (out of the 3.1 scope) Pseudo Element matches -> PseudoElementMatches[]
- Computed Styles for node -> CSSComputedStyleProperty[]
- (out of the 3.1 scope) Element Fonts -> PlatformFontUsage
CSSStyle, RuleMatch, InheritedStyleEntry, PseudoElementMatches, CSSComputedStyleProperty, PlatformFontUsage classes' definitions can be previewed at https://github.com/NativeScript/android-runtime/blob/43f9bd0ff7cc96e0560bf5f965ee5f01e19f12d5/test-app/app/src/main/assets/app/css-classes.d.ts#L3
Part of Epic #563
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Chrome Debugging Protocol CSSAgent のドキュメントと、issue にリンクされている css-classes.d.ts の定義を確認し、次に既存の computed-style preview と visual-tree node selection path を調査します。対象範囲に残っている CSSAgent のスタイル情報が inspector に公開され、pseudo-element matches と element fonts は対象外のままであれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, css
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100