Fix box shadow bug with resizing elements in IE9 and IE10.(#14173)

Change-Id: I513340db4123c40bba0832f8af77ec5e725c24e6