With this change "display: contents" ancestors are not considered as insertion point for inline nodes similar to how we already ignore them for non-inline nodes. Fixes https://github.com/SerenityOS/serenity/issues/22396