[Webkit-unassigned] [Bug 154082] Web Inspector: In the styles sidebar, Option-clicking on --css-variable should jump to its definition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 13 00:12:05 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154082

--- Comment #2 from Devin Rousso <dcrousso+webkit at gmail.com> ---
Created attachment 271274
  --> https://bugs.webkit.org/attachment.cgi?id=271274&action=review
[WIP] Patch

So I was playing around with this for a bit, and I ran into something of a roadblock.  It looks like CSSStyleDeclarations are only created for each instance of DOMNodeStyles, which means that CSS variables declared on a different tag won't have a style associated with them until the node is selected on which they are applied (look at UserInterface/Views/Variables.css for an example).  I only spent a little time on this, so I may be missing an extremely obvious case for how to work around this, but what I have written so far works if the node which matches the rule containing the CSS variable is selected (thus creating the DOMNodeStyles) before trying to Option-click a CSS variable.  If anyone else wants to take over, feel free as I am not sure how much time I have in the next few weeks (horray midterms >.> )

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160213/c1b411c8/attachment.html>


More information about the webkit-unassigned mailing list