Improvements for use with ShadowRoot and Websites with white text #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello there,
With your recent commit 523519f you already made a big step to make this tool compatible with shadow roots and it works like a charm with polymer. But the element that is highlighted won't be highlighted correctly 馃槈
Screenshot of the described behaviour:
While inspecting the way the overlay works I also noticed that Websites that use white text will head into problems when using this tool:
So I tried another way of creating an overlay with a cutout for a element. This PR contains some changes in the css so that the overlay div won't be needed anymore. These changes would make driver.js compatible for use with shadow doms and independent of text colors in the highlighted elements.
As I didn't want to dive in deeper into the internal workings of the code the overlay div is still created but doesn't serve any purpose anymore.
Some "after"-Screenshots:
I think that this is an easier way of doing things which also enhances compatiblity for different projects. I hope that you will think the same!
Kind regards
Fabian