How to preserve parent mark which the same as current mark

The mark defines as below

parseDOM: [
    {
      tag: '[style]',
      consuming: false,
    },
  ],

When it parses a DOM tree which like:

<span style="color: red;"><span style="background: gray;">Hello World</span></span>

got

<span style="background: gray;">Hello World</span>

I know there is a “style” property in “parseDOM”, but I don’t want to dedine marks for each style properties(color, background, font-size etc)

Is there a way to preserve parent mark(style=“color: red;”)

Or I need to pass the styles to children manully(Cause in “getAttrs” I can mutate the DOM tree)

Hey guys! I’m solve this problem by “pass styles to children”. HAPPY :grinning: :grinning: :grinning: