How safe is direct DOM modification

I would like to implement a custom drag and drop plugin. Basically I will apply inline css transforms to some blocks so that they would “shift” when the dragged block is moved around. How safe would a direct manipulation of inline css of blocks be ?

My current mental model is that this would be safe as long as blocks conform to the parseDom spec of the schema. Is this right ?

If what you’re doing can handle ProseMirror ‘normalizing’ (possibly recreating) the DOM you’re changing to conform to what it expects the nodes to look like, it should work.