Is behavior of `display:none` supported

Hi,

I noticed that currently if there is a mark or custom node that is styled as display: none it behaves just like I’d wish it to:

  • It is not displayed.
  • Cursor just skips it.
  • If display:none is removed than it appears as necessary.

I am wondering if I can rely on this in long term or if merely a coincidence and something that can change at any point.

Yes, DOM styling is generally supported insofar as browsers do the right thing for it (i.e. if you apply styles that confuse the browser and make the editing experience painful, that’s on you). Display: none should work fine.