fix indentation in snippet; add shadow_dom dependency