Chrome 158 stops running XSLT, the language that turns an XML file into a styled HTML page. Google's timeline puts the switch-off on Chrome Stable on 17 November 2026. For anyone who captures web pages, this changes one class of page: XML sitemaps, RSS feeds and other XML documents that name an XSL stylesheet. Captured in Chrome 158, they no longer look like a styled table. They come out as a raw XML tree.
We captured eight live sitemaps and four test files in Chrome 156 and Chromium 158, and in Firefox and WebKit for comparison. This article shows what changes in the image, three surprises we hit along the way, and two fixes that we ran and that worked.
What Chrome is removing, and when
Google's deprecation page lists two things going away: the XSLTProcessor class that scripts use, and the processing instruction <?xml-stylesheet type="text/xsl" ...?> that tells a browser to transform an XML file before showing it. The same instruction with type="text/css" stays supported.
The dates that matter, from that page:
| Chrome version | Date | What happens |
|---|
| 152 | 25 Aug 2026 | Origin trial opens for sites that need more time |
| 158 | 17 Nov 2026 | XSLT stops working on Stable, except for origin trial and enterprise policy users |
| 176 | 17 Aug 2027 | The origin trial and the XSLTEnabled enterprise policy stop working |
You may already have Chrome 158 without knowing it. Playwright 1.65.0, released on 5 November, bundles Chromium 158.0.8127.18, so a routine npm update moves your captures to the new behaviour before most desktop users get it.
What a capture looks like now
The image at the top of this article is GitHub's blog sitemap, captured at 1280 by 800 pixels. In Chrome 156 its Yoast SEO stylesheet turns the file into a page with a heading, a short explanation and a table of 17 sitemaps. In Chromium 158 the same URL shows Chrome's built-in XML viewer: one line saying the document uses XSLT, "which the browser does not support", and then the raw tags.
We ran the same comparison on eight live sitemaps:
| Sitemap | Stylesheet | Chrome 156 | Chromium 158 | Chromium 158 + polyfill |
|---|
| github.blog | XSL (Yoast SEO) | Styled | Raw XML | Styled, shifted |
| kinsta.com | XSL (Yoast SEO) | Styled | Raw XML | Styled, shifted |
| wpengine.com | XSL (Yoast SEO) | Styled | Raw XML | Styled, shifted |
| css-tricks.com | XSL | Styled | Raw XML | Styled, identical |
| rankmath.com | XSL | Styled | Raw XML | Styled, identical |
| aioseo.com | XSL | Styled | Raw XML | Styled, 28 px differ |
| elegantthemes.com/blog | XSL (WordPress core) | Styled | Raw XML | Styled, shifted |
| yoast.com | CSS | Styled | Styled, no change | No change |
Seven of the eight still use XSL, and all seven lose their styling in Chromium 158. The odd one out is Yoast's own site: its sitemap already uses a CSS stylesheet, and its Chrome 156 and Chromium 158 captures were pixel-identical. The polyfill column is explained further down.
Two smaller things changed as well. Chromium 158 logs "XSLTProcessor and XSLT Processing Instructions have been removed in this browser" to the console, which is a handy marker in capture logs. And a page that builds part of itself with XSLTProcessor in a script does not fall back to raw XML: our test page threw "XSLTProcessor is not defined", so the table it builds never appeared.
Surprise 1: Chrome 156 already puts a red bar in your captures
Google-branded Chrome 156.0.8078.80, the stable release installed on our test Mac, still runs XSLT. But it adds a warning bar across the top of every page that uses it. The bar is part of the page, so it lands in screenshots and covers whatever was there, in our test page the heading and the summary line.

