logo of Screenshot for Web
Free toolsPlaygroundDocsBlogPricing
LoginDashboard

Company

HomeFeaturesPricingBlogFacts

Screenshot Tools

Website ScreenshotsFull Page ScreenshotsScrolling ScreenshotsWebsite HistoryPDF Generation APIScreenshot API

Legal

Terms of UsePrivacy PolicyCookie PolicyCopyrightSecurity

Support

FAQSupportContact UsAPI Status
screen shot for web logo

No clutter. No distractions. Just clean, full-page screenshots with smart customization.

© 2026 HYDRANODE LTD. All rights reserved.

Screenshot for Web is operated by HYDRANODE LTD, a company registered in England and Wales, company number 15672526. Registered office: 124 City Road, London, London, England, EC1V 2NX.

FacebookInstagramLinkedInYouTube
  1. Home
  2. Blog
  3. News

Chrome 158 drops XSLT: what it does to screenshots of sitemaps and feeds

We captured eight live sitemaps in Chrome 156 and Chromium 158. Styled pages turn into raw XML, a red warning bar is already in captures, and two fixes work.

Screenshot for Web·November 9, 2026·7 min read

Sources

  1. Chrome for Developers: Removing XSLT for a more secure browser (timeline and alternatives)
  2. Chrome Platform Status: the XSLT removal entry linked from Chrome's console message
  3. Playwright 1.65.0 release notes (bundles Chromium 158.0.8127.18)
  4. Chromium 156.0.8078.47: testing/variations/README.md (which builds use the field trial testing config)
  5. Chromium 156.0.8078.47: fieldtrial_testing_config.json (the XSLTSpecialTrial study)
  6. xslt-polyfill by Mason Freed (README, usage and limitations)
  7. Playwright 1.65.0 source: screenshotter.ts (full-page size waits for document.body)

How this article was made

Researched and drafted with AI assistance from the sources listed. On 9 November 2026 we captured four local test files and eight live sitemaps on an Apple Silicon Mac with Google Chrome 156.0.8078.80, Chrome for Testing 156.0.8078.47 (Puppeteer 25.16.0), Chromium 158.0.8127.18, Firefox 159.0 and WebKit 27.2 (Playwright 1.65.0), and xslt-polyfill 1.0.36. Every code sample was run the same day and its output is shown. Our free screenshot tool did not respond during this run, so the article makes no claims about it.

Capture any page without ads, banners or chat widgets, free and without an account.

Try the free tools

More articles

  • News

    Puppeteer 25.19 stops print and dark mode emulation from cancelling each other

    Before Puppeteer 25.19.0, emulateMediaType and emulateMediaFeatures reset each other, losing print or dark mode. Our tests, the fix and a workaround.

    November 26, 2026
  • Research

    Chrome DevTools' full-size screenshot: where it fails on long and lazy pages

    We ran DevTools' full-size screenshot on six long pages: it stops at 16,384 pixels and misses content that appears on scroll. Here's why, and the fixes that worked.

    November 8, 2026
  • Research

    Running headless Chrome yourself vs a screenshot API: memory and time for 100 captures

    We ran 100 real-site captures six ways on a 2-CPU, 4 GB container and measured time, CPU, memory and failures, to show what self-hosting really asks of a server.

    November 7, 2026

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 versionDateWhat happens
15225 Aug 2026Origin trial opens for sites that need more time
15817 Nov 2026XSLT stops working on Stable, except for origin trial and enterprise policy users
17617 Aug 2027The 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:

SitemapStylesheetChrome 156Chromium 158Chromium 158 + polyfill
github.blogXSL (Yoast SEO)StyledRaw XMLStyled, shifted
kinsta.comXSL (Yoast SEO)StyledRaw XMLStyled, shifted
wpengine.comXSL (Yoast SEO)StyledRaw XMLStyled, shifted
css-tricks.comXSLStyledRaw XMLStyled, identical
rankmath.comXSLStyledRaw XMLStyled, identical
aioseo.comXSLStyledRaw XMLStyled, 28 px differ
elegantthemes.com/blogXSL (WordPress core)StyledRaw XMLStyled, shifted
yoast.comCSSStyledStyled, no changeNo 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.

A test sitemap captured in Chrome 156: a red bar at the top says the site uses XSLT, which is being removed from this browser very soon, with a "Never show this warning" checkbox. It covers the page heading; the styled table of four URLs shows below it.

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',                       // turn native XSLT back on
    '--disable-features=GenerateXSLTWarningBanner', // and drop the red warning bar
  ],
});
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:

// Capture an XSLT-styled XML page in a browser without native XSLT,
// by running the xslt-polyfill in the page after it loads.
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); // installs window.XSLTProcessor and the helpers
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:

Top of the elegantthemes.com blog sitemap in two captures. Left, Chrome 156 with native XSLT: heading, three lines of text and the URL table start higher. Right, Chromium 158 with the polyfill: the same content, about 13 pixels lower, with wider line 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

  1. Find out which Chrome your captures use: browser.version() in Playwright, await browser.version() in Puppeteer. Playwright 1.65 means Chromium 158 already.
  2. If you capture sitemaps or feeds with Google-branded Chrome 156, check your images for the red bar now.
  3. For captures that must keep the styled look, use the polyfill. Keep the launch switch only as a short-term fallback.
  4. When comparing old and new captures of XML pages, allow for the small shift between quirks and standards mode.