Improve r136754 by hardening checks of expected values for background-position.