Added platform flags for shadow DOM