Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not using the background color of the inspected element #9

Open
rafaelcaricio opened this issue Sep 3, 2014 · 1 comment
Open
Labels

Comments

@rafaelcaricio
Copy link
Owner

The gradient examples should use the background color of the inspected element.

@gilmoreorless
Copy link
Contributor

Ideally it would show whichever background colour is shown under the element, even if it's not directly on the element itself (e.g. if the element's parent has a background colour set).

This is not really possible to get 100% correct (due to positioning, images, transparencies, etc.), but a technique I've used on a previous project that gets most of the way is detailed at https://shoehornwithteeth.com/ramblings/2014/02/compute-a-dom-elements-effective-background-colour/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants