The Tur wrote that for this reason our sages, of blessed memory, permitted in Berakhot (Berakhot 19b) to skip over the coffins of graves to go out toward a king, because this is a rabbinic impurity. And they permitted it because of the honor of a king, for since most coffins have within them an opening of a tefach—there is no Torah impurity in this. And this was specifically in their days when they would bury in a manner that there was an opening of a tefach at the exit of the grave. But nowadays when it is entirely closed, even if it has (even if it has) an airspace of a tefach—everything opposite it is impure from the Torah. Thus far his words. And this is the approach of the Tosafot and the Rosh in several places, that even though "crushed impurity" breaks through and rises only in less than a tefach, nevertheless a closed grave, even if there is an airspace of an opening of a tefach, nevertheless the impurity breaks through and rises. But the approach of Rashi there and in Chullin 71a and in Nazir 53b, and so is the approach of the Ra'avad and the Ramban and the Rashba, is that whenever there is an opening of a tefach—we do not say it breaks through and rises in any place. (And the Pnei Yehoshua already explained this in Berakhot there, in Tosafot starting with the words "the majority," see there.)
כתב הטור דמטעם זה התירו חכמינו ז"ל בברכות (ברכות יט ב) לדלג על ארונות של הקברים לצאת לקראת מלך, משום דזהו טומאה דרבנן. והתירו משום כבוד מלך, דכיון דרוב ארונות יש בהם פותח טפח – אין בזה טומאה דאורייתא. וזהו דווקא בימיהם שהיו קוברין בענין שיש ביציאת הקבר פותח טפח. אבל האידנא שכולו סתום, אפילו יש בו (אפילו יש בו) אויר טפח – כל כנגדו טמא מן התורה. עד כאן לשונו. וזהו שיטת התוספות והרא"ש בכמה מקומות, דאף על גב דטומאה רצוצה בוקעת ועולה אינה אלא בפחות מטפח, מכל מקום קבר סתום אף שיש אויר פותח טפח, מכל מקום טומאה בוקעת ועולה. אבל שיטת רש"י שם ובחולין עא א ובנזיר נג ב, וכן הוא שיטת הראב"ד והרמב"ן והרשב"א, דכל שיש פותח טפח – לא אמרינן בוקעת ועולה בשום מקום. (וכבר ביאר בזה הפ"י בברכות שם, בתוספות ד"ה רוב, עיין שם.)