The bar comes from a Chrome feature called GenerateXSLTWarningBanner. Launching Chrome with --disable-features=GenerateXSLTWarningBanner removed it in every build we tried. Another feature name in the binary, XSLTDeprecationBannerSuppressed, did not remove it when enabled. Chromium 158 with XSLT switched back on shows the same bar unless you turn it off.
Surprise 2: Puppeteer's Chrome 156 has no XSLT either
Puppeteer 25.16.0, the current release, downloads Chrome for Testing 156.0.8078.47. In its default headless mode, the sitemaps came out as raw XML, exactly as in Chromium 158, and the console said a "special early trial of complete removal" was under way. The same binary started by Playwright transformed them normally, and so did Puppeteer's headless: 'shell' mode.
The cause is in Chromium's source. Chrome for Testing builds apply a field trial testing config, which Google-branded Chrome does not use by default, according to the README next to it. In the 156.0.8078.47 tree that config holds a study called XSLTSpecialTrial whose only experiment disables the XSLT feature. Playwright launches Chromium with --disable-field-trial-config; Puppeteer does not. Passing that switch yourself brings XSLT back in Puppeteer's Chrome 156:
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch({ args: ['--disable-field-trial-config'] });
const page = await browser.newPage();
await page.goto('https://github.blog/sitemap_index.xml');
console.log(await browser.version(), await page.evaluate(() => typeof XSLTProcessor), await page.title());
await browser.close();
Output:
Chrome/156.0.8078.47 function XML Sitemap
The switch turns off every other experiment in that config too, so treat it as a fix for this case, not a default.
Fix 1: turn XSLT back on with a launch switch
In Chromium 158.0.8127.18 the feature is still compiled in, just disabled. Both --enable-features=XSLT and --enable-blink-features=XSLT brought it back in Chromium's new headless mode, and --enable-features=XSLT also worked in Playwright's default headless shell, which the sample below uses. Add the banner switch from above and the capture matches Chrome 156:
import { chromium } from 'playwright';
const browser = await chromium.launch({
args: [
'--enable-features=XSLT',
'--disable-features=GenerateXSLTWarningBanner',
],
});
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
await page.goto('https://github.blog/sitemap_index.xml');
console.log(browser.version(), await page.title(), await page.locator('tr').count(), 'rows');
await page.screenshot({ path: 'sitemap.png' });
await browser.close();
Output:
158.0.8127.18 XML Sitemap 18 rows
This is a stopgap. Google documents the origin trial and the enterprise policy as the supported ways to keep XSLT until Chrome 176, and says nothing about the feature switch, so expect it to stop working in some later version.
Fix 2: run the XSLT polyfill in the page
The longer-lasting fix is the polyfill Google's page points to, xslt-polyfill, which implements XSLT 1.0 in WebAssembly. Its README describes adding a script tag to the XML file, which only a site owner can do. For a capture you don't control the file, so we loaded the polyfill into the page after it opened and asked it to transform the current URL:
import fs from 'node:fs';
import { createRequire } from 'node:module';
import puppeteer from 'puppeteer';
const require = createRequire(import.meta.url);
const polyfill = fs.readFileSync(require.resolve('xslt-polyfill/xslt-polyfill.min.js'), 'utf8');
const [url, out, executablePath] = process.argv.slice(2);
const browser = await puppeteer.launch({ executablePath });
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });
await page.goto(url, { waitUntil: 'load' });
console.log('native XSLTProcessor:', await page.evaluate(() => typeof XSLTProcessor));
await page.evaluate(polyfill);
await page.evaluate(() => window.loadXmlUrlWithXsltWhenReady(location.href));
await page.waitForFunction(() => document.querySelector('table'), { timeout: 15000 });
console.log('title:', await page.title(), '| rows:', await page.$$eval('tr', (r) => r.length));
await page.screenshot({ path: out });
console.log('saved', out, `(${await browser.version()})`);
await browser.close();
Run against WordPress core's sitemap with the Chromium 158 binary that Playwright installs:
native XSLTProcessor: undefined
title: XML Sitemap | rows: 11
saved out/polyfill-et.png (Chrome/158.0.8127.18)
It rendered all seven XSL sitemaps. Three captures matched Chrome 156 exactly or to within 28 pixels. The other four had the same content moved down, by 13 pixels at the heading on elegantthemes.com, with slightly looser spacing:

The polyfill's README explains why: its output stays in an XML document, which always renders in standards mode, while a native transform without a doctype renders in quirks mode. We checked three of the sitemaps and that was the case: document.compatMode was BackCompat with native XSLT and CSS1Compat with the polyfill. If you diff today's captures against ones made before the switch, expect this small shift.
Surprise 3: Playwright full-page captures of CSS-styled XML hang
Sites moving off XSLT may switch to a CSS stylesheet, as Yoast's own sitemap has. We tried a small XML file styled that way, and every Playwright fullPage capture of it timed out: in Chrome 156, Chromium 158, Firefox 159 and WebKit 27.2. A viewport capture of the same page in Chromium 158 took 62 ms, and Puppeteer's full-page capture worked in both Chrome versions.
Playwright's source shows why. Before a full-page capture it waits until the page has a document.body to measure, and an XML document styled with CSS has no HTML body, so the wait runs into the timeout. Firefox showed the same hang on a plain XML file with no stylesheet, because it displays that without an HTML wrapper. If you capture XML in Playwright, take a viewport capture of these pages or set a short timeout and fall back.
Firefox and WebKit, for now
Firefox 159.0 and WebKit 27.2, as bundled with Playwright 1.65.0, still transformed every XSL file we gave them. Both logged a warning that XSLT will be removed, so the polyfill route is the one to build on whichever engine you capture with.
What to do this week
- Find out which Chrome your captures use:
browser.version() in Playwright, await browser.version() in Puppeteer. Playwright 1.65 means Chromium 158 already.
- If you capture sitemaps or feeds with Google-branded Chrome 156, check your images for the red bar now.
- For captures that must keep the styled look, use the polyfill. Keep the launch switch only as a short-term fallback.
- When comparing old and new captures of XML pages, allow for the small shift between quirks and standards mode.