gregtatum / z-index-devtool

A UCOSP project for building a Z-Index Devtool.
Mozilla Public License 2.0
31 stars 7 forks source link

Element Picker Implementation #74

Closed w-jiang closed 8 years ago

w-jiang commented 8 years ago

Implementation of selecting an element in the dom and having it highlight and display in the context tree.

** NOTE: So I implemented a INCLUDE_HTML_TAGS const in the stacking-context/index.js which will list which element types get added to the stacking context. However, in our HTML examples, we have <span><strong>text</strong></span> which makes the stacking context have a span node and a strong node (but they are visually the same thing). I don't know how to squish span and strong into one node (or if I even should) (or if its even possible to differentiate a case where the span has its own properties)