Fix order of padding compensation

- `padding-bottom` values were being zeroed out before grabbing the
   value, so it was always returning '0px'
- Fixed this and added a test