Now works when a query class will reverse the result of the query. #2
ahume merged 3 commits into ahume:master from joshje:master
Jan 25, 2012
Commits on Jan 25, 2012
…ass is applied. For example, an element whose width is usually 50% but becomes 100% when the max-width selector query returns true. This would immediately invalidate the result, resulting in a flicker. The solution is to test whilst the class is removed and then add the class back if required.
In order to avoid a scenario where the removal of the class would momentarily reveal alternative styling, tests for width are run against an invisible clone of the element.