]> source.dussan.org Git - jquery.git/commit
CSS: fix :visible/:hidden selectors for inline element w/ content
authorTimmy Willison <timmywillisn@gmail.com>
Fri, 8 May 2015 22:27:54 +0000 (15:27 -0700)
committerTimmy Willison <timmywillisn@gmail.com>
Tue, 12 May 2015 13:14:16 +0000 (09:14 -0400)
commit79bcb291324167ab2d844027d0cdc6300613d010
treefd4380cbc061c86247a9acca910fa66d8eaf8023
parent7855a1a7d8a5c959d4ef2f951b4eb971908ac96f
CSS: fix :visible/:hidden selectors for inline element w/ content

- Reverts behavior from 10399dd, which we never released.
  BR and inline elements are considered visible.
- The possibility of dropping .offsetWidth and .offsetHeight
  was debunked by this perf:
  http://jsperf.com/visible-hidden-and-getclientrects

Fixes gh-2227
Close gh-2281
src/css/hiddenVisibleSelectors.js
test/unit/css.js