diff --git a/kumascript/macros/page.ejs b/kumascript/macros/page.ejs
deleted file mode 100644
index e88539a05a6c..000000000000
--- a/kumascript/macros/page.ejs
+++ /dev/null
@@ -1,27 +0,0 @@
-<%
-// Inserts the contents of a page into the document. This process is often
-// referred to as "transclusion."
-//
-// Parameters:
-//
-// $0 - URL of page to insert. Example: "/en-US/docs". Do not use https://etc.
-// $1 - (optional) section name of a section to transclude (rather than the whole page)
-// Can be a section title like "Quick Start", can also be an id attribute
-// like this:
-// Example: {{Page("/en-US/docs/MyPage", "grabme")}}
-// $2 - (optional) revision number to pull from. UNSUPPORTED.
-// $3 - (optional) whether or not to show the first heading. Defaults to false.
-// $4 - (optional) the heading level to use as the top heading level; others
-// are adjusted to match.
-
-// Throw a MacroDeprecatedError flaw
-// Can be removed when its usage translated-content is down to 0
-mdn.deprecated();
-
-var url = web.spacesToUnderscores($0);
-
-if ($1) {
- $1 = web.spacesToUnderscores($1).toLowerCase();
-}
-%>
-<%- await wiki.page(url, $1, $2, $3, $4) %>
diff --git a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html b/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html
deleted file mode 100644
index 1c9b765f63a6..000000000000
--- a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.html
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: A Test Introduction to CSS Flexbox Layout
-slug: Learn/CSS/CSS_layout/Introduction/Flex
-tags:
- - Examples
- - Beginner
- - CSS
- - Layout
- - Learn
- - flexbox
----
-
Flexbox
-
-
{{ Page("Learn/CSS/CSS_layout/Introduction/Flex/Stuff", "Flex_1") }}
-
{{ EmbedLiveSample('Flex_1', '300', '200') }}
-
{{ Page("Learn/CSS/CSS_layout/Introduction/Flex/Stuff", "Flex_2") }}
>
-
{{ EmbedLiveSample('Flex_2', '300', '200') }}
diff --git a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html b/testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html
deleted file mode 100644
index dd87b74c8c64..000000000000
--- a/testing/content/files/en-us/learn/css/css_layout/introduction/flex/stuff/index.html
+++ /dev/null
@@ -1,69 +0,0 @@
----
-title: Stuff for CSS Flex layout
-slug: Learn/CSS/CSS_layout/Introduction/Flex/Stuff
-tags:
- - Stuff
- - Beginner
- - CSS
- - Introduction
- - Layout
- - Learn
- - flexbox
----
-
-
-
Flexbox Example 1
-
-
* {box-sizing: border-box;}
-
-.wrapper > div {
- border-radius: 5px;
- background-color: rgb(207,232,220);
- padding: 1em;
-}
-
-
-
-
.wrapper {
- display: flex;
-}
-
-
-
<div class="wrapper">
- <div class="box1">One</div>
- <div class="box2">Two</div>
- <div class="box3">Three</div>
-</div>
-
-
-
-
-
-
Flexbox Example 2
-
-
* {box-sizing: border-box;}
-
- .wrapper > div {
- border-radius: 5px;
- background-color: rgb(207,232,220);
- padding: 1em;
- }
-
-
-
-
.wrapper {
- display: flex;
-}
-
-.wrapper > div {
- flex: 1;
-}
-
-
-
<div class="wrapper">
- <div class="box1">One</div>
- <div class="box2">Two</div>
- <div class="box3">Three</div>
-</div>
-
-
diff --git a/testing/content/files/en-us/learn/css/css_layout/introduction/index.html b/testing/content/files/en-us/learn/css/css_layout/introduction/index.html
index cc189398374d..84f139c1a5d1 100644
--- a/testing/content/files/en-us/learn/css/css_layout/introduction/index.html
+++ b/testing/content/files/en-us/learn/css/css_layout/introduction/index.html
@@ -23,12 +23,7 @@
and some from other pages.
-->
-
Flexbox
-
{{ EmbedLiveSample('Flex_1', '300', '200', "", "Learn/CSS/CSS_layout/Introduction/Flex") }}
-
{{ EmbedLiveSample('Flex_2', '300', '200', "", "Learn/CSS/CSS_layout/Introduction/Flex") }}
-
Grid Layout
-
{{ EmbedLiveSample('Grid_1', '300', '330', "", "Learn/CSS/CSS_layout/Introduction/Grid") }}
Grid example 2
diff --git a/testing/tests/headless.index.spec.ts b/testing/tests/headless.index.spec.ts
index 5f3a631911ea..256b86821fea 100644
--- a/testing/tests/headless.index.spec.ts
+++ b/testing/tests/headless.index.spec.ts
@@ -44,80 +44,6 @@ test.describe("Basic viewing of functional pages", () => {
).toBeTruthy();
});
- test("open the /en-US/docs/Learn/CSS/CSS_layout/Introduction page", async ({
- page,
- }) => {
- const uri = "/en-US/docs/Learn/CSS/CSS_layout/Introduction";
- const flexSample1Uri = liveSampleURL(`${uri}/Flex`, "flex_1", true);
- const flexSample2Uri = liveSampleURL(`${uri}/Flex`, "flex_2", true);
- const gridSample1Uri = liveSampleURL(`${uri}/Grid`, "grid_1", true);
- const gridSample2Uri = liveSampleURL(uri, "grid_2");
- await page.goto(testURL(uri));
- expect(await page.title()).toContain("A Test Introduction to CSS layout");
- expect(await page.innerText("h1")).toBe(
- "A Test Introduction to CSS layout"
- );
- expect(await page.innerText("#flexbox")).toBe("Flexbox");
- expect(
- await page.isVisible(`iframe.sample-code-frame[src$="${flexSample1Uri}"]`)
- ).toBeTruthy();
- expect(
- await page.isVisible(`iframe.sample-code-frame[src$="${flexSample2Uri}"]`)
- ).toBeTruthy();
- expect(await page.innerText("#grid_layout")).toBe("Grid Layout");
- expect(
- await page.isVisible(`iframe.sample-code-frame[src$="${gridSample1Uri}"]`)
- ).toBeTruthy();
- expect(
- await page.innerText("#grid_2 pre.css.notranslate:not(.hidden)")
- ).toMatch(/\.wrapper\s*\{\s*display:\s*grid;/);
- expect(
- await page.isVisible(`iframe.sample-code-frame[src$="${gridSample2Uri}"]`)
- ).toBeTruthy();
-
- // Ensure that the legacy live-sample pages were built.
- for (const sampleUri of [flexSample1Uri, flexSample2Uri, gridSample1Uri]) {
- await page.goto(testURL(sampleUri));
- expect(await page.innerText("body > div.wrapper > div.box1")).toBe("One");
- expect(await page.innerText("body > div.wrapper > div.box2")).toBe("Two");
- expect(await page.innerText("body > div.wrapper > div.box3")).toBe(
- "Three"
- );
- }
- });
-
- test("open the /en-US/docs/Learn/CSS/CSS_layout/Introduction/Flex page", async ({
- page,
- }) => {
- const uri = "/en-US/docs/Learn/CSS/CSS_layout/Introduction/Flex";
- const flexSample1Uri = liveSampleURL(uri, "flex_1");
- const flexSample2Uri = liveSampleURL(uri, "flex_2");
- await page.goto(testURL(uri));
- expect(await page.title()).toContain(
- "A Test Introduction to CSS Flexbox Layout"
- );
- expect(await page.innerText("h1")).toBe(
- "A Test Introduction to CSS Flexbox Layout"
- );
- expect(await page.innerText("#flexbox")).toBe("Flexbox");
-
- expect(
- await page.innerText("#flex_1 pre.css.notranslate:not(.hidden)")
- ).toMatch(/\.wrapper\s*\{\s*display:\s*flex;\s*\}/);
- expect(
- await page.isVisible(`iframe.sample-code-frame[src$="${flexSample1Uri}"]`)
- ).toBeTruthy();
-
- expect(
- await page.innerText("#flex_2 pre.css.notranslate:not(.hidden)")
- ).toMatch(
- /\.wrapper {\s*display: flex;\s*\}\s*\.wrapper > div \{\s*flex: 1;\s*\}/
- );
- expect(
- await page.isVisible(`iframe.sample-code-frame[src$="${flexSample2Uri}"]`)
- ).toBeTruthy();
- });
-
test("open the /en-US/docs/Learn/CSS/CSS_layout/Introduction/Grid page", async ({
page,
}) => {
diff --git a/testing/tests/index.test.ts b/testing/tests/index.test.ts
index 9eded792f560..1f12e5beb57e 100644
--- a/testing/tests/index.test.ts
+++ b/testing/tests/index.test.ts
@@ -908,27 +908,6 @@ test("check built flaws for /en-us/learn/css/css_layout/introduction/grid page",
expect(doc.flaws).toEqual({});
});
-test("check built flaws for /en-us/learn/css/css_layout/introduction/flex page", () => {
- expect(fs.existsSync(buildRoot)).toBeTruthy();
- const builtFolder = path.join(
- buildRoot,
- "en-us",
- "docs",
- "learn",
- "css",
- "css_layout",
- "introduction",
- "flex"
- );
- expect(fs.existsSync(builtFolder)).toBeTruthy();
-
- const htmlFile = path.join(builtFolder, "index.html");
- const html = fs.readFileSync(htmlFile, "utf-8");
- const $ = cheerio.load(html);
- // The css_layout/introduction/flex page has 2 iframes
- expect($('iframe[loading="lazy"]')).toHaveLength(2);
-});
-
test("detect bad_bcd_queries flaws", () => {
const builtFolder = path.join(
buildRoot,