NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
532 stars 135 forks source link

Chrome DevTools CSS Domain #745

Open petekanev opened 7 years ago

petekanev commented 7 years ago

Implement the CSSAgent, part of the Chrome Debugging Protocol, inside Chrome DevTools.

Features:

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:

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

petekanev commented 7 years ago

Inspecting computed Styles for the selected node (Elements tab) will be available immediately with the 3.1.0 release!

Inline matches, Style matches, and Inherited Styles release - TBA.

zbarbuto commented 6 years ago

Are further improvements to styles inspection still on the roadmap?