Fix #9987 by explicitly setting box-shadow and outline properties to `none`.