Fix shadow cols size calculation, and CSS ShadowDOM boundary