lrsjng / jquery-fracs

jQuery plugin to determine the visible fractions of HTML elements.

Home Page:https://larsjung.de/jquery-fracs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elements with `display: none` raise `TypeError: Object #<HTMLDivElement> has no method 'intersection'`

barneycarroll opened this issue · comments

fracs fails violently when elements don't have ostensible layout metrics

a call to fracs() for a non visible element should better return null

Brilliant! Might I had how useful this is as an injected script with DOM-centric Cucumber tests? Thanks!

@barneycarroll oh, never thought about that use case.. but makes sense