Skip to content

Chrome plugin to help with debugging z-index issues.

License

Notifications You must be signed in to change notification settings

vsapsai/z-index-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

z-index CSS property looks deceptively simple. To show an element on top of others you just add z-index: 1000; in CSS and expect it to be sufficient. But reality turns out to be more complex than that. Ordering of elements depends on other properties and on z-index value of other elements in DOM hierarchy. On sufficiently big pages this interaction can get quite complex pretty quickly. The goal of this plugin it to help with understanding z-index and its effects. Currently plugin looks the following way

z-index debugging tool

Development

Some of development relies on running simple HTTP server in project directory. The simplest way to do so is to run python -m SimpleHTTPServer 8008 from corresponding directory.

Running tests

You can run tests by going to http://localhost:8008/test/ in browser after simple HTTP server is started.

Quick dev

Reloading plugin in browser takes some time and after reloading doesn't always work so to speed up development you can go to http://localhost:8008/quick-dev/ in browser after simple HTTP server is started. It imitates plugin behavior by showing in one <iframe> some HTML page and in another <iframe> z-index plugin panel.

Test in browser

To test plugin in Chrome you can go to chrome://extensions/ and Load unpacked extension… In opened dialog select src/ directory, i.e. directory that contains manifest.json.

Useful resources

About

Chrome plugin to help with debugging z-index issues.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published