Chrome DevTools CSS Domain
还没有人认领这个 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 内容生成。
描述
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
- 主要语言
- C++
- 星标
- 563
- 派生
- 144
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 14
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/android 的其他 Issue
-
难度 5/5 一周以上 新手友好度 38/100
NativeScript/android#2039 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
NativeScript/android#2024 ·
-
难度 5/5 一周以上 新手友好度 20/100
NativeScript/android#2020 ·
-
难度 5/5 一周以上 新手友好度 42/100
NativeScript/android#2019 ·
-
难度 4/5 3-5 天 新手友好度 55/100
NativeScript/android#1986 ·
查看 NativeScript/android 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 92/100
autowarefoundation/autoware_universe#13413 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
automated-analysis bug memory-safety
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
gazebosim/gz-sensors#662 · 1 条评论 ·