]> source.dussan.org Git - jquery.git/commit
CSS: Don't read styles.position in the width/height cssHook unless necessary
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 8 Oct 2018 16:25:15 +0000 (18:25 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Oct 2018 16:25:15 +0000 (18:25 +0200)
commit354f6036f251a3ce9b24cd7b228b4c7a79001520
tree065a83e9c535a56e675e03b7fcb637c6fcd876da
parentdae5f3ce3d2df27873d01f0d9682f6a91ad66b87
CSS: Don't read styles.position in the width/height cssHook unless necessary

Current width/height cssHook reads the computed position style even if not
necessary as the browser passes the scrollboxSize support test. That has been
changed.

This commit also makes the scrollboxSize support test in line with all others
(i.e. only return true or false) and changes the variable name in the hook
to make the code clearer.

Fixes gh-4185
Closes gh-4187
src/css.js
src/css/support.js
test/unit/support.js