Add style.display check for inline-block when determining element visibility

When checking for visibility, style.display is checked to match
“inline”.  Added a check for “inline-block”.
Merge pull request #855 from tohann/master

Add style.display check for inline-block when determining element visibility