November 25, 2026

Mario Sanchez Prada: Igalia and WebKit: status update and plans (2026)

Igalia WebKit

Two years ago I wrote a long post summarizing Igalia’s work on WebKit, based on my presentation at the WebKit Contributors Meeting, and I closed the post saying that I might be writing another post in 12 months. Well, that didn’t happen, but here I am again :-)

Fast-forward to today: a bit over a month ago, I attended the WebKit Contributors Meeting 2026 in Cupertino, where once again I presented an overview of what we at Igalia did in WebKit over the past 12 months, and what we are planning to do next. The session was not recorded, so this post is a more accessible version of that presentation.

Igalia logoWebKit logo

Igalia and WebKit, in a nutshell

In case you’re new to this: we at Igalia are the maintainers of the two Linux-based WebKit ports: WebKitGTK, aimed at the Linux desktop and GTK applications (e.g. GNOME Web), and WPE, mainly focused on embedded devices. On top of that, we also contribute to the port-agnostic parts of WebKit, such as Web standards and JavaScriptCore, and this work is spread across several teams at Igalia (WebKit, Web Platform, Compilers, Multimedia…).

As for the embedded side of things, WPE runs on a surprising variety of devices nowadays: set-top boxes and TVs, smart home appliances, digital signage, car infotainment systems, audio systems… and sometimes even devices without a screen at all!

Examples of WPE-based products: a smart TV, a tablet, a smart fridge, a car infotainment system, a digital signage totem and a set-top box

This variety of devices and users (port users, platform providers, Web developers and end users) is what drives our strategic goals, which haven’t changed much since last time:

  • Compatibility and interoperability: a homogeneous Web platform, reliable across engines.
  • Performance on embedded devices: efficient on small hardware, flexible for specific hardware.
  • Quality assurance and security: green bots, timely releases and security advisories.
  • Tools, documentation and collaboration: better tooling, ports alignment and working together upstream.

The numbers

The usual disclaimer first: the number of commits is not a great metric, so please bear that in mind. Still, I think it gives a reasonable idea of the general trends, so here’s what we got for the period between October 1st 2025 and October 1st 2026:

Donut charts of the commits to WebKit between October 2025 and October 2026: Apple 81.25%, Igalia 13.11%, Bun 2.28% and Other 3.35%; excluding Apple, Igalia accounts for ~70% of the commits

  • Igalia landed 2831 commits, ~53% more than last year (1854), while the total number of commits grew ~33% (from 16293 to 21591).
  • We are still the 2nd biggest contributor after Apple, with 13.11% of all the commits.
  • If we leave Apple out of the picture, ~70% of the remaining commits came from Igalia.
  • 46 different Igalians committed to WebKit in this period.

Another interesting change this year is that Bun (Oven) is now the 3rd biggest committer, mostly with work on JSC, while Sony and Red Hat are now part of the “Other” category.

Main areas of work

As in previous years, there was a lot going on, so I’ve grouped our work into these areas:

For each of them, I’ll go through the highlights of the past 12 months, followed by what we’re planning to do next.

Web Platform

We worked on a wide range of Web Platform features in this cycle, such as:

  • MathML: implemented and improved CSS features (e.g. math-depth), and added support for the <a> element. With this, MathML Core support is now on par with other engines.
  • Close Watcher API: updated to align with the latest specification changes, and shipped in stable together with the new <dialog closedby> attribute.
  • CSS: scroll-axis-lock and scroll-state() queries (behind a flag), line-clamp, max-lines and block-ellipsis aligned with the spec, and scrollbar-color support for the Linux ports.
  • WebXR on Linux, based on OpenXR: implemented the Hit Testing, Layers and Hand Input modules (see Sergio’s blog post for more details).
  • Atomic move DOM API (moveBefore()) and Compression Dictionary Transport, both in progress behind a runtime flag.
  • Other: fixes to align Trusted Types with the specification, more work on porting the WebExtensions code from Objective-C++ to C++ so it can be exposed on Linux, shipped the :open pseudo-class and ToggleEvent.source, a new aamtest test type in WPT (see Manuel’s blog post), and the Storage and File System APIs on the Linux ports.

Next steps

On the MathML side, we want to enable the new mathvariant behavior and the MathML Core features by default. We also plan to finish moveBefore(), scroll-state() queries and scroll-axis-lock so that they can be enabled, and to complete line-clamp so that it passes all the WPT tests. Compression Dictionary Transport should be enabled by default as well, once Apple ports are supported.

As for WebXR, the plan is to implement the Plane Detection and Anchors modules.

Graphics

Skia logo

This was a big year on the graphics front, starting with the fact that Cairo is gone: Skia is now the only 2D rendering backend for the Linux ports, with 2.54 being the first release without Cairo.

On top of that:

  • New Skia-based compositor replacing TextureMapper, enabled by default since 2.54. It brought better damage tracking (only the damaged region is recomposited now, crucial for embedded), rendering fixes for 3D transforms and backdrop-filter, blend modes and faster filters. Carlos and Niko wrote about it in their blogs (here and here).
  • Skia painting performance: 2D canvas operations are now recorded and replayed in batches, many small image uploads are turned into one thanks to a GPU texture atlas, and painting workers no longer use GL thanks to Deferred Display Lists.
  • Frame scheduling is now driven by RunLoop observers, like in Apple’s ports.
  • Async scrolling improved for wheel events, and now also supports touch events.
  • Zero-copy GPU buffers (dma-buf/GBM): more robust memory-mapped buffers (e.g. no more hangs on v3d), and support for Vivante super-tiled formats.
  • Layer-Based SVG Engine (LBSE): a big push in this cycle, creating layers only when needed (less memory) and bringing it on par with the legacy engine in MotionMark’s Suits test, plus many correctness fixes. Check out Niko’s posts on conditional layers and paint order segments for the details. He also recently wrote an amazingly detailed blog post about the same content he presented at the WKCM: “Making LBSE performant”.
  • Other: fixed the performance of the WebGL implementation in the GPUProcess, improved font rendering with Skia, a non-composited mode for devices with weak or no GPU, dynamic MSAA and Display-P3 support for accelerated 2D canvas, and some (experimental) groundwork for Vulkan.

All this work is reflected in the performance numbers. For instance, these are the MotionMark results on a 64-bit Raspberry Pi 4, compared to July 2024, when we started tracking them in our performance dashboard:

Bar chart of MotionMark 1.3 scores on a 64-bit Raspberry Pi 4, relative to July 2024: the overall score is 2.5 times higher in October 2025 and 3.2 times higher in October 2026

The overall score grew ~29% in the last year (from 639.41 to 824.51), and it’s now ~3.2× higher than in July 2024. The biggest gains in the past year came from the Skia painting work mentioned above, with Canvas lines (+91%), Design (+74%), Leaves (+40%) and Canvas arcs (+32%) leading the way.

Next steps

We want to bring the composition-related WPT failures down to zero and remove TextureMapper completely. Beyond that, we’re planning to switch to Skia Graphite, to isolate the composition state from rendering to allow for more parallelism, and to support zero-copy offscreen canvas in workers.

We’ll also keep moving parts of the graphics pipeline to the GPUProcess, try Skia’s GPU backend with Vulkan, and close the remaining gap between LBSE and the current engine.

Multimedia

  • Switched from GstWebRTC to LibWebRTC in the Linux ports, plugging GStreamer-based hardware encoders and decoders into it. The GstWebRTC backend was removed from the main branch in July 2026, and WebRTC is disabled in 2.54, to be enabled by default again in 2.56.
  • Player suspension in pages with many media elements: hidden, muted or off-viewport players are now suspended, which frees up decoders.
  • Other: MSE and EME improvements (e.g. changeType(), H.264 edit lists in MP4), hardware video decoding and encoding on Qualcomm platforms, and the usual maintenance and bug fixing.

Next steps

On the WebRTC side, we’ll work on AV1 encoding, mDNS support and fixes for MediaStream track cloning, and LibWebRTC will be enabled by default in 2.56.

Like with the graphics pipeline, we also want to run media playback in the GPUProcess (as Apple ports do), and to make quality changes smoother in MSE video playback by switching quality without flushing the pipeline (so, no more stuttering).

JavaScriptCore

  • 32-bit support: we added BBQ/OMG optimizations for the last release with a 32-bit JIT (2.52), and then removed the ARMv7 JIT tiers, WebAssembly and big-endian support, among other things. WebKitGTK and WPE 2.54+ still work on 32-bit, but only with CLoop, which is slow.
  • Memory improvements for long-running apps, which helps with embedded use cases where WPE is not restarted for months.
  • Temporal API aligned with the Stage 4 spec (22 PRs landed), with full support for PlainMonthDay and PlainYearMonth. We also completed ZonedDateTime and relative time computations, although that work was superseded by the move to a port of the temporal_rs library, for which our extensive tests of Temporal edge cases served as a safety net. More details in this blog post.
  • Other: profiling and debugging tooling (e.g. samply, sysprof integration), PGO builds with Yocto, better Linux integration (e.g. time zone change notifications) and some small wins on JetStream.

Next steps

We’ll keep working on memory and performance improvements for embedded (feedback from WPE users is critical here), as well as on better tooling to find memory leaks between JavaScript and native code in long-running apps.

WPEPlatform API

WPE logo

The new WPEPlatform API, which I already talked about two years ago as “the new WPE API”, is now stable, and has been enabled by default since WPE 2.54. This means that the legacy API (i.e. libwpe) will be deprecated soon, so embedders should start migrating now.

Before declaring it stable, we added the last bits of API that were still missing (e.g. toplevels, clipboard, accessibility settings, gamepad rumble…) and validated its design with several out-of-tree platforms, such as WPE Android, wpe-platform-gtk and the Wig browser. We also fixed many issues with touch, gestures, scrolling and memory safety, and completed the documentation, including guides on writing a launcher or a platform implementation, and on migrating from libwpe. You can find it all at wpewebkit.org/reference.

Next steps

The plan is to deprecate the legacy API, since 2.56 will always enable WPEPlatform, and to close the remaining gaps (e.g. a replacement for the video plane extension, input methods and cursors). We also want to add more API tests, finish the documentation and help embedders migrate from the old API.

WebKit on Android

WPE Android's MiniBrowser showing igalia.com on a phone

WebKit on Android made a lot of progress this year as well:

  • Migrated to WPEPlatform: libwpe, WPEBackend-android and the legacy API have been removed.
  • Native integration with Android graphics (e.g. zero-copy AHardwareBuffer backing store, AChoreographer for vsync).
  • New Java API modeled after android.webkit.WebView, to which the MiniBrowser, MediaPlayer, WebDriver and the tests were ported.
  • Testing and QA: our own external CI, running the W3C and WebDriver tests, and gardening after every (roughly weekly) rebase on WebKit’s trunk.
  • WebXR on Android, via OpenXR, opening the door to more XR devices.

Interestingly enough, testing on Android devices also exposed issues in the Skia compositor and in scrolling, whose fixes benefit all the Linux ports. Still, keep in mind that this is an ongoing effort, and the support is still experimental.

Next steps

We want to close the remaining platform gaps, such as input methods, permission dialogs, scrolling and AHardwareBuffer readback for snapshots, and to add more APIs (e.g. permissions, screenshots, SSL errors, media and capture callbacks…).

We’ll also keep improving testing and get WebKit on Android into WebKit’s own CI.

Swift in the Linux ports

Swift logo

As Apple is adopting Swift (with C++ interoperability) in WebKit, the Linux ports need to be able to build it too. On this front, we enabled Clang by default in the CI (with one GCC builder remaining), enabled building with Swift in the CI, added the Swift toolchain to the WebKit Container SDK (switching to our own build of it to fit our needs, e.g. a working lldb), fixed several build issues, and ran some early experiments to cross-build it with Yocto.

Next steps

The goal is to enable Swift by default in the next stable release of the Linux ports (2.56, expected in March 2027), and to support the Swift toolchain in the meta-webkit Yocto layer as well.

Quality assurance

The main highlight here is that the bots are green again 🟢, after a lot of gardening work on x86_64 and ARM64, and a cleanup of stale expectations for flaky tests. This was a lot of work as well, and it’s probably better explained with a picture: the number of unexpected regressions per run went from over 100 at the end of 2025 to single digits:

Line chart of unexpected regressions per run over time, for the GTK and WPE bots, going from over 100 at the end of 2025 to single digits for all bots by autumn 2026

Note that this didn’t happen at the expense of test coverage, as the number of passing tests kept growing at the same time, both in Release and Debug builds of the Linux ports:

Line chart of passing tests over time for the GTK and WPE bots, growing steadily from around 77,000-79,000 in October 2025 to 86,000-89,000 in October 2026

On top of that, API test results are now uploaded to results.webkit.org (with the right version and architecture fields), we improved the CI infrastructure (hybrid cloud and bare metal, centralized monitoring, 3 new ARM64 WPE testers, and the WPE performance dashboard), and we improved the management of stable branches, with a better backporting workflow, EWS testing and ARM64 post-commit bots.

Next steps

Besides keeping the bots green, we plan to detect flaky tests in EWS in a smarter way (using the history from results.webkit.org), to add Safer C++ post-commit bots and a WebDriver EWS for the Linux ports, and to set up PGO-enabled performance bots.

On top of that, we’ll work on adapting the bots to the changes coming in 2.56, and add hardware-accelerated post-commit bots to test GPU-dependent code paths.

Security

  • We continued with the same release cadence: feature releases every 6 months in March and September, and minor and development releases when needed (e.g. security fixes).
  • We published 9 WebKit Security Advisories (WSA) covering 99 CVEs, mostly on the same day as the release or the next one. You can find them at webkitgtk.org/security.html and wpewebkit.org/security.
  • ~66% fewer WTF_ALLOW_UNSAFE_BUFFER_USAGE in port-specific code, more smart pointers and safer string types, and -Wthread-safety enabled.

Next steps

We want to make the WebProcess sandboxing stricter by moving more parts of the graphics and multimedia pipelines to the GPUProcess, and to replace libgcrypt with OpenSSL (bug 216201). And, of course, we’ll keep doing all of the above: sticking to the release cadence, publishing timely advisories, reducing unsafe buffer usage…

Development tools

Besides development itself, we also paid special attention to the developer experience, with improvements in several areas:

  • Sysprof: new webkit-sysprof tool to analyze traces in an automated way, and correct durations for overlapping and recursive marks.
  • WebKit Container SDK: ephemeral containers for the host-side wrappers and the CI, and regular rebases (e.g. Ubuntu 26.04, GStreamer 1.28, the Swift-enabled toolchain).
  • WebDriver (classic and BiDi): stability work in the driver, the browser and the test bots (fewer crashes, hangs and failures), plus other improvements such as pointer-action attributes and closed shadow roots.
  • Build system: fewer stale-cache problems, GCC build fixes, and a new BUILD_WEBKIT_PRE_SCRIPT hook (e.g. to set up a remote ccache).

Final thoughts

Once again, this turned out to be a long post, which I guess is a good sign: in summary, this has been quite a busy year for WebKit here at Igalia, with some long-running efforts reaching important milestones (e.g. Skia-only rendering, the new compositor, a stable WPEPlatform API, green bots…), and quite a lot of exciting work ahead. But if you prefer a more concise version, you can always check the slides of the presentation.

Before finishing, though, I’d like to acknowledge once again that none of this would be possible without the work of the many Igalians involved across different teams, nor without the support of our customers who fund this work. And of course special thanks to the rest of the WebKit community, who also collaborated and made this possible through reviews, feedback, discussions and fixes across ports.

Thank you, everyone!

November 25, 2026 10:00 AM

November 24, 2026

Igalia WebKit Team: WebKit Igalia Periodical #87

Igalia WebKit

Update on what happened in WebKit in the week from November 17 to November 24.

This week includes reporting on stable release which include important security fixes; but also work on SVG features, multimedia, an SDK update, and WPEPlatform gaining support for throttling invisible views.

Cross-Port 🐱

Implemented support for the download attribute on SVG <a> elements.

Multimedia 🎥

GStreamer-based multimedia support for WebKit, including (but not limited to) playback, capture, WebAudio, WebCodecs, and WebRTC.

Solved decryptor hangs on platforms using WesterosSink by preventively destroying the source element when tearing down the MSE pipeline.

Graphics 🖼️

Fixed SVG text layout so that it measures each run of text as a whole with the same shaping code used for painting, instead of measuring every character on its own, which means kerning and ligatures are now taken into account. Text boxes, getBBox(), text-anchor, dx/x/rotate positioning, textLength and textPath were all too large or misplaced before, and now line up with the painted text.

Reimplemented the SVG text DOM APIs, such as getComputedTextLength(), on top of the text layout result instead of measuring the text again character by character, so their answers now agree with the rendered text. Characters are numbered in logical order as SVG 2 typographic characters, so the APIs now work for right-to-left, mixed and vertical text and take letter and word spacing into account.

WPE WebKit 📟

WPE Platform API 🧩

New, modern platform API that supersedes usage of libwpe and WPE backends.

WPEPlatform now suspends CSS animations and throttles DOM timers for all hidden views.

Releases 📦️

WebKitGTK 2.54.3 and WPE WebKit 2.54.3 have been released, including a number of important fixes for security issues, and therefore it is strongly recommended to update. An accompanying security advisory, WSA-2026-0007 (GTK, WPE) has been published. Additionally, these releases include improvements to input handling, better WebAudio performance, improved subprocess launching, support for GStreamer 1.28, and rendering fixes.

Infrastructure 🏗️

The WebKit Container SDK updated the Swift toolchain to version 6.4.2.

That’s all for this week!

By Igalia WebKit Team at November 24, 2026 04:26 PM

November 18, 2026

Global Privacy Control (GPC) WebKit API

Surfin’ Safari

As of iOS, iPadOS, visionOS, and macOS 27, there is now a WebKit API to enable Global Privacy Control (GPC), an emerging web standard. As a developer using WebKit APIs like WKWebView, or WebPage for SwiftUI, you can add your own user setting to control it.

The specification as of November 10, 2026, says:

“Global Privacy Control is designed to allow users to express a preference to opt out of sharing and cross-context targeted advertising”

According to the California Office of the Attorney General’s webpage for the California Consumer Privacy Act (CCPA) as of November 10, 2026:

“This landmark law secures new privacy rights for California consumers, including: (…) The right to opt-out of the sale or sharing of their personal information including via the GPC”

API

There is a new WKWebpagePreferences property, globalPrivacyControlEnabled. Setting it to YES on the preferences object handed back from the navigation-policy delegate opts that navigation into GPC. This applies to the whole document tree produced by the navigation. Once enabled, both navigator.globalPrivacyControl and the Sec-GPC: 1 request header are active for the main frame, its subframes, and their subresources.

The Swift WebPage API exposes the same capability through a WebPage.NavigationPreferences property, isGlobalPrivacyControlEnabled.

Apple Developer Documentation Links

Example Usage

Swift (WKWebView)

func webView(
        _ webView: WKWebView,
        decidePolicyFor navigationAction: WKNavigationAction,
        preferences: WKWebpagePreferences
    ) async -> (WKNavigationActionPolicy, WKWebpagePreferences) {
        preferences.globalPrivacyControlEnabled = userPrefersGlobalPrivacyControl
        return (.allow, preferences)
}

Swift (WebPage)

func decidePolicy(
        for action: WebPage.NavigationAction,
        preferences: inout WebPage.NavigationPreferences
    ) async -> WKNavigationActionPolicy {
        preferences.isGlobalPrivacyControlEnabled = userPrefersGlobalPrivacyControl
        return .allow
}

Objective-C

- (void)webView:(WKWebView *)webView
        decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
        preferences:(WKWebpagePreferences *)preferences
        decisionHandler:(void (^)(WKNavigationActionPolicy, WKWebpagePreferences *))decisionHandler
{
    preferences.globalPrivacyControlEnabled = self.userPrefersGlobalPrivacyControl;
    decisionHandler(WKNavigationActionPolicyAllow, preferences);
}

November 18, 2026 11:25 PM

Release Notes for Safari Technology Preview 257

Surfin’ Safari

Safari Technology Preview Release 257 is now available for download for macOS Golden Gate and macOS Tahoe. If you already have Safari Technology Preview installed, you can update it in System Settings under General → Software Update.

This release includes WebKit changes between: 324654@main…326096@main.

Animations

Resolved Issues

  • Fixed content overlapping a running accelerated filter animation (such as a blur) being painted below the animated element. (325784@main) (190763952)
  • Fixed an issue where a view transition kept running with a stale ::view-transition-new() when the new element became hidden by content-visibility: hidden; the transition is now skipped. (325900@main) (191543407)
  • Fixed an issue where a rendering update was not scheduled after changing an animation’s timeline to a ViewTimeline, which could prevent the animation from updating. (325449@main) (191570099)
  • Fixed an issue where backdrop-filter blur did not animate correctly when threaded animations were enabled. (325591@main) (191605067)

CSS

Resolved Issues

  • Fixed ::first-letter and ::first-line to allow only the properties the CSS Pseudo-Elements specification permits, made both pseudo-elements animatable, and fixed getComputedStyle() for them on non-block elements. (325393@main) (100561733)
  • Fixed insertRule() not working when inserting @scope rules. (325468@main) (142005371)
  • Fixed named style container queries on :host not applying to slotted elements. (325470@main) (167244007)
  • Fixed fixed table layout ignoring the border and padding of percentage-width cells. (325373@main) (179489436)
  • Fixed vertical-align: top and vertical-align: bottom on the last child of a nested inline box so that following content is no longer included in its aligned subtree. (324989@main) (189071684)
  • Fixed an ancestor’s overflow clip ignoring corner-shape changes and clipping square corners as rounded. (324753@main) (189340250)
  • Fixed overflow-wrap: anywhere not treating the boundary between adjacent white-space: nowrap inline elements as a soft wrap opportunity. (325882@main) (190264355)
  • Fixed forgiving selector list recovery splitting on commas inside blocks of an invalid selector. (325466@main) (190298284)
  • Fixed the max-content width of a multi-line column flex container to be its widest item rather than the sum of its lines. (324662@main) (190313974)
  • Fixed resolving the definite height of a flex item with an aspect-ratio in a column flexbox. (325691@main) (190464363)
  • Fixed an issue where text in a closed <details> element with a display: grid ::details-content kept its fallback font widths after a web font loaded. (325819@main) (190574679)
  • Fixed a flex container’s intrinsic width growing each time it was computed when it used a percentage gap. (324665@main) (190776762)
  • Fixed a flex-flow: column wrap flex container keeping a stale max-content width after its height changed. (324706@main) (190780038)
  • Fixed a column-flow grid with auto-fill rows keeping a stale max-content width after its height changed. (324711@main) (190784633)
  • Fixed the baseline of an inline-block containing a block with overflow: hidden inside an inline box. (324661@main) (190786587)
  • Fixed out-of-flow boxes in a grid container ignoring the gutters of collapsed auto-fit tracks. (324960@main) (191002910)
  • Fixed an out-of-flow flex item with align-self: last baseline being placed at the cross-start edge instead of the cross-end edge. (324873@main) (191117031)
  • Fixed text-box-trim on inline boxes trimmed to cap, ex or alphabetic being offset in vertical writing modes. (324974@main) (191117213)
  • Fixed flex containers with distributed align-content space leaving the last line up to 1/64 of a pixel short of the end edge. (325040@main) (191118046)
  • Fixed flex items with auto margins on the main axis ending up to 1/64 of a pixel short of the end edge of the flex container. (325109@main) (191118159)
  • Fixed flex items distributed with justify-content space values ending up to 1/64 of a pixel short of the end edge of the flex container. (324975@main) (191118729)
  • Fixed flexible items overflowing the flex container by up to 1/64 of a pixel because each item rounded its share of the free space separately. (324987@main) (191128611)
  • Fixed an issue where the inline content of a fixed-width block could report stale min-content and max-content sizes. (325059@main) (191215004)
  • Fixed an issue where a flex item with max-width could shrink below its max-width while its siblings stayed too wide. (325332@main) (191225991)
  • Fixed text-box-trim incorrectly trimming the line-over side of inline boxes in vertical-lr writing mode when using trim-start. (325139@main) (191239706)
  • Fixed text-box-trim so that trimming at the start propagates through the border and padding of a block container that sets text-box-trim. (325206@main) (191254988)
  • Fixed an issue where the overline of a trimmed inline box with text-box-trim was not drawn at the trimmed edge. (325187@main) (191255274)
  • Fixed a table with min-width and borders or padding overflowing its shrink-to-fit container. (325368@main) (191255444)
  • Fixed min-width and max-width being ignored on MathML elements. (325249@main) (191258079)
  • Fixed the selection highlight on an ellipsis in the first line being sized and colored using the ::first-line style. (325151@main) (191296114)
  • Fixed a stretched image in a narrow flex container not shrinking below its natural width. (325274@main) (191301942)
  • Fixed printing to lay out page content at 96 CSS pixels per inch instead of 90, matching the CSS specification. (325364@main) (191312592)
  • Fixed a min-content or max-content max-width incorrectly capping the minimum width transferred through aspect-ratio. (325240@main) (191330680)
  • Fixed a table’s aspect-ratio not transferring its min-height to its intrinsic width contributions. (325241@main) (191331239)
  • Fixed text-overflow: ellipsis hiding more of the first line than needed when ::first-line sets a larger font size. (325279@main) (191352930)
  • Fixed a multi-column flex item being baseline aligned by the wrong column. (325367@main) (191399721)
  • Fixed line-clamp counting an outside list marker as a line, which clamped list items one line too early. (325385@main) (191419440)
  • Fixed text-overflow not applying to a line-clamp block ellipsis that overflows the line. (325356@main) (191466391)
  • Fixed a table with aspect-ratio being as tall as its aspect ratio makes it plus its rows. (325774@main) (191485863)
  • Fixed conic-gradient() color stops breaking when max() with percentages is used. (325849@main) (191498204)
  • Fixed changing widows or orphans not triggering layout. (325425@main) (191514148)
  • Fixed box-decoration-break: clone not painting a full border-image on each fragment of a split inline. (325426@main) (191514468)
  • Fixed a filter on an overflow: hidden rounded element dropping its border when an ancestor also has overflow: hidden and border-radius. (325901@main) (191519236)
  • Fixed line layout for text inside display: contents elements so the line height of the parent box is used, and the text’s font only stretches the line when that line height is normal, matching Firefox. (325558@main) (191578085)
  • Fixed getComputedStyle() so the font-size value includes text zoom again. (325600@main) (191629138)
  • Fixed text-overflow: ellipsis truncating text that runs opposite to the line direction so that it removes whole user-perceived characters instead of splitting surrogate pairs or grapheme clusters. (325687@main) (191760915)
  • Fixed a line-clamp string block ellipsis being painted horizontally in vertical writing modes. (325821@main) (191873016)
  • Fixed text-combine-upright text so innerText, copy, and accessibility return the combined text instead of U+FFFC. (325946@main) (191972461)
  • Fixed cqi units not updating when the padding of a box-sizing: border-box container changes. (325933@main) (191984223)
  • Fixed an issue where upright text in a monospace font with a vertical writing-mode was measured too narrow, causing incorrect line breaking and line clamping. (325951@main) (192081282)
  • Fixed border-image with a fractional image-set() resolution to compute the correct slices instead of truncating the scale factor. (326068@main) (192132215)

Canvas

Resolved Issues

  • Fixed root font relative units in canvas ctx.font resolving against the canvas element instead of the root element. (325391@main) (184337961)
  • Fixed drawing after reset() if the transform was non-invertible. (329203@main) (191171984)
  • Fixed path after canvas transform becomes non-invertible. (329548@main) (191385929)
  • Fixed clipping in drawImage() when the source rect extends outside the source image. (329650@main) (191456271)
  • Fixed globalCompositeOperation for videos, VideoFrames, and gradient/pattern text. (330047@main) (191742230)
  • Fixed an issue where changing a canvas drop shadow caused content to draw fully opaque instead of respecting globalAlpha. (326029@main) (192039068)
  • Fixed an issue where color font glyphs drawn with a shadow in canvas ignored globalAlpha. (326030@main) (192039073)

Editing

Resolved Issues

  • Fixed a line of text not re-wrapping back onto the previous line after text that caused it to wrap was removed. (325384@main) (191399419)

Forms

New Features

  • Added support for rendering <select multiple size="1"> as a dropdown box on macOS. (325870@main) (191933576)
  • Added preview support, off by default, for the enhanced <select> element with the multiple attribute and list box rendering, and for cloning every selected option into selectedcontent elements. (326015@main) (191940389)

Resolved Issues

  • Fixed <input type="file"> activation so that clicking it is accepted with transient user activation, in the same way as showPicker(), which fixes file pickers failing to open on some sites. (325539@main) (190758283)
  • Fixed a <select> whose form state was restored continuing to show the previously selected option. (324821@main) (190877013)
  • Fixed <selectedcontent> elements of a <select> not all being updated when one of them is moved. (324903@main) (191118813)
  • Fixed the baseline alignment of listbox <select> elements to match vertical-align: text-bottom, consistent with other browsers. (324997@main) (191125523)
  • Fixed an issue where removing the first of two forms sharing an ID fired formAssociatedCallback twice on a form-associated custom element that uses the form attribute. (325660@main) (191734804)
  • Fixed an issue where the scroll position of a scrollable <textarea> jumped on the first edit made below the visible area. (325991@main) (191743391)

Images

Resolved Issues

  • Fixed an issue where an image with object-fit: contain left stale pixels from the previous image when its src changed to a smaller image. (325038@main) (190735629)
  • Fixed image-orientation: none being ignored for same-origin images used as repeating backgrounds or border images, and wrongly honored for cross-origin images. (325213@main) (191363848)

JavaScript

Resolved Issues

  • Fixed function calls that spread too many arguments to consistently throw a RangeError. (325701@main) (191778715)
  • Fixed the Array.prototype.flat() error message to state the correct limit of 2^53 – 1. (326008@main) (191983165)

Media

Resolved Issues

  • Fixed audio files served over HTTP with the application/ogg MIME type failing to play on macOS. (325783@main) (40512703)
  • Fixed VideoDecoder closing with an error when decoding VP8 frames that are not shown, such as alternate reference frames. (324769@main) (138819149)
  • Fixed inline videos sometimes showing a black screen after playing while off-screen. (325855@main) (177400156)
  • Fixed muted autoplaying looping WebM video stopping playback at the second loop boundary. (324855@main) (189626414)
  • Fixed an issue where a media element’s readyState did not return to HAVE_METADATA when seeking to an unbuffered position, which caused playback to stall after scrubbing. (325111@main) (190448987)
  • Fixed an issue where a video briefly shrank within the page after exiting fullscreen by clicking in Safari. (325830@main) (190550400)
  • Fixed captions being overlapped by media controls on sites that use video.js. (325540@main) (190832118)
  • Fixed WebCodecs AudioDecoder to return audio channels in Web Audio channel order. (324993@main) (190905240)
  • Fixed WebCodecs VideoEncoder to reject configurations with a zero bitrate in configure() and isConfigSupported(). (324824@main) (191117654)
  • Fixed an issue where WebVTT STYLE block rules from one text track applied to the cues of other tracks, and corrected their cascade order relative to page styles. (325291@main) (191130060)
  • Fixed MIME sniffing of MPEG-1 MP3 files that computed the wrong frame size. (325857@main) (191819608)

Networking

Resolved Issues

  • Fixed relative tls-certificate-binding Link header references being ignored by resolving them against the response URL. (324709@main) (190868689)
  • Fixed JSON documents and web application manifests to always be decoded as UTF-8. (324849@main) (191010594)
  • Fixed Link response headers on subresources (such as CSS, scripts, and fonts) incorrectly triggering rel=preload and rel=preconnect. Only the main resource now does. (325035@main) (191196085)
  • Fixed removing disk cache data not canceling pending cache writes. (325116@main) (191303133)
  • Fixed beacons sent from pagehide being lost when a page is closed and its process shuts down. (325866@main) (191507608)
  • Fixed Cache‘s match() and matchAll() to queue Reporting API Cross-Origin-Resource-Policy violation reports when a cross-origin opaque response is blocked. (325722@main) (191769480)

Performance

Resolved Issues

  • Fixed sluggish, stuttering scrolling on 60Hz Mac displays. (325736@main) (187724904)
  • Fixed slow rendering and laggy scrolling on pages with many gradients affected by Adaptive Dark Mode color filters. (324781@main) (190976194)
  • Fixed high memory usage from elements with will-change that cover a very large area by limiting the compositing layers created for them. (325986@main) (191108775)

Rendering

Resolved Issues

  • Fixed scrollbars in iframes disappearing after switching to another tab and back. (325789@main) (184796310)
  • Fixed the macOS titlebar becoming translucent when revealed during element fullscreen. (324908@main) (186354937)
  • Fixed a position: sticky element jiggling by a pixel or two while scrolling when it is inside a container with overflow-x: clip. (325813@main) (187137709)
  • Fixed text measured with unicode-bidi: bidi-override reusing cached widths from the same text without the override, which could produce incorrect text widths and layout. (325039@main) (189140386)
  • Fixed text with glyphs extending beyond the line box, such as zalgo text, being painted over during repaint. (325354@main) (190149105)
  • Fixed an issue where the text selection highlight was not visible on some pages, such as github.com. (325357@main) (190440739)
  • Fixed viewport units such as vw and vh growing and squishing page content during two-finger zoom on macOS. (324759@main) (190690179)
  • Fixed text selection highlighting being positioned too close to the top of the line instead of covering the text evenly. (325186@main) (190765820)
  • Fixed the PDF viewer’s heads-up display buttons appearing far too small. (325149@main) (190915095)
  • Fixed glyph overflow being added to the wrong sides of a text box’s ink overflow in vertical and horizontal-bt writing modes. (325776@main) (191485780)
  • Fixed an issue where a fixed-position element kept stale size and position after its ancestor stopped being its containing block, such as when transform, filter, or contain: paint was removed. (325610@main) (191609323)

SVG

Resolved Issues

  • Fixed SVG <a>, <g>, and nested <svg> elements not rendering outline, including the default :focus ring. (325259@main) (97642031)
  • Fixed fragment URLs for SVG documents in object, embed, or iframe incorrectly scrolling the page. (324862@main) (186468177)
  • Fixed SVG filters appearing blurry on high-DPI displays when the SVG is drawn as an image. (325456@main) (188890391)
  • Fixed SVG point parsing to reject values with trailing invalid characters after the point. (325447@main) (190341099)
  • Fixed removing or retargeting an active <animateMotion> leaving its previous target, and the target’s <use> instances, displaced. (325015@main) (191010745)
  • Fixed stale pixels when an animated SVG <img> with object-view-box is partially repainted. (325405@main) (191531146)
  • Fixed SVG text so vector-effect: non-scaling-stroke measures stroke width in the same coordinate system as SVG shapes, relative to the outermost <svg>. (325461@main) (191578423)
  • Fixed SVG fonts to honor the font-variant attribute. (325698@main) (191773904)

Scrolling

New Features

  • Scrolling to the edge of the document on macOS is now animated with a spring animation. (325876@main) (191909106)

Security

Resolved Issues

  • Fixed an issue where a fragment-only (same-document) navigation could trigger a page reload when Enhanced Security is enabled. (325769@main) (191208475)

Web API

New Features

  • Added AudioWorklet.port and AudioWorkletGlobalScope.port, allowing a page and its audio worklet to exchange messages without creating a processor node. (325762@main) (161670776)
  • Added support for the WebAuthn cross-device fallback URL extension. (324658@main) (190635008)

Resolved Issues

  • Fixed window.print() waiting for active XMLHttpRequest requests, such as long-polling, to finish; the print dialog now appears after the load event. (325938@main) (35035119)
  • Fixed events not being dispatched to nodes inside a sandboxed iframe. (325977@main) (88820311)
  • Fixed mouse events on macOS sometimes reaching the page out of order, such as mouseup before mousedown, when using an input method like Baidu. (325795@main) (102126328)
  • Fixed an issue where an AudioWorklet thread kept running after its document stopped, causing out-of-memory errors when creating WebAssembly.Memory after repeated reloads. (325251@main) (108873396)
  • Fixed the duration argument of AudioBufferSourceNode.start() being measured against the AudioContext clock instead of the source data when loop is true. (325805@main) (166168368)
  • Fixed Back navigation skipping a valid session history entry that is still traversable through the Navigation API. (325340@main) (186603812)
  • Fixed element.focus() dispatching focusin but not focus while the page is not focused. (325635@main) (189962933)
  • Fixed a MessageChannel whose ports stay within one page permanently ceasing to deliver messages after the Networking process disconnects. (325343@main) (190069996)
  • Fixed the MouseEvent constructor and initMouseEvent() remapping a button value of -2 to 0. (325341@main) (190182026)
  • Fixed an issue where previously buffered audio was heard when resuming an AudioContext after it was suspended. (325183@main) (190634066)
  • Fixed Cache.put() so it replaces the stored request, not only the response, when overwriting an existing entry. (324795@main) (190659952)
  • Fixed an issue where concurrent CacheStorage operations failed with an error on an origin that had no existing cache data. (324794@main) (190660037)
  • Fixed requestIdleCallback dropping the timeout when the callback was already in the list of runnable idle callbacks. (325318@main) (190685362)
  • Fixed an issue where only the first navigation of an iframe was reported in the parent document’s Resource Timing entries. Every navigation initiated by the parent document is now reported. (325284@main) (191225392)
  • Fixed FileSystemWritableFileStream.close() resolving its promise before the file was committed. (325091@main) (191280663)
  • Fixed File System Access operations reporting success when the operation had not actually completed. (325131@main) (191312739)
  • Fixed navigator.credentials.get() dropping OpenID4VP requests when a page also offered an org-iso-mdoc request; all requests are now presented together. (325322@main) (191358037)
  • Fixed the async clipboard API to UTF-8 decode text blobs it writes. (325398@main) (191377836)
  • Fixed an unreferenced AbortSignal.any() signal being garbage collected while its sources could still abort, which left listeners added with it as their signal option from being removed. (325360@main) (191425913)
  • Fixed cloned documents to keep the base URL of the original document, so relative URLs resolve correctly. (325914@main) (191815349)
  • Fixed an issue where going back during a pending cross-site navigation left the back/forward list on the wrong item. (326047@main) (191848075)
  • Fixed an issue where a dedicated worker started from a blob URL that was revoked immediately got a new opaque origin, which prevented it from reading Blob objects or importing other blob URLs. (325843@main) (191852940)
  • Fixed ReportingObserver reports and their bodies to be plain objects, so they can be structured-cloned and posted, and removed their toJSON() methods. (326027@main) (191919096)
  • Fixed AudioBufferSourceNode so that it fires the ended event when it is started with a null buffer. (325902@main) (192021071)
  • Fixed ReportingObserver invoking its callback with no reports after takeRecords() was called. (326014@main) (192066128)
  • Fixed SubtleCrypto.deriveBits() to enforce the range of its length argument, as the specification requires. (326024@main) (192131498)
  • Fixed XPath so that / evaluated from an attribute node selects the document root instead of the attribute. (326066@main) (192142816)

Web Extensions

New Features

  • Added a warning when a manifest V2 extension defines action without browser_action, or a manifest V3 extension defines browser_action without action. (324852@main) (148339024)
  • Added enum types such as cookies.SameSiteStatus, declarativeNetRequest.ResourceType, extension.ViewType, and menus.ContextType to the browser.* namespaces. (324948@main) (191146181)
  • Added a windowId property to runtime.MessageSender. (325024@main) (191158045)
  • Added support for "message_serialization": "structured_clone" in the extension manifest, so messages sent with runtime.sendMessage() can carry values such as ArrayBuffer and Blob between content scripts and the background page. (325948@main) (191800053)

Resolved Issues

  • Fixed tabs.update() allowing web extensions to navigate a tab to javascript: URLs, or to file: URLs when the extension does not have file access. (325101@main) (114831180)
  • Fixed tabs.connect() also connecting to the opener or opened window of the target tab. (325232@main) (140626378)
  • Fixed declarativeNetRequest modifyHeaders rules rejecting custom header names. (325082@main) (148430468)
  • Fixed dom.openOrClosedShadowRoot returning user-agent shadow roots; it now returns only open or closed shadow roots. (324878@main) (160845916)
  • Fixed Content-Security-Policy-Report-Only incorrectly blocking Safari extension scripts from loading. (324793@main) (168472819)
  • Fixed icon_variants so that an icon block containing unknown properties is ignored entirely instead of having only the unknown properties ignored. (324981@main) (169804881)
  • Fixed runtime.lastError not being exposed to content scripts. (324858@main) (176784505)
  • Fixed action.setIcon() with windowId only taking effect after switching tabs. (324800@main) (177792323)
  • Fixed the generated extension background page to declare UTF-8, so non-ASCII characters in JavaScript source files without a byte order mark are decoded correctly. (325533@main) (181818327)
  • Fixed extension action popups not scrolling to the newly focused element when moving focus with the keyboard. (325064@main) (183935725)
  • Fixed excessive memory use in web extensions by registering each event listener only once and delivering runtime and port messages without keeping a copy per listener. (325757@main) (190248545)
  • Fixed incorrect popup size and positioning for extensions when scrollbar-gutter: stable both is used. (326031@main) (190521334)
  • Fixed the declarativeNetRequest quota check for updateDynamicRules and updateSessionRules counting existing rules twice. (325096@main) (190609107)
  • Fixed background.page to take precedence over background.scripts when both are specified and preferred_environment does not decide. (325001@main) (191041367)
  • Fixed an issue where a manifest icons or default_icon value that was not an object was silently ignored instead of reporting an error. (325022@main) (191169296)
  • Fixed an issue where malformed icon_variants values in a manifest were not validated. (325023@main) (191169365)
  • Fixed an issue where icon_variants selection compared sizes in points instead of pixels, which could choose a smaller icon over a larger one on 2x displays. (325021@main) (191169568)
  • Fixed an issue where an extension action popup clipped its scrollbar when scroll bars were set to always show. (325159@main) (191227048)
  • Fixed action.enable(), action.disable(), and action.isEnabled() to each accept either a tab identifier or a details object with tabId or windowId. (325102@main) (191262757)
  • Fixed alarms.create() to reject alarm names longer than 1024 bytes and new alarms once an extension has 500 alarms. (325100@main) (191263640)
  • Fixed action.getPopup() to return a full extension URL instead of the path as it was given. (325107@main) (191274316)
  • Fixed action.setIcon() and action.setPopup() to reject with an error and leave the action unchanged when given a path to a file that does not exist in the extension. (325104@main) (191291358)
  • Fixed resource paths with a query, fragment, or percent-encoding, such as icons/toolbar.png?v=2#x or my%20icon.png, not being found for web extensions created from in-memory resources. (325504@main) (191294631)
  • Fixed Port.disconnect() firing onDisconnect on the port that called it; it now fires only on the other end of the connection. (325256@main) (191316639)
  • Fixed action.setIcon() to resolve and change nothing when called without a known property, and made options dictionaries optional when all of their properties are optional. (325532@main) (191351377)
  • Fixed declarativeNetRequest redirect rules of equal priority from the same extension that only remove query parameters with queryTransform.removeParams so they all apply instead of only the first. (325510@main) (191496188)
  • Fixed icon_variants to prefer an explicit icon size that is large enough before falling back to an any size icon. (326078@main) (192098547)

Web Inspector

Resolved Issues

  • Fixed the SVG preview in the Sources tab being blank when the SVG references a <symbol> from <defs>. (325289@main) (151300634)
  • Fixed “Pause on next statement” stopping in internal scripts, default class constructors, and at the end of blackboxed scripts instead of in the page’s own code. (325681@main) (187630174)
  • Fixed the debugger forgetting a requested pause at the next statement when the page’s global object is cleared. (325342@main) (189444035)
  • Fixed the Layout panel no longer listing grid and flex containers after the page reloads or navigates. (324756@main) (189971660)
  • Fixed an issue where pausing at the next statement stopped at the end of a script that was blackboxed by URL instead of in the following non-blackboxed code. (324999@main) (191157379)
  • Fixed an issue where a pause at the next statement was dropped when a blackboxed script run from the event loop finished, so the debugger did not stop in the page code that followed. (325189@main) (191215871)
  • Fixed a redirected hidden Network.loadResource request leaving a Network row that never finished. (325649@main) (191410214)
  • Fixed the SVG preview being blank when the SVG was preloaded without the fragment it is later used with. (325369@main) (191434510)
  • Fixed URL breakpoints pausing on loads that are hidden from Web Inspector. (325665@main) (191456032)

WebAssembly

Resolved Issues

  • Fixed incorrect results in WebAssembly code that moves v128 values between stack slots in the baseline compiler. (324957@main) (191050549)
  • Fixed the relaxed SIMD dot product with accumulate instruction (i32x4.relaxed_dot_i8x16_i7x16_add_s) returning a wrong result on ARM64 in some cases. (325501@main) (191511930)
  • Fixed a JavaScript Promise Integration (JSPI) stack scan error that could be thrown on valid WebAssembly programs. (325568@main) (191670691)

WebDriver

Resolved Issues

  • Fixed WebDriver navigation commands so they wait for the navigation they started instead of completing on an unrelated load or before the load event is emitted. (325887@main) (188588971)
  • Fixed WebDriver BiDi session.subscribe to validate the userContexts parameter, so an empty array is now rejected. (325657@main) (190409711)
  • Fixed WebDriver BiDi browsingContext.traverseHistory to navigate to the requested history entry and return the correct errors. (325961@main) (190530418)

WebGL

Resolved Issues

  • Fixed a performance regression where calling invalidateFramebuffer() on a texture that had not been written to caused it to be zero-filled on the CPU every frame. (325013@main) (191073603)
  • Fixed WebGL depthRange() with a near value greater than the far value being ignored after the viewport or framebuffer changed. (325562@main) (191381476)

WebGPU

New Features

  • Added support for dual-source blending in WebGPU. (325793@main) (191687145)

Resolved Issues

  • Fixed drawIndexed() drawing nothing for strip topologies with uint16 indices when the index buffer contains the strip restart index 0xFFFF. (325230@main) (191204015)
  • Fixed WGSL for loops rejecting init and update statements whose left-hand side starts with (, *, or &, such as for ((i) = 0; (i) < 5; (i)++). (325020@main) (191204074)
  • Fixed an issue where @builtin(frag_depth) output was lost for a draw replayed from a render bundle after a draw with a different pipeline. (325682@main) (191701772)
  • Fixed importExternalTexture() producing incorrect chroma for hardware-decoded 10-bit AV1 VideoFrame objects. (325858@main) (191740964)
  • Fixed copyBufferToTexture() to handle an omitted rowsPerImage correctly. (325999@main) (191995146)

WebRTC

Resolved Issues

  • Fixed RTCRtpSender.setParameters() to default a missing scaleResolutionDownBy to 1.0 for video encodings. (324659@main) (190945797)
  • Fixed an issue on macOS where starting remote audio tracks with echoCancellation enabled could silence all system audio when the output device was not running at 48 kHz. (325576@main) (191678937)

November 18, 2026 10:31 PM

November 16, 2026

Introducing spatial CSS: A developer preview

Surfin’ Safari

Safari on visionOS 27.3 comes with an important update: a limited feature preview of the proposed spatial CSS API, with an initial focus on working with 3D objects through the <model> element. While it’s a big conceptual jump, spatial CSS itself is made of a lot of small tweaks to existing syntax. Read on for more details, but here’s a list of each of the features covered in the update:

  • Collecting multiple elements inside a spatial: portal
  • transform to move multiple models independently
  • position-anchor to snap models together
  • @environment-map syntax to reuse and manage different lighting,
  • Enabling orbit over the portal scene with portal-action:orbit,
  • Using requestVolumetricScene() to launch a connected volumetric scene.

To enable the features for yourself on Vision Pro, or to check it out in the visionOS Simulator, go to
Settings > Apps > Safari > Advanced > Feature flags > CSS Portals.
You can experience the spatial CSS demo page here. You can also learn more about installing additional simulators from Xcode here.

The big picture

The 3D <model> element, now available in Safari 27 on all platforms, allows you to present intrinsically 3d objects on their own, in their own space. However, the web is at its best when it allows the composition and configuration of content based on author intentions and user context. These context cues can include the device display capabilities, window size, and color theme. These requirements will remain even as we include spatial content — and ideally, authors should be able to use the same kinds of patterns to build for the spatial web.

And spatial content should not just be designed for spatial devices. The last few years have seen a dramatic rise in the number of websites showing 3D content – on phones, tablets and computers as well as headsets. Spatial web standards should support designing for browsers wherever they run.

New web features, classical CSS

By routing functionality for spatial content through declarative CSS, a page can use media queries targeting aspect ratio, color theme and reduced motion to adapt spatially as well. This adds much more flexibility to your website without having to do as much in your JavaScript, and removing the need to keep track of any complicated state.

Even better, the numerical parameters can be animated and transitioned in the same way that any other value can be changed on the page.

visionOS 27.3 offers the first components of spatial CSS in a developer preview, and this article demonstrates how to use them through the case study of a simple set of children’s blocks.

Feature breakdown

spatial: portal

The feature that kicks this all off is the declaration that an element is acting as a portal, through the new spatial:portal syntax. Elements that can contain other elements – think <figure>, <div> – can act as a portal, and will then act as a space that all of the child elements nested inside it share. This preview focuses on model elements, but the specification is written so that this approach should work for all content.

spatial transform:

Once the models are collected inside a shared space, you can then move, rotate, and scale them using their standard transform attribute. This takes the same DOMMatrix class that creates 2D and pseudo-3D transforms in other contexts, but can now act as a true 3D transform to objects inside the portal context.

A blue shape-sorter puzzle board on a white background with four recesses: an octagon, a star, a cross and a triangle. An orange octagon block sits to the left of the board and an orange star block to the right."
A simple scene of shaped blocks and a board to slot them in.
<div class="world" style="spatial:portal;">
  <model id="board" src="board.usdz"></model>
  <model id="octagon" src="octagon.usdz"></model>
  <model id="star" src="star.usdz"></model> 
</div>
<style>
    #octagon { 
        transform:translateX(-50cm);
    }
    #star { 
        transform:translateX(50cm);
    }
</stye>

The code for presenting this scene and setting the blocks off to the sides.

The board and the block objects can be moved and rotated independently — an expanded settings panel shows different values. While a model’s animation timeline could manage single sequence of action, this adds the degrees of freedom required for more sophisticated interaction or configuration.

position-anchor

Fitting 3D objects together can get complicated. We need a way to attach models to specific places on other models — think of putting together pieces of furniture. Model is a void element, which means it means we can’t nest models inside other model elements the same way that other DOM is nested. Instead, we’re borrowing from the CSS concept of position-anchor and adding a way to align and orient objects according to their anchors. position-context: anchor is the way to make it work.

See it in action

The blue shape-sorter board on a light gray background with the orange octagon block fitted into its recess. The star, cross and triangle recesses are still empty, and the orange star block sits loose to the right of the board.
The scene presented earlier with the octagonal block slotted exactly into place.
<div class="world">
    <model id="board" src="board.usdz"></model>
    <model id="octagon" src="octagon.usdz"></model>
    <model id="star" src="star.usdz"></model>
</div>

<style>
    #board {
        anchor-name:--board;
    }
    #octagon {
        position-anchor:--board#octagon-position;
        position-context:anchor;
    }    
    #star {
        display:none;
    }
</style>

The code for using position-anchor to achieve the correct placement for the block.

The board used in the example consists of three separate objects inside the 3D program it was built within: The visible shape of the board itself, and two reference positions — often called “null objects” or “empties” in 3D editors. These correspond to the correct position for each of the shape blocks to slot into when they’re on the board. Here’s the scene and its contents inside Blender:

A screenshot of the Blender 5.3 Beta interface with shapeblocks.blend open. The 3D viewport shows the blue shape-sorter board and the orange octagon and star blocks. The outliner on the right lists block-star, block-octagon, target-octagon, target-star and board, and the timeline is at frame 168.
The default view of the block scene presented inside Blender. Note both the block objects and the target objects in-place on the board.

Rather than copy-pasting values from your 3D editor, or having to guess at the right transform, you can nominate specific anchor points — just like in the 2D equivalent of the feature — to place an object in the right location. These anchor points can be animated, too, making it easier to compose elements even when they’re moving around.

@environment-map

An environment map is the lighting that is reflected off of an object — think of it as the room that an object appears within.

We introduced environment maps as an HTML attribute on the model element, because it was the only element that would be able to use it. Now that there is a broader range of elements that will be able to share environment maps. Taking inspiration from @keyframes for animation, we leverage @environment-map to facilitate this. This preview provides support for 360º HDR images and adds the clarifying syntax to indicate what they are and how to work with them.

See it in action

"The shape-sorter board and both blocks in a dark scene lit from below. The board looks near-black against a murky brown background. Green, purple and orange light glows in the recesses and along the edges of the orange octagon and star blocks.
The scene showing a spooky-colored underlighting effect.
<div class="world spooky">
    <!--... -->
</div>
@environment-map {
    name: "spooky";
    format: equirectangular;
    src: url("night.hdr");
}

.world.spooky {
     environment-map: "spooky";
}

The code for setting up the spooky environment lighting.

portal-action:orbit

One of the main things that users want to do with 3D content is to look around it by rotating the scene in-place. In 3D programs this is often called an ‘orbit’, and spatial CSS enables it with the new portal-action attribute. It may be useful to add more modes in the future like pan-x or pan-y. This mirrors the model element’s stagemode attribute on the HTML element, but by configuring it in CSS it becomes more flexible.

requestVolumetricScene()

In addition to showing a spatial arrangement inside a portal, visionOS has the ability to show these scenes outside of the browser window in what we’re calling a Connected Volumetric Scene. Launch a request from a user action to remove the spatial content from its portal and present it in the user’s space:

launchSpaceButton.addEventListener("click", event=>{
    const world = document.querySelector(".world");
    world.requestVolumetricScene();
});

The code to launch the volumetric scene.
Users can place the volumetric scene anywhere in their space, and the live link between the web page and the volumetric scene will let you update the scene — add or remove objects, or move them based on your needs.

Your feedback is essential

There is a long journey ahead, and a lot more to get to in the proposed spatial CSS specification. While this feature preview is limited to visionOS, we thought it was important to release along with the full specification as an indication of how to approach bringing spatial concepts to the web. Along with the general release of the <model> element on Safari 27, we hope this gives authors enough to think about the opportunities — and requirements — that lie ahead in the spatial web. That’s also why it’s so important for authors to explore the feature preview and tell us about their experience of using it. You can download the visionOS simulator with Xcode. If you don’t already have Xcode, you can download Xcode from the Mac app store.

To share your thoughts on the Spatial CSS feature preview, find us on Mastodon at @jensimmons@front-end.social, @jondavis@mastodon.social, or on X at @zachernuk. Or send a reply on X to @webkit. You can also follow WebKit on LinkedIn. If you run into any issues, we welcome your feedback about WebKit at bugs.webkit.org. Filing issues really does make a difference. Thanks.

November 16, 2026 11:45 PM

Igalia WebKit Team: WebKit Igalia Periodical #86

Igalia WebKit

Update on what happened in WebKit in the week from November 9 to November 16.

The bag of updates this week is composed of improvements to click events generation, improved scale factor and fixed rendering of SVG images, and the introduction of the new ATrace backend for performance analysis on WPE Android.

Cross-Port 🐱

Taps now correctly generate click events when touchmove is prevented, as long as movement stays within the tap threshold.

Graphics 🖼️

Made SVG images use the device scale factor of the document drawing them, instead of always rendering at 1x. On high-DPI displays, resolution media queries inside the image now match the real display, and HTML content in <foreignObject> is now aligned to the display's actual pixels and its CSS filters render at full resolution.

Fixed masks and patterns going stale after their element is scaled or resized in the Layer-Based SVG Engine (LBSE). Their cached images are now kept per element and scale and are dropped when the element's bounds change, so an element painted at several scales (as inside nested patterns) gets a correctly sized image for each scale.

WPE WebKit 📟

WPE Android ↗ 🤖

Adaptation of WPE WebKit targeting the Android operating system.

Added an ATrace backend for performance analysis on WPE Android. Until now the port built with Sysprof capture disabled, so every WTF::tracePoint() and signpost compiled to nothing; now they land in the same systrace/Perfetto timeline as SurfaceFlinger, input dispatch, and the scheduler. The compositor's FPS counter is also computed while ATrace is on. The backend is selected with the new USE_ATRACE_CAPTURE build option, which is on by default when building for Android and replaces Sysprof capture there.

That’s all for this week!

By Igalia WebKit Team at November 16, 2026 07:04 PM

November 13, 2026

Safari on Apple HomeView

Surfin’ Safari

It’s not every day our browser begins a life on a whole new platform. Now, Safari also lives on Apple HomeView, joining Safari on macOS, iOS, iPadOS, and visionOS.

HomeView with a hand reaching out to touch the screen, with a Safari app icon showing in the middle

People interact with HomeView with their voice from across the room, or up close with a tap on the square, 7-inch display. With easy access to the web in Safari, users can quickly look something up, open a link from a friend, cook from a recipe, or much more.

As a web developer, you might be wondering “What do I need to do to support Safari on Apple HomeView?” Most likely, you don’t need to do anything. This is Safari, powered by WebKit. And the web itself is designed to work on any screen, with any kind of input.

However, there might be a few things you can do to make your site shine in Safari on HomeView.

With the new cooking experience, Safari recognizes when users are on a webpage with a recipe, and offers a streamlined view of step-by-step instructions.

The cooking experience in Safari on Apple HomeView. A photo of Butternut Squash Soup fills the screen. Two buttons towards the bottom offer options for seeing ingredients or start cooking.

Safari creates this view from recipe data in the schema.org recipe type in JSON-LD. If you have recipes on your site, and don’t yet support this schema.org type, mark up the recipe details in JSON and add it to the page.

<script type="application/ld+json">
{
    "@context": "[https://schema.org](https://schema.org/)",
    "@type": "Recipe",
    "name": "Perfect Roast Chicken",
    "image": "https://example.com/roast-chicken.jpg",
    "prepTime": "PT15M",
    "cookTime": "PT1H20M",
    "recipeYield": "4 servings",
    "recipeIngredient": [
        "1 whole chicken (4–5 lb)",
        "3 tbsp unsalted butter, softened"
    ],
    "recipeInstructions": [
        { "@type": "HowToStep", "text": "Preheat the oven to 425°F (220°C)." },
        { "@type": "HowToStep", "text": "Rub the butter all over the skin." }
    ]
}
</script>

HomeView also provides rich experiences playing audio and video. To ensure great experiences with video captions, include them as WebVTT files inside track elements.

<video controls>
  <source src="theshow.mp4" type="video/mp4">
  <source src="theshow.webm" type="video/webm">
  <track default
    kind="captions"
    srclang="en"
    label="English"
    src="captions.vtt">
</video>

Sites built on modern best practices work well on HomeView. Sites that hard-code assumptions about what a device is or how people use it can break when a new device arrives. A few of those assumptions are worth checking.

Sometimes sites assume every user clicks or taps, when many people use other input methods instead. On HomeView, voice is a key part of how people use the device. Someone speaking to a page isn’t pointing at a button. They are calling its name. Semantic HTML makes that work, with real buttons, links, and form fields, and a clear label on every control. Accessible content, large tap targets, and flexible layouts help everyone use your site, whether they speak, touch, or both.

Some sites assume an iOS user agent means the device is an iPhone. Yet, Safari on HomeView also reports an iOS user agent. User agent sniffing can result in unintended consequences as technology evolves, so it’s best to avoid it.

  • To find out whether an API is supported, use feature detection instead and test directly for support.
  • Instead of using UA sniffing to present a custom banner encouraging users to download your app, use Smart App Banners. Such a banner might not make sense on HomeView, and you can rely on Safari to figure that out.

You’ll end up with a far more robust website, prepared for whatever the future brings.

Some sites assume a screen is either landscape or portrait, and never square. Some sites assume the viewport is always taller than 600px, while on HomeView it’s shorter. Such assumptions can cause layout problems. Sticky or fixed-position headers and footers might leave almost no room for the main content on a short screen. Modals (newsletter signups, etc.) taller than the viewport might leave users with no way to dismiss them. One quick fix for such modals is layout code like this:

.modal {
  max-height: 90svh;
  overflow-y: auto;
}

If you don’t have HomeView handy, test your site on a phone in landscape orientation, and solve any problems that emerge due to the short height. You can also use Responsive Design Mode in Safari, and set the viewport to 448×364.

Most likely, your website already works great in Safari on HomeView — sitting on someone’s kitchen counter or hung on the wall in their hallway. That’s the promise of the web. Leverage modern best practices to build robust, flexible websites — and your work will reach people in places you might not have imagined.

November 13, 2026 09:00 PM

November 10, 2026

Igalia WebKit Team: WebKit Igalia Periodical #85

Igalia WebKit

Update on what happened in WebKit in the week from November 2 to November 10.

This week it's not all fun and games, yet gamepad support gets some polish with reduced latency and support for analog buttons; WebAudio contexts now support choosing outputs; the old compositor gets removed; and another flurry of small changes make their way to the new SVG rendering engine.

WebKitGTK 🖥️

Fixed incorrect gamepad button mapping in WebKitGTK, where the North and West facing direction buttons were swapped.

Improved gamepad input latency, reducing delays from up to 50ms down to the 10 to 12ms range, and preventing missed quick button presses.

Cross-Port 🐱

Added support for analog gamepad buttons when using libmanette.

Fixed a bug that caused formAssociatedCallback to sometimes fire twice in Safari.

Multimedia 🎥

GStreamer-based multimedia support for WebKit, including (but not limited to) playback, capture, WebAudio, WebCodecs, and WebRTC.

Implemented support for the WebAudio AudioContext.setSinkId() API in the GStreamer multimedia backend.

Graphics 🖼️

Since shipping the new Skia-based compositor enabled by default in September, the team has shipped fixes for a few issues in the 2.54.1 and 2.54.2 releases. The Skia compositor now supports more features than the TextureMapper compositor did, while reducing memory usage and providing better performance.

At this point keeping the TextureMapper code in the source tree did no longer provide any benefit and it was not actively tested, so it was decided to no longer support building TextureMapper to ease maintenance going forward. It has served WebKit well for 16 years.

Fixed a crash in the Layer-Based SVG Engine (LBSE) that happened when a shape filled or stroked with an SVG <pattern> got its renderer before the pattern existed. The pattern's image cache now drops a destroyed shape's entry by itself, and the shape is registered as a client once the pattern appears, so no stale cache entries are left behind.

Fixed the composited bounds of accelerated filter animations, which ignored the blur outsets of the animated filter because animations running on the compositor don't trigger style updates. WebKit now uses the largest outsets across all filter key frames for overlap testing and view transition captures, so a later sibling that only overlaps the blurred area is composited correctly and no longer painted below the animated layer

Made SVG fonts obey the font-variant attribute of <font-face>, so a face now only matches the variants it lists, following CSS 2 font matching. Text with small-caps now uses the glyphs of a small-caps face directly instead of synthesizing scaled-down capitals that these fonts often lack, and normal text no longer depends on the order in which the faces were registered.

WPE WebKit 📟

WPE Platform API 🧩

New, modern platform API that supersedes usage of libwpe and WPE backends.

Fixed named cursor images being drawn away from the actual pointer location when using the built-in WPEPlatform Wayland implementation.

Infrastructure 🏗️

Replaced the frame cycle with composition-aware reporting in webkit-sysprof, the tool that analyzes Sysprof captures from WebKitGTK and WPE, so frames that the ThreadedCompositor produces on its own (such as for accelerated animations) are no longer missed. A new timeline command draws the main thread and the compositor as “swimlanes” with numbered frames, which makes dropped frames much easier to track down.

That’s all for this week!

By Igalia WebKit Team at November 10, 2026 11:04 PM

November 05, 2026

Release Notes for Safari Technology Preview 256

Surfin’ Safari

Safari Technology Preview Release 256 is now available for download for macOS Golden Gate and macOS Tahoe. If you already have Safari Technology Preview installed, you can update it in System Settings under General → Software Update.

This release includes WebKit changes between: 323398@main…324653@main.

Accessibility

Resolved Issues

  • Fixed list marker text generated with the content property not being exposed in the accessibility tree. (323578@main) (189838099)
  • Fixed VoiceOver being unable to reach the content of an iframe nested inside an iframe with role="none" or role="presentation". (323749@main) (189901948)

Animations

Resolved Issues

  • Fixed scroll-driven animations drawing a translate keyframe of none as the element’s own translate value. (323583@main) (189882533)
  • Fixed: Improved performance of scroll-driven animations by avoiding style invalidation on animation updates when timing is unchanged. (324449@main) (190709310)

CSS

New Features

  • Added support for text-combine-upright on ::marker. (323582@main) (189912173)
  • Added support for continue: collapse with line-clamp, which is now set by the line-clamp shorthand. (323734@main) (190023170)
  • Added support for font-palette-mix() on Cocoa platforms, allowing font color palettes to be blended. (324044@main) (190133191)

Resolved Issues

  • Fixed ::highlight() styles not being found past anonymous boxes. (323588@main) (148245032)
  • Fixed text zoom being applied twice to font sizes specified with font-relative units. (324195@main) (188215447)
  • Fixed aspect-ratio interpolation being inverted in vertical writing modes. (323584@main) (188500448)
  • Fixed document.fonts.ready never resolving when an unused @font-face has a failing local() source followed by a url() source. (323883@main) (189243828)
  • Fixed layout not updating inside a nested scroll container after its classic scrollbar disappears when using line-clamp with an absolutely positioned descendant. (324368@main) (189451731)
  • Fixed :dir() matching for a <bdi> element without a dir attribute so it updates when its ancestor’s direction changes. (323439@main) (189472957)
  • Fixed light-dark() inside image-set() incorrectly accepting a bare string as an image URL. (323705@main) (189627071)
  • Fixed CSSStyleSheet.replaceSync() on a detached constructed stylesheet appending rules instead of replacing them, which could also corrupt other stylesheets sharing the same contents. (323736@main) (189634428)
  • Fixed CSSMatrixComponent.toMatrix() returning the component’s internal DOMMatrix for 3D matrices, so mutating the result no longer changes the component. (323948@main) (189653766)
  • Fixed a positioned inline-block after the line-clamp clamp point remaining visible. (323402@main) (189672687)
  • Fixed -webkit-min-device-pixel-ratio and -webkit-max-device-pixel-ratio media features serializing as min--webkit-device-pixel-ratio and max--webkit-device-pixel-ratio. (323731@main) (189687289)
  • Fixed a flex item with aspect-ratio and a calc() height resolving to a zero flex base size. (323464@main) (189753886)
  • Fixed CSSStyleDeclaration.setProperty() to override an existing !important custom property when called without a priority. (324083@main) (189765758)
  • Fixed a table flex item with borders being wider than its content and borders. (323471@main) (189766215)
  • Fixed line-clamp: auto to account for collapsed block-end margins when finding the clamp point. (323468@main) (189767053)
  • Fixed a table flex item with borders or padding and a non-auto min-width being too wide. (323466@main) (189768684)
  • Fixed the grid-template shorthand so empty [] line names before a row’s leading line names no longer overwrite the previous row’s track size. (323665@main) (189769011)
  • Fixed line-clamp: auto to find the clamp point before balancing content. (323481@main) (189774214)
  • Fixed calc() negation of a typed-arithmetic product flipping the sign of every factor. (323577@main) (189779826)
  • Fixed object-fit: none and object-fit: scale-down to size an image without natural dimensions against its content box. (323503@main) (189844957)
  • Fixed the content size suggestion of grid items with a preferred aspect ratio to be clamped correctly in grid layout. (323655@main) (189848571)
  • Fixed: Changed the auto value of the continue property to normal to match the specification. (323557@main) (189893145)
  • Fixed the grid layout engine to compute collapsed tracks for repeat(auto-fit). (323658@main) (189937668)
  • Fixed a regression where word-break: keep-all allowed many incorrect line breaks. (324360@main) (189973862)
  • Fixed the placement of outside list markers in vertical writing modes. (323721@main) (190017212)
  • Fixed grid layout to collapse empty repeat(auto-fit) tracks and their gutters. (323843@main) (190062840)
  • Fixed grid layout to use the transferred size suggestion for the automatic minimum size of grid items. (323855@main) (190065310)
  • Fixed the intrinsic minimum block size of a column flex item being incorrectly clamped by a smaller max-block-size. (323872@main) (190077511)
  • Fixed selectors with mixed-case attribute names failing to match HTML elements in XHTML documents when used with ancestor combinators. (323947@main) (190089102)
  • Fixed CSSUnitValue for container query length units reporting a number type instead of a length type. (323949@main) (190095825)
  • Fixed the linear() easing function rejecting a percentage written before the number in a control point. (323951@main) (190097099)
  • Fixed calc() type inversion overflowing its exponent, which could produce incorrect results. (323873@main) (190099592)
  • Fixed CustomStateSet add() and delete() invalidating style when the set does not change. (323982@main) (190183292)
  • Fixed the CSSCounterStyleRule.name setter not updating the name getter or cssText. (324049@main) (190185460)
  • Fixed a grid item with a non-auto min-block-size overflowing the grid when the grid shrinks and the item’s content wraps. (324127@main) (190192125)
  • Fixed quote marks generated by open-quote and close-quote not taking the ::first-line style. (324380@main) (190252758)
  • Fixed a stretched item in a column-reverse wrapping flex container ignoring its main-axis auto margin. (324398@main) (190272880)
  • Fixed calc-size(auto, size) making an aspect-ratio box wider than its max-content size when a child has a percentage height. (324649@main) (190727077)
  • Fixed an absolutely positioned box inside content after the line-clamp clamp point not being laid out. (324457@main) (190732934)
  • Fixed an orthogonal block-level box inside an inline box incorrectly adding its top and bottom margins to its container’s width. (324652@main) (190767962)

Canvas

New Features

  • Added the lang attribute to CanvasTextDrawingStyles. (324596@main) (143391479)
  • Added support for fontKerning, fontStretch, fontVariantCaps, and textRendering in canvas text drawing styles. (324110@main) (190388702)
  • Added support for the inherit value of the direction attribute in CanvasTextDrawingStyles. (324603@main) (190908024)

Resolved Issues

  • Fixed black pixel artifacts when drawing a Canvas 2D image through WebGL after applying a gradient. (324218@main) (189661903)
  • Fixed drawing a VideoFrame in BGRX format to ignore the alpha component. (323809@main) (189794952)

Forms

Resolved Issues

  • Fixed appearance: base-select option hover styling being clipped when rotated transforms are applied. (323903@main) (171933742)
  • Fixed the date picker not using the correct appearance when automatic dark mode is applied. (324046@main) (188747558)
  • Fixed <selectedcontent> elements so they update at the correct times in an enhanced <select>. (324149@main) (189480559)
  • Fixed deselecting the selected option of a dropdown <select> so it always selects the first option. (323929@main) (190021473)
  • Fixed: Updated the default <select> styles to match upstream changes for better interoperability with other browsers. (324587@main) (190724295)

HTML

Resolved Issues

  • Fixed the HTML parser to treat <search> as a special element, so it closes an open <p> element correctly. (323915@main) (190117661)

Deprecations

  • Removed support for the rightmargin and bottommargin presentational attributes on <body>. (323444@main) (189727708)

Images

New Features

  • Added support for object-fit, object-position, and object-view-box on SVG documents in <embed> and <object>. (323822@main) (190118512)

Resolved Issues

  • Fixed the drag image to match the rendered image when dragging an image. (323399@main) (189759601)
  • Fixed the size of images without natural dimensions, such as SVG images, when they are written to the pasteboard. (323529@main) (189873103)
  • Fixed the placement of an SVG image that specifies only a width when used with object-fit: none or object-fit: scale-down. (323567@main) (189909016)
  • Fixed inconsistent sizing of SVG images that have a width or height of 0. (323884@main) (190171855)
  • Fixed an SVG image with a width or height less than 1 failing to load. (324048@main) (190315280)
  • Fixed an issue where 8-bit grayscale and CMYK images were converted to 16-bit images when drawn, wasting memory. (324389@main) (190488500)
  • Fixed image URLs containing a fragment directive so that only the fragment before the directive is used, such as box in foo.svg#box:~:param(--bg, green). (324650@main) (190961757)

JavaScript

Resolved Issues

  • Fixed Math.sumPrecise returning an incorrect result for -Number.MAX_VALUE. (324530@main) (178356895)
  • Fixed a module worker evaluating its entry script a second time when the worker imports its own URL. (323507@main) (188303176)
  • Fixed GetPrototypeFromConstructor to read prototype before calling GetFunctionRealm, matching the specification. (323408@main) (189773842)
  • Fixed an incorrect optimization in the DFG compiler that could produce wrong results for code using the logical NOT operator (!). (323639@main) (189876762)
  • Fixed an incorrect result in optimized code for the integer conversion used by operations such as Math.trunc() and array index handling. (323624@main) (189876905)
  • Fixed an incorrect optimization in the DFG compiler for right shift operations, which could produce wrong results when the shift count exceeds the 32-bit mask. (323595@main) (189886500)
  • Fixed an issue where calling RegExp as a function could be incorrectly optimized into creating a new regular expression object. (323678@main) (189954203)
  • Fixed await a ** b and the use of await as an identifier in a module to correctly throw a SyntaxError. (323662@main) (189958423)
  • Fixed labelled function declarations so they are declared in the enclosing scope. (323675@main) (189972133)
  • Fixed the "use strict" directive to reject strict mode reserved words as parameter and function names. (323677@main) (189973461)
  • Fixed TypedArray and ArrayBuffer constructors to throw a RangeError for a negative length. (323740@main) (189976051)
  • Fixed parsing of let, async of, and destructuring declarations in for loop heads. (324319@main) (190415260)
  • Fixed includes, indexOf, and lastIndexOf on BigInt64Array and BigUint64Array matching BigInt values outside the element type’s range. (324313@main) (190436212)
  • Fixed Array.prototype.push called with no arguments to throw an error when the array’s length is not writable. (324204@main) (190437846)
  • Fixed private class brand installation to happen before class elements are evaluated. (324222@main) (190509577)
  • Fixed module code to report an error when an import or export declaration redeclares a var. (324223@main) (190509652)
  • Fixed Map, Set, WeakMap, and WeakSet constructors to accept undefined or null as the iterable when optimized by the DFG compiler. (324418@main) (190657930)
  • Fixed an issue where private name checks (#x in obj) were compiled incorrectly by the DFG compiler. (324397@main) (190663814)
  • Fixed an issue where an overwritten length property on sloppy-mode arguments objects was not converted using ToLength. (324407@main) (190676161)
  • Fixed Array.prototype.sort calling bound comparator functions incorrectly when sort is inlined. (324512@main) (190788820)

Media

Resolved Issues

  • Fixed the caption font size menu in media controls not changing the caption font size. (324327@main) (137012134)
  • Fixed a high CPU usage issue where media rendering repeatedly busy-looped the main thread while a seek or flush was pending. (323669@main) (188769771)
  • Fixed encrypted media playback enqueuing samples that were blocked on a key and submitted before a flush or seek. (323532@main) (189588721)
  • Fixed text-decoration styles not being applied to the inner background element of WebVTT cues. (323874@main) (190139268)
  • Fixed the spatial video renderer not coming back after media controls are re-enabled. (323986@main) (190170810)
  • Fixed Media Source Extensions playback permanently stalling after a video track is flushed. (324032@main) (190198848)
  • Fixed the video viewer’s native controls incorrectly applying YouTube-specific behavior. (324150@main) (190242515)
  • Fixed previously enabled subtitle tracks not being re-enabled when switching the subtitle menu to off inline and then back on in fullscreen. (324522@main) (190417162)
  • Fixed audio sample timing to respect trimmed timing information. (324387@main) (190519875)
  • Fixed MediaRecorder losing its final data when stopped while a timeslice data request was in flight. (324405@main) (190561436)
  • Fixed WebVTT cue parsing to require exact keyword matches for alignment settings, rejecting values that only begin with a valid keyword. (324444@main) (190662853)
  • Fixed unicode-bidi styles set with ::cue not applying to the WebVTT cue background. (324479@main) (190682540)
  • Fixed WebVTT cue line positioning so the snap-to-lines step is computed from the cue’s first line box, correcting vertical cue rendering. (324447@main) (190685928)
  • Fixed an issue where media time values with equal negative numerators and different timescales were compared in the wrong order. (324514@main) (190698694)
  • Fixed WebCodecs AudioDecoder to decode Opus content with more than two channels. (324615@main) (190709046)
  • Fixed FLAC audio decoding always failing in WebCodecs. (324640@main) (190923178)

Networking

Resolved Issues

  • Fixed WKWebsiteDataStore reusing its connection pool after proxyConfigurations changes, which caused requests to bypass the new proxy. (324143@main) (179411114)
  • Fixed the image loader’s lookup of available images to use the partitioned memory cache. (323594@main) (189778787)
  • Fixed non-ASCII Last-Event-ID request header values being UTF-8 encoded twice for EventSource requests. (323875@main) (189977696)
  • Fixed EventSource to no longer treat a UTF-16 byte order mark as valid. (324395@main) (190634672)
  • Fixed XMLHttpRequest JSON responses to always be decoded as UTF-8. (324483@main) (190717643)

Performance

New Features

  • Improved performance by caching document.querySelector() results. (323620@main) (189789022)
  • Improved navigation performance by starting navigations in a cached Cross-Origin-Opener-Policy process before the response arrives. (323631@main) (189790518)

Resolved Issues

  • Fixed a regression where filtered layers with composited ancestor clips allocated oversized filter buffers. (324517@main) (180473291)
  • Fixed slow repaints and long hangs when registering many small highlights with the CSS Custom Highlight API. (324157@main) (186478678)

Rendering

Resolved Issues

  • Fixed selection gaps not being repainted when clearing a selection in vertical-rl writing mode. (323935@main) (14699394)
  • Fixed font fallback to select fonts and glyphs by canonical equivalence. (323560@main) (165656837)
  • Fixed glyph bounds for complex text to include shaped glyph origins, preventing clipped or mispositioned text. (323777@main) (184235153)
  • Fixed frames that use custom scrollbars continually resizing. (323645@main) (186222322)
  • Fixed composited layer bounds to account for the filter outsets of a layer and its ancestors, preventing filtered content from being clipped. (323864@main) (187924396)
  • Fixed missed overlap for layers inside a stacking-context composited scroller nested in another composited scroller. (323793@main) (189067776)
  • Fixed incorrect inline layout after removing content when partial layout damage started at an inline item of the removed box. (323458@main) (189801792)
  • Fixed composited child elements being misplaced when their compositing ancestor gains or loses a child clipping layer. (323487@main) (189836116)
  • Fixed an issue on macOS where scroll bars in nested iframes kept the old style when the system scroller style changed. (324289@main) (189965521)
  • Fixed uninitialized blurred areas being drawn for blur styles on Cocoa platforms. (324350@main) (190254152)
  • Fixed the text width cache returning incorrect widths when kerned and unkerned versions of a font are used repeatedly. (324093@main) (190360672)
  • Fixed videos being clipped to the wrong corner-shape when an ancestor also has a rectangular clip. (324288@main) (190402270)
  • Fixed an issue where an animated SVG <img> scaled below its natural size left repaint trails. (324343@main) (190485225)
  • Fixed blurred areas being drawn with uninitialized content for some blur styles. (324350@main) (190563103)
  • Fixed the last-line baseline of a block container whose last in-flow child is a scroll container so that the baseline sits at the child’s bottom margin edge, preventing misaligned text. (324653@main) (190772090)

SVG

New Features

  • Added support for referrerPolicy on the SVG <a> element. (323659@main) (135952757)
  • Added support for the SVG 2 text layout algorithm. (324088@main) (190288583)

Resolved Issues

  • Fixed <textPath> not being laid out again when the d attribute changes on a referenced <path> that has display: none. (323938@main) (189579922)
  • Fixed animated percentage values in SVG text y and dy resolving against the viewport width instead of its height. (323847@main) (189739351)
  • Fixed the SVG timeline resetting to 0 when it is paused and seeked before it begins. (324084@main) (189739894)
  • Fixed <use> copies of an SVG <a> keeping the old target after the target attribute changes. (324087@main) (189740877)
  • Fixed SMIL full clock values with more than 1,193,046 hours overflowing during parsing. (323932@main) (189760312)
  • Fixed SVG <image> elements so a referenced SVG image treats its own root preserveAspectRatio as none. (323568@main) (189909967)
  • Fixed SMIL repeat(n) conditions never firing after seeking past repeat iterations. (323927@main) (189986502)
  • Fixed the SVGLength.value setter to convert font-relative units using up-to-date style. (324072@main) (189988135)
  • Fixed an issue where changing the children of an SVG <mask> used by CSS mask-image did not repaint the masked element. (324026@main) (190101845)
  • Fixed SVG <font-face> rules being registered in a non-deterministic order. (324089@main) (190353779)
  • Fixed repaint rect computation for SVG text with vector-effect: non-scaling-stroke so the stroke is repainted correctly per text run. (324095@main) (190363935)
  • Fixed composedPath() in an event listener on a <use> element exposing its user agent shadow root. (324329@main) (190528878)
  • Fixed <feImage> to place and draw its referenced image the same way as an SVG <image> element. (324592@main) (190881899)

Security

New Features

  • Added console logging when Cross-Origin-Opener-Policy or Cross-Origin-Embedder-Policy isolation is expected but not achieved. (324426@main) (190563075)

Resolved Issues

  • Fixed clicking in a cross-origin iframe incorrectly activating same-origin descendants of its ancestors. (323897@main) (181549362)
  • Fixed a regression where creating a <select> element triggered a Content Security Policy style-src-attr violation. (324283@main) (189869066)
  • Fixed frames in an about:blank popup not being treated as secure contexts. (323985@main) (190126073)
  • Fixed data: documents so that only top-level data: documents are treated as non-secure contexts. (324086@main) (190309192)
  • Fixed Geolocation to be blocked in non-secure contexts. (324227@main) (190455029)

Web API

New Features

  • Added support for the estimated line item type in Apple Pay JS. (324470@main) (187363098)
  • Added support for VideoFrame.copyTo() converting to RGB on the fly. (323866@main) (189797745)
  • Added support for the colorSpace option in VideoFrame.copyTo(). (323952@main) (189902908)

Resolved Issues

  • Fixed document.fullscreenEnabled and document.webkitFullscreenEnabled to return consistent values. (323549@main) (102937855)
  • Fixed element.checkVisibility() to work for unslotted elements. (324155@main) (118648432)
  • Fixed the AAC AudioEncoder producing an incorrect decoder config description. (324436@main) (164878480)
  • Fixed getComposedRanges() over-rescoping the range when a passed shadow root is a descendant of the boundary’s shadow tree. (324385@main) (180810983)
  • Fixed the Navigation API so navigation.back() and navigation.traverseTo() on the main frame land on the correct session history entry after a subframe has navigated. (324589@main) (187959384)
  • Fixed element.checkVisibility() returning false for <option> and <optgroup> elements in a list box. (323990@main) (189211521)
  • Fixed getBoundingClientRect() returning incorrect boxes for <option> and <optgroup> elements in a list box. (324424@main) (189227828)
  • Fixed VideoFrame, AudioData, EncodedVideoChunk, EncodedAudioChunk, MediaStreamTrack, and MediaStreamTrackHandle so they can no longer be cloned or transferred into a different agent cluster. (323558@main) (189747796)
  • Fixed VideoFrame.copyTo() to succeed for BGRX and RGBX frames. (323569@main) (189797144)
  • Fixed Media Session artwork images that have no intrinsic size, such as SVG without width, height, or viewBox, so they are sized using the default sizing algorithm with a 512×512 ideal artwork size. (323461@main) (189822449)
  • Fixed VideoFrame.copyTo() to allow converting to an RGB format when VideoFrame.format is null. (323953@main) (189932876)
  • Fixed an issue where a page navigated to about:blank lost its history entry when the next navigation occurred. (324566@main) (190237322)
  • Fixed an issue where a previous tap could cause a later tap to be treated as a hover. (324259@main) (190357260)
  • Fixed Blob‘s text() to no longer sniff UTF-16 byte order marks when decoding. (324134@main) (190382159)
  • Fixed a navigation to the current URL reporting the wrong navigationType when document.domain is set. (324269@main) (190420617)
  • Fixed Blob‘s text() to decode its data as it arrives. (324356@main) (190449988)
  • Fixed location.replace() on a frame in another process so it no longer adds a session history entry. (324264@main) (190512610)
  • Fixed an issue where setInterval() could be scheduled using a stale cached next fire time. (324432@main) (190658646)
  • Fixed an issue where navigating an iframe away from its initial about:blank document by clicking a link added a history entry. (324562@main) (190687356)
  • Fixed requestIdleCallback() idle period scheduling by using the actual frame period at 60Hz, so idle periods are no longer scheduled right before the frame deadline. (324545@main) (190768899)

Deprecations

  • Deprecated XML external entities, and added a console warning when they are used. (324200@main) (184870654)

Web Extensions

Resolved Issues

  • Fixed tabs.onUpdated to not report unchanged values and to report rapid property toggles. (324357@main) (84204907)
  • Fixed Safari showing no error when the declarativeNetRequest rule_resources JSON is not a list. (323963@main) (146113788)
  • Fixed calling action.setPopup() with an invalid popup path leaving the popup unrecoverably broken. (324142@main) (166048992)
  • Fixed non-repeating browser.alarms alarms not being removed from the alarm map after firing. (323750@main) (173399426)
  • Fixed action.setIcon() throwing an error when tabId is null instead of setting the global icon. (324277@main) (176975795)
  • Fixed runtime.openOptionsPage() so it focuses the existing options page when it is already open. (324541@main) (177344808)
  • Fixed browser.alarms.clearAll() to return a Promise<undefined>. (323534@main) (187115327)
  • Fixed alarms.onAlarm to report the next scheduledTime for repeating alarms when the background page was unloaded. (323752@main) (189951123)
  • Fixed an issue where an extension’s own content rule lists were applied to pages other than its extension pages. (323863@main) (190036270)
  • Fixed content blocker rules that combine request-method with a top URL or frame URL condition not working. (324050@main) (190316684)

Web Inspector

New Features

  • Added display of ::slotted() styles in the Styles sidebar of the Elements tab. (323654@main) (29035069)
  • Added support for exposing Shadow DOM parts in the Elements tab. (323685@main) (100250231)
  • Added reporting of rendered font character ranges. (324359@main) (143740107)
  • Added visual distinction for private methods in the Console. (324399@main) (190664079)

Resolved Issues

  • Fixed ::placeholder styles for input elements not showing up in the Styles sidebar. (323670@main) (56514581)
  • Fixed a regression where console.group and console.groupCollapsed did not always encapsulate grouped messages. (323613@main) (142028751)
  • Fixed toString being called twice when logging an object with the console. (323668@main) (169883641)
  • Fixed a discrepancy where Web Inspector and WebDriver reported different computed roles for the same element. (323965@main) (179841782)
  • Fixed: Improved Web Inspector performance by no longer iterating all rendering frame records to calculate the overview graph height. (323614@main) (181921116)
  • Fixed the Elements tab to collect CSS variables for both styles and keyframes. (323598@main) (189934225)
  • Fixed the Elements tab to correctly parse animation names when editing keyframes. (323600@main) (189934494)
  • Fixed console screenshots appearing in read-only Timelines recordings. (323599@main) (189934498)
  • Fixed markers appearing in read-only Timelines recordings. (323601@main) (189934611)
  • Fixed the Timelines tab to stop updating the time when capture is inactive. (323604@main) (189936051)
  • Fixed Web Inspector to handle URLs with an empty host. (323603@main) (189936372)
  • Fixed Web Inspector to parse URLs with ports and blob: URLs in stack traces. (323606@main) (189936384)
  • Fixed the Timelines tab to show capture progress only for the active recording. (323607@main) (189936469)
  • Fixed the Elements tab to correctly parse animation keys when editing keyframes. (323608@main) (189936580)
  • Fixed the Console’s await convenience being included in code completion requests. (323605@main) (189936602)
  • Fixed the Timelines tab to preserve imported heap snapshots when exporting recordings. (323609@main) (189936631)
  • Fixed stack trace popovers to reposition when the Web Inspector window is resized. (323611@main) (189936790)
  • Fixed Web Inspector to distinguish the source code of multiple Worker instances. (323612@main) (189936821)
  • Fixed awaited evaluation in the Console to preserve the selected call frame scope. (323610@main) (189937067)
  • Fixed the Elements tab to refresh styles after a CSS grouping rule edit fails. (323616@main) (189937131)
  • Fixed the Elements tab to also track inherited CSS variable dependencies. (323623@main) (189939830)
  • Fixed Web Inspector to report errors that occur while loading source maps. (323653@main) (189956520)
  • Fixed the Elements tab overlay for SVG <text> nodes appearing in the wrong position. (324055@main) (190158402)
  • Fixed Web Inspector so that edits to a style sheet mutate the live style sheet contents. (323979@main) (190235686)
  • Fixed links to inline CSS in Web Inspector incorrectly adding the starting column of the <style> element. (323998@main) (190248080)
  • Fixed Web Inspector so that the client nodes of a -webkit-canvas are always an array. (323999@main) (190248443)
  • Fixed Web Inspector so that a script is associated with its resource even when the MIME type is incorrect. (324003@main) (190249110)
  • Fixed Web Inspector canvas recording so that explicit null arguments are recorded. (324002@main) (190249115)
  • Fixed a Worker created after disabling All Requests breakpoints still pausing in Web Inspector. (324004@main) (190249260)
  • Fixed the debugger to use the sourceURL for breakpoints when one is provided. (324169@main) (190465797)
  • Fixed checkbox navigation items being shifted down. (324172@main) (190465799)
  • Fixed frames missing from the Timelines tab. (324171@main) (190465833)
  • Fixed Call Trees in the Timelines tab sometimes missing content. (324173@main) (190466008)
  • Fixed focus being lost in the Timelines tab when using arrow keys to select a data grid row that is out of view. (324174@main) (190466428)
  • Fixed focus being lost in the Graphics tab when using arrow keys to select a tree element that is out of view. (324175@main) (190466777)
  • Fixed Safari extension scripts missing from the Sources tab in Web Inspector. (324509@main) (190768385)

WebAssembly

Resolved Issues

  • Fixed one-type recursion groups to match their shorthand form. (323455@main) (189807549)
  • Fixed atomic loads and stores in the BBQ and OMG compilation tiers to be compiled consistently with the interpreter. (324185@main) (190473201)
  • Fixed any.convert_extern to accept a subtype of externref. (324243@main) (190498804)

WebGL

Resolved Issues

  • Fixed: Improved WebGL memory use by allocating default framebuffer storage when it is first used instead of at context creation. (323911@main) (188901577)
  • Fixed WebGL not working in shared workers and service workers in some conditions. (324220@main) (189900485)
  • Fixed: Improved WebGL performance by reusing drawing buffers once the compositor releases them. (323882@main) (190042989)
  • Fixed resizing a canvas that has not been drawn to unnecessarily allocating the default framebuffer. (324144@main) (190308555)
  • Fixed single-sample rendering that uses derivatives incorrectly forcing the sample mask output on Metal. (324221@main) (190417440)
  • Fixed an issue where a GPU reset caused all subsequently created WebGL contexts to stop working. (324346@main) (190510529)

WebGPU

New Features

  • Added support for the texture-component-swizzle feature, allowing createView() to take a swizzle option that permutes or fills texture channels. (324543@main) (189135744)

Resolved Issues

  • Fixed GPU memory for a destroyed GPUTexture not being released while a GPUBindGroup that referenced it still exists. (323838@main) (189420456)
  • Fixed: Improved performance of reading back an offscreen canvas that uses WebGPU. (323834@main) (189530498)
  • Fixed WGSL uniformity analysis to treat textureDimensions() of a write-only or read-write storage texture as non-uniform. (324225@main) (190384655)
  • Fixed copying ImageBitmap content to a texture in WebGPU. (324352@main) (190516486)

WebRTC

Resolved Issues

  • Fixed an issue where a camera or microphone permission denial was remembered even when it did not come from the user. (324309@main) (190551948)
  • Fixed camera and microphone permission requests to be queued so they are presented one at a time. (324473@main) (190618582)

November 05, 2026 12:09 AM

November 03, 2026

Introducing Adaptive Dark Mode

Surfin’ Safari

We’re excited to announce Adaptive Dark Mode in Safari 27.3 beta. When enabled by a user, Safari adapts light websites and presents them as dark.

In the spring of 2019, Safari 12.1 became the first browser to support dark mode on the web. A lot of people love using dark mode, but not every website has a dark version. Almost 40% of web page loads are from users in dark mode, and yet only 10% of page loads support it. If you love dark mode, you’ve probably hit a site that felt particularly bright. Adaptive Dark Mode is designed to close that gap, providing a consistent dark experience across the web.

A demo website in light mode on the left and dark mode on the right. It's a complex site with lots of UI full of bits of color that's transformed by Adaptive Dark Mode.

You can try it today in Safari 27.3 beta. To enable, first make sure your system appearance is set to dark. Then browse to a website with a bright background. Safari will offer a preview of Adaptive Dark Mode. Tap ‘Try’.

For websites that signal support of dark mode with <meta name="color-scheme" content="light dark"> in HTML or color-scheme: light dark in CSS, Adaptive Dark Mode does not change a thing. For the rest of the web, it quickly analyzes the page, looking at colors and estimating whether it’s predominantly light or dark. If the page generally has a dark background with light text, nothing is changed. When a page has a light appearance, Adaptive Dark Mode adapts the page to be dark.

How does Adaptive Dark Mode work?

At the core of Adaptive Dark Mode is the transformation of color. Sometimes colors are simply decorative, while other times they have semantic meaning. Adaptive Dark Mode determines when to invert colors so elements remain visible or when to leave colors unchanged.

While creating Adaptive Dark Mode, we developed a color matrix to invert the luminosity of colors while preserving hue. It’s used to make light backgrounds dark, and dark text light. When transforming text color, Adaptive Dark Mode aims for sufficient contrast as defined by the WCAG 4.5:1 contrast ratio. Light CSS gradients are also transformed to dark.

Adaptive Dark Mode makes careful judgments so transformed content looks good and stays usable: buttons have contrast against backgrounds, text is visible over images, and hover menus look clear.

It takes the same care with images. Most are left unchanged, preserving their integrity. But many icons and logos can lose contrast when the background color behind them is inverted. So Adaptive Dark Mode inspects SVG images and transforms colors when needed. For bitmap images, it analyzes the pixel histograms and inverts simple black-and-white logos.

Side by side screenshots of the Interop 2026 dashboard in Safari. On the left, the original light mode website. On the right, the site transformed by Adaptive Dark Mode. The graph still matches light mode (untransformed) but everything else on the page is dark.

Effects like masks and mix-blend-mode can create undesirable results on an element whose colors have been transformed, so in some cases Adaptive Dark Mode turns such effects off. Also, <canvas> content is left unchanged, since canvases contain a wide range of content that’s hard to predict.

It’s precisely because Adaptive Dark Mode is happening deep within the WebKit browser engine that we are able to find creative ways to solve the most complex challenges, apply the transformations with great speed and power efficiency, all while rigorously protecting user privacy.

Making your site work even better

In general, a web page will work well with Adaptive Dark Mode if it follows good modern web development practices.

If your site still uses older techniques, small updates can help. For logos and icons, swap bitmap images for SVG. Use solid or gradient colors in CSS instead of tiled background images. Replace image sprites with modern CSS for rounded corners, shadows, and button states. Create content images with transparent backgrounds instead of baking the page background color into the image. Add padding to containers to prevent crowding.

Perhaps you want a specific dark mode experience for a certain portion of the page. Apply color-scheme: light dark to the relevant element and add your own dark styles.

Building your own dark mode

For complete control over how your site looks in dark mode, add full support. It’s a terrific time to do so. It’s never been easier.

The demo website from above, only now, with a third browser window showing what that website might look like with a custom dark mode.
Here’s an example of a website in light mode (left) and with Adaptive Dark Mode applied (center). If the site creates a custom dark mode, it could look like the third version (right).

All the web technology needed to fully support dark mode is widely available today, including:

Newer CSS functions like color-mix() and contrast-color(), plus popular techniques for organizing design systems with CSS variables provide additional options and flexibility.

Be sure to declare dark mode support using the color-scheme meta tag in your HTML head and/or by setting the color-scheme property on :root or body in your CSS. Don’t wait to inject this information later via JavaScript. This best practice helps ensure your site is rendered correctly as fast as possible.

Using the “light only” color scheme

If you would like your web app or website to not be transformed by Adaptive Dark Mode, you can communicate this using color-scheme. The HTML <meta name="color-scheme" content="light only"> tag lets browsers know that 1) this page supports light mode and 2) should only be displayed in light mode. The color-scheme: light only rule does the same thing, but with the flexibility of CSS, allowing you to just target specific elements on the page — or of course, you can target the whole page with :root { }. Support for the ‘only’ keyword arrived in Safari 27.3 beta 2.

Protecting user privacy

Apple firmly believes user privacy is a fundamental human right. If websites could detect when a user has enabled Adaptive Dark Mode, that would increase the amount of fingerprintable information and weaken privacy protections against trackers.

As a result, Safari prevents websites from detecting when Adaptive Dark Mode has been applied. JavaScript that queries CSS colors will get the original authored colors, not the transformed ones. Any images drawn into canvas render in their original form.

Feedback

If you manage a website or web app, and would like to discuss how Adaptive Dark Mode is adapting your project, feel free to reach out at web-evangelist@apple.com.

If you try out Adaptive Dark Mode as a user, and find a site that does not work well, we’d love for you to file a report with Feedback Assistant. (Learn more about filing Feedback).

November 03, 2026 06:00 PM

November 02, 2026

Igalia WebKit Team: WebKit Igalia Periodical #84

Igalia WebKit

Update on what happened in WebKit in the week from October 26 to November 2.

In this week's installment we have an improvement to WebKit when running under Flatpak, OpenSSL being made the default crypto backend for the WPE and GTK ports, improved support for the Media Playback Quality spec, and the usual plethora of improvements and fixes to the Layer-Based SVG Engine.

Cross-Port 🐱

When running in Flatpak, use the flatpak-portal D-Bus API to spawn sub processes instead of flatpak-spawn. This provides a small improvement in launch times and memory usage.

OpenSSL is now the default backend for crypto in the WPE and GTK ports. The libgcrypt backend will remain in tree for the current cycle but can be considered deprecated and will be removed after the next stable release series.

Multimedia 🎥

GStreamer-based multimedia support for WebKit, including (but not limited to) playback, capture, WebAudio, WebCodecs, and WebRTC.

Improved support for the Media Playback Quality spec in WebKitGTK/WPE, avoiding statistics counter resets during flushes and pauses, and properly keeping the statistics after player suspension.

Graphics 🖼️

Fixed the sizing of <foreignObject> in vertical writing modes in the Layer-Based SVG Engine (LBSE), where its width and height were swapped. The viewport size is now mapped to the logical axes, as the legacy SVG engine does.

Skipped SVG filters that change nothing, such as an feOffset without an offset or an feDropShadow with zero blur and offset, in the Layer-Based SVG Engine (LBSE), matching the legacy SVG engine.

Fixed missing repaints in the Layer-Based SVG Engine (LBSE) when an attribute of an SVG filter primitive changes before the filter has painted for the first time. The elements using the filter are now always repainted, as in the legacy SVG engine.

Removed an extra clip on the outermost <svg> element in the Layer-Based SVG Engine (LBSE), which truncated drop-shadow() filters, box-shadow, outlines painting outside the border box, and rotated inline <svg> elements. The existing viewport overflow clip already handles this correctly, including transforms.

Fixed getScreenCTM() in the Layer-Based SVG Engine (LBSE) to include CSS zoom on the outermost <svg> while still ignoring page zoom, matching the legacy SVG engine. This resolves the remaining getScreenCTM() issues in LBSE.

Removed the transform-to-root check from SVG container layout in the Layer-Based SVG Engine (LBSE), which re-laid out a whole subtree whenever an ancestor changed its transform to the outermost <svg> element. Transforms now invalidate the relevant state directly, so these extra re-layouts are no longer needed.

Fixed outlines, masks and event regions being displaced on an outermost <svg> that is not at the origin of its containing block in the Layer-Based SVG Engine (LBSE). Besides the visual fix, this also corrects the regions used for wheel event handling.

Fixed SVG text being laid out with a stale font size after its own transform changes in the Layer-Based SVG Engine (LBSE). The transform is now updated before the on-screen font size is computed, so text metrics match the legacy SVG engine.

Fixed non-scaling strokes on SVG text ensuring they are measured in the coordinate system of the outermost <svg> element, like shapes already were, instead of in screen space. A CSS transform on the outermost <svg> or on one of its HTML ancestors now scales the vector-effect: non-scaling-stroke of text correctly, in both the Layer-Based SVG Engine (LBSE) and the legacy SVG engine.

Aligned the filter source image to whole device pixels when repainting filtered SVG content in the Layer-Based SVG Engine (LBSE), so a repaint always fully replaces the pixels it touches, instead of leaving stale pixels behind when content wasn't device-pixel aligned.

That’s all for this week!

By Igalia WebKit Team at November 02, 2026 07:30 PM

October 26, 2026

Igalia WebKit Team: WebKit Igalia Periodical #83

Igalia WebKit

Update on what happened in WebKit in the week from October 19 to October 26.

An exciting bag of news this week which includes a fix for processes not being closed under memory pressure, process prewarming when sandboxing is enabled, a couple of GStreamer-related changes including one that make auxiliary processes' startups faster, and the usual influx of LBSE fixes. In addition to that we got a libsoup release with security fixes, and the deprecation of the legacy libwpe-based API.

Cross-Port 🐱

Fixed prewarmed and suspended processes not being closed under memory pressure.

Fixed process prewarming when the sandbox is enabled.

Networking 📶

Networking support, including the libsoup HTTP library.

Released libsoup 3.8.1. The release contains various security fixes as well as bug fixes for HTTP/2 and zstd encoding support.

Multimedia 🎥

GStreamer-based multimedia support for WebKit, including (but not limited to) playback, capture, WebAudio, WebCodecs, and WebRTC.

The Media player now internally uses the GStreamer playbin3 element, playbin support is deprecated given that it isn't much maintained anymore and less efficient than playbin3.

Dynamically load flite when used, reducing process startup time significantly.

Graphics 🖼️

Fixed SVG text not being re-measured when a CSS transform changes the scale of an enclosing <g>, <use> or nested <svg> in the Layer-Based SVG Engine (LBSE). Such text used to keep its old on-screen font size, and it is now laid out again at the new scale, as it already was when the SVG transform attribute changed.

WPE WebKit 📟

The legacy libwpe-based API has been deprecated. While removal is not planned, this means that starting with the 2.56 release series (due in March 2027) building applications that are use it will produce deprecation warnings. The recently announced WPEPlatform API should be preferred, and migrating to it is encouraged.

WPE Platform API 🧩

New, modern platform API that supersedes usage of libwpe and WPE backends.

The formats array passed to the WPEClipboard.changed virtual function now indicates the array length correctly. While at it, the virtual functions of the WPEClipboard class have been documented.

Community & Events 🤝

Fix dark-mode when using wpe-platform-gtk.

Infrastructure 🏗️

Build with -z pack-relative-relocs reducing the binary size and memory usage.

That’s all for this week!

By Igalia WebKit Team at October 26, 2026 07:03 PM

WebKit Features for Safari 27.2

Surfin’ Safari

Safari 27.2 is here, refining Customizable Select, renaming a Grid Lanes property, and delivering 20 bug fixes across accessibility, media, CSS, and more.

Customizable Select

Customizable Select originally landed in Safari 27.0. Since then, the web standards process continues to polish details. And implementations across all browsers are being updated to match.

For decades, when you use the <select> element and a user selects an option, it gets displayed in the “button” (the interactive part of the control that appears on the page). The new superpowers of Customizable Select include a <selectedcontent> element to give you more control over what’s displayed and how it looks.

<select id="status">
  <button>
    <selectedcontent></selectedcontent>
  </button>
  <option>Processing</option>
  <option>Shipped</option>
  <option>Delivered</option>
  <option>Canceled</option>
</select>

But you are not required to use <selectedcontent>. You can still write HTML like this:

<select id="status">
  <option>Processing</option>
  <option>Shipped</option>
  <option>Delivered</option>
  <option>Canceled</option>
</select>

Now in Safari 27.2, the new ::field-content pseudo-element gives you the ability to style the text of the selected option that’s displayed on the page, without needing the <selectedcontent> element.

In addition, Safari 27.2 refines a few of the default UA styles for appearance: base-select. The button’s contents vertically center more reliably. The selected option text now inherits text-overflow from <select>. The way we draw the ::picker-icon has been updated so it can have a more straightforward layout. And the button uses flex: 1 to manage spacing, instead of margin-inline-start: auto on ::picker-icon, so the picker icon is always visible, even without <selectedcontent>.

Also, previously a large select picker could render partly outside the viewport. Safari 27.2 keeps it in view by applying safe alignment. This comes from a broader change to CSS alignment: for absolutely and fixed positioned boxes, safe now keeps the box within its original containing block. You can also now combine the safe and unsafe keywords with normal alignment.

CSS

Grid Lanes originally shipped in Safari 26.4 last March. Since then, the CSS Working Group decided to rename the flow-tolerance property to fit-tolerance to better describe its purpose. Safari 27.2 updates Grid Lanes to use the new name. Meanwhile, the older name will keep working for now as a deprecated alias. Be sure to update your code soon. Safari Web Inspector can help by marking what needs to be changed.

What is the fit-tolerance property? It controls how picky the browser is when it chooses where to put the next item. Without any tolerance, the browser looks for the column (or row in the other direction) whose content precisely ends highest on the page, and puts the item there. But if several columns end at nearly the same height, you may not care which one wins. With fit-tolerance, you define how much of a difference counts. When columns are within that distance of each other, the browser treats them as tied and just picks the first one. The default is fit-tolerance: 1em.

A higher tolerance keeps consecutive items in neighboring columns, instead of jumping back and forth across the page to chase tiny differences in height. That makes for a better experience tabbing through content, especially for sighted keyboard users, who watch focus move from item to item. So most of the time, you should increase this number significantly. How much depends on your content sizes and how much they vary.

Play with fit-tolerance on the Field Guide to Grid Lanes to better understand what it does. Learn more about how Grid Lanes and Fit Tolerance work in our article, Introducing CSS Grid Lanes.

Bug fixes and more

In addition to these updates, in our continuing commitment to quality, WebKit for Safari 27.2 includes 20 bug fixes:

Accessibility

  • Fixed list, table, tree, and canvas content being omitted from the accessible name or description when the containing element is referenced by aria-labelledby or aria-describedby. (186015032)
  • Fixed VoiceOver repeating text it had already announced when a page streams content by re-rendering an aria-live region instead of appending to it. (186766347)
  • Fixed an issue where VoiceOver did not identify <input type="date">, <input type="time">, and <input type="color"> controls as pop-up buttons on iOS. (187788949)

Animations

  • Fixed animation-range-start and animation-range-end resolving incorrectly when zoom is applied, including when the value is inherited from an element with a different zoom factor. (185760120)

CSS

  • Fixed an issue where an anchor-positioned element inside a modal <dialog> could be laid out offscreen and become invisible when the page was scrolled. (187933878)

Forms

  • Fixed: Switched default content for the::picker-icon in Customizable Select to render with a glyph that has a more straightforward layout, no longer requiring negative margins to align correctly. (187411081)

HTML

  • Fixed the window load event never being dispatched when a readystatechange handler starts a new load. (186475302)

JavaScript

  • Fixed for await...of over an async generator skipping the Promise.prototype.constructor lookup required by PromiseResolve when that property is replaced. (183960626)

Media

  • Fixed an issue where AudioContext.decodeAudioData() failed with an EncodingError on valid AAC/M4A audio files. (183474728)
  • Fixed video showing a black screen while audio continued to play after the video decoder was invalidated. (184041554)
  • Fixed ManagedMediaSource not firing the startstreaming event when seeking to a time that is not buffered, which could stall playback. (185166787)
  • Fixed an issue where a media element’s play() promise was not resolved when a SourceBuffer contained clear, unencrypted content. (188022510)
  • Fixed an issue where the WebCodecs VideoEncoder could stall and produce no output for H.264 Main and High profiles. (188201298)

Networking

  • Fixed cookies set by a top-level navigation’s own response being capped to a seven-day lifetime when the site’s hostname is CNAMEd to a different registrable domain. (183787115)

SVG

  • Fixed dynamic changes to a <foreignObject> element’s x and y values having no effect. (184273832)

Safari MCP

  • Fixed Safari taking keyboard focus from other apps when creating tabs or capturing screenshots under Safari MCP control. (182558329)

Web API

  • Fixed an issue where transient activation could be incorrectly discarded, causing APIs gated on user activation (such as the Clipboard API) to fail on the first attempt. (187872193)

Web Extensions

  • Fixed a significant delay before web extension content is injected when Safari is cold launched. (185268822)

WebGPU

  • Fixed a severe frame rate drop when calling executeBundles() with render bundles that contain drawIndirect() or drawIndexedIndirect(). (186099290)

WebRTC

  • Fixed an issue where getUserMedia() requests for audio permanently failed with NotAllowedError after the system audio service was reset. (186939802)

Updating to Safari 27.2

Safari 27.2 is available on iOS 27.2, iPadOS 27.2, visionOS 27.2, macOS 27.2 Golden Gate, macOS Tahoe and macOS Sequoia. On iOS, iPadOS, visionOS, and macOS 27.2 Golden Gate, you can update to Safari 27.2 as part of the OS update in Settings > General > Software Update. On older versions of macOS, if you want to only update Safari, you can do so in Software Update, by clicking “more”.

Feedback

We love hearing from you. To share your thoughts, find our web evangelists online: Jen Simmons on Bluesky / Mastodon, Saron Yitbarek on Bluesky / Mastodon, and Jon Davis on Bluesky / Mastodon. You can follow WebKit on LinkedIn. If you run into any issues, we welcome your feedback on Safari UI (learn more about filing Feedback), or your WebKit bug report about web technologies or Web Inspector. If you run into a website that isn’t working as expected, please file a report at webcompat.com. Filing issues really does make a difference.

October 26, 2026 06:30 PM

October 23, 2026

WebKit Features for Safari 27.1

Surfin’ Safari

iPhone Duo, looking amazing, partially folded like an open book. Photo of a woman on the left, app icons on the right, including Safari in the Dock.

Today iPhone Duo arrives, and with it, Safari 27.1.

The “big news” here is no news. It’s Safari, with the same WebKit engine and the same web technologies as every other iPhone. Your websites and web apps work on iPhone Duo just like they do everywhere else.

Safari 27.1 does bring one change to users. Now, when someone holds iPhone Duo partially folded like a book while looking at a PDF on the web, Safari 27.1 automatically shows PDFs as two pages side by side. When they open the screen flat or close it fully, Safari switches back to one page.

For web developers, Safari 27.1 on iPhone Duo includes a preview of the Device Posture API and the Viewport Segments API, available behind feature flags.

Viewport sizes

As a web designer or developer, the first question you might have is about the sizes & shapes of the screens.

Little drawings of iPhone Duo in different poses. Outer display. Tent pose. Inner display landscape. Book pose. Inner display portrait. Laptop pose.

If you have been making websites and web apps using modern responsive web design techniques to support a wide range of different sized screens with media queries and flexible layouts using CSS Grid, Flexbox & more, your project is going to look and work great!

For those wondering, here’s more detail about viewport sizes in various poses… iPhone Duo has two displays: the outer display when the phone is closed, and the larger inner display when the phone is open. The outer display works in portrait or landscape, with the tab bar at the bottom by default, just like other iPhones. The inner display also works in both orientations, with the tab bar shown at the top, similar to iPad or Mac. When the inner display is in landscape, users can also put two windows side by side, which gives each one a narrow portrait viewport. And just like iOS on other iPhones, when the user scrolls, the tab bar shrinks in size to put the focus on the web content.

Across the possible combinations, the viewport width (in CSS pixels) in Safari 27.1 can range from 382 to 951. And the height can range from 368 to 902.

Width SVH LVH
Outer display, portrait 382 580 618
Outer display, landscape 594 368 406
Inner display, portrait (with one tab) 669 867 902
Inner display, landscape (with one tab) 951 585 620
Inner display, each window with two side by side 385 571 609

However, you don’t need to worry about all these numbers. Instead, lean into the wisdom of Responsive Web Design techniques. Create layouts for your websites and web apps that simply work on every sized screen from the extremely large to the very tiny. Modern CSS has powerful tools that make flexible, fluid, responsive layouts incredibly easy. Avoid UA sniffing to detect devices, and use feature detection instead. These approaches put your project in the best position to just work anywhere, no matter what the future brings.

You don’t need iPhone Duo in hand to test your website or web app. Download Xcode 27.1 or later to get Device Hub, where you can create and use a simulator for iPhone Duo.

Creating webpage layouts for a folding screen

When iPhone Duo is partially folded, it opens up some interesting design possibilities. Some web developers have been curious about the Device Posture API and the Viewport Segments API. Both are supported in Safari 27.1 on iPhone Duo as a developer preview behind feature flags.

To enable, go to Settings > Apps > Safari > Advanced > Feature Flags, and turn on both “Device Posture API” and “Viewport Segments API”.

If you try out these features, let us know what you think. Do they unlock the ability to create the kind of experiences you want to create for iPhone Duo? Would you want them to work a bit differently instead?

Device Posture API

The Device Posture API tells you whether or not the user’s screen is partially folded — in both CSS and JavaScript with the device-posture media query and navigator.devicePosture. Both report one of two postures:

  • folded, when the device is partially folded, in a book or laptop pose
  • continuous, when the screen is flat — which includes both fully open and fully closed displays

In CSS, use the media query to change the styles when the device is partially folded:

@media (device-posture: folded) {
  .layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

Or in JavaScript, use navigator.devicePosture.type to read the current posture and listen for the change event to know when it changes.

function reportPosture() {
  console.log(`Device posture: ${navigator.devicePosture.type}`);
}

reportPosture();
navigator.devicePosture.addEventListener("change", reportPosture);

Viewport Segments API

The Viewport Segments API is more complex. It describes the “segments” of the display — the separate portions on either side of the fold.

Once you turn on the feature flag, Safari 27.1 supports the horizontal-viewport-segments and vertical-viewport-segments media queries. They match the number of segments laid out side by side, or stacked top to bottom:

@media (horizontal-viewport-segments: 2) {
  /* Code that only applies when the device is held like a book, 
     with two side-by-side segments */
}

@media (vertical-viewport-segments: 2) {
  /* Code that only applies when the device is held like a laptop, 
     with two vertically stacked segments */
}

To help you size things to the exact edges of each segment, the Viewport Segments API adds six environment variables:

  • viewport-segment-width
  • viewport-segment-height
  • viewport-segment-top
  • viewport-segment-right
  • viewport-segment-bottom
  • viewport-segment-left

Each takes two indexes: the segment’s column, then its row, counting from 0 at the top left. When two segments sit side by side, the left one is 0 0 and the right one is 1 0. When they’re stacked, the top one is 0 0 and the bottom one is 0 1.

For example, this layout creates two columns, each the width of the available space on each side of the fold:

@media (horizontal-viewport-segments: 2) {
  .wrapper {
    display: grid;
    grid-template-columns:
      env(viewport-segment-width 0 0)
      env(viewport-segment-width 1 0);
  }
}

In JavaScript, window.viewport.segments gives you an array of DOMRect objects, one per segment. Check it again whenever the posture changes or the window resizes:

function reportSegments() {
  window.viewport.segments.forEach((segment, i) => {
    console.log(`Segment ${i}: ${segment.width}px × ${segment.height}px`);
  });
}

reportSegments();
navigator.devicePosture.addEventListener("change", reportSegments);
window.addEventListener("resize", reportSegments);

With the Device Posture API and the Viewport Segments API behind flags, there may still be time to evolve how they work. Let us know if you have thoughts or requests.

Web content under the controls

You might have noticed the outer display of iPhone Duo is wider and shorter than other iPhone displays. To give content more vertical space, iOS moves controls to the side.

An example website on iPhone Duo, the outer (smaller) display in portrait. The webpage fills most of the screen, except for a column on the right. That space holds the controls for Safari and for the phone itself. It fills with the same light purple color of the website.

In Safari 27.1, web content does not currently extend to fill the space behind these controls. Just like on other platforms, Safari looks at the web page and extends its background color to fill the space.

We would like to give web designers and developers the ability to design and use that space in more creative ways. Perhaps you want to extend your header background across the full width of the display, for example. It might seem like there’s just one obvious way to make this possible, but really there are many possibilities.

We could use the HTML viewport meta tag with viewport-fit="cover" to extend the webpage into that space, hoping developers also use the appropriate environment variables to scoot important content away from system controls. But as we research how today’s sites are built, we see a lot of projects that fail to inset all four edges correctly. We are investigating if there’s a better way to accomplish the same result — something more foolproof and perhaps easier for you to use. If you have ideas, we’d love to hear them. And stay tuned.

What do you think?

To share your thoughts with us, reach out to Jen Simmons on Bluesky / Mastodon. If you run into any issues, we welcome your feedback about Safari UI (learn more about filing Feedback), or your WebKit bug report for web technologies or Web Inspector.

October 23, 2026 05:00 PM

October 22, 2026

Release Notes for Safari Technology Preview 255

Surfin’ Safari

Safari Technology Preview Release 255 is now available for download for macOS Golden Gate and macOS Tahoe. If you already have Safari Technology Preview installed, you can update it in System Settings under General → Software Update.

This release includes WebKit changes between: 322011@main…323397@main.

Accessibility

Resolved Issues

  • Fixed VoiceOver presses dispatching a click event with an event.detail of 0. (322978@main) (187732224)
  • Fixed radio buttons in a group to be exposed as required when the required attribute is set on one of the buttons. (322894@main) (189100525)
  • Fixed list box accessibility children not updating when options are added or removed. (323117@main) (189412211)

Animations

Resolved Issues

  • Fixed getComputedStyle() ignoring the pseudo-element when checking whether a property is being animated. (322681@main) (188502400)
  • Fixed requestAnimationFrame() handles to use the full unsigned long range defined by the IDL. (322922@main) (189270148)
  • Fixed view transition setup to flush the update callback queue. (323173@main) (189533643)

CSS

New Features

  • Added support for CSS module scripts, allowing a stylesheet to be imported from JavaScript using import sheet from "./styles.css" with { type: "css" }. (322887@main) (80917329)

Resolved Issues

  • Fixed font-family: initial acting like font-family: inherit instead of resolving to the initial value. (322304@main) (54306281)
  • Fixed box-sizing: content-box being ignored for percentage-height tables (display: table), which caused vertical padding to be dropped. (322812@main) (122587242)
  • Fixed min-width: max-content being ignored for the min-content contribution of a percentage-width replaced element. (322974@main) (179947068)
  • Fixed the top color extension to use relative colors with filters when applicable. (323153@main) (186098400)
  • Fixed Range.getBoundingClientRect() returning empty rects for content inside a content-visibility: hidden subtree. (323204@main) (186165755)
  • Fixed elements using a background image that depends on currentColor not repainting when the current color changes. (323240@main) (188036420)
  • Fixed subgrid implicit grid-area line names being matched by the first substring instead of the suffix. (322238@main) (188203288)
  • Fixed tree-scoped var() and custom function references inside an @function failing to resolve when the function is called from a :host rule. (322679@main) (188206030)
  • Fixed an issue where duplicate anchor-name values among <model> elements in a spatial portal resolved unpredictably. (322709@main) (188209540)
  • Fixed @scope so that structural DOM changes correctly invalidate scope membership when the scoping root selector depends on them. (322680@main) (188398757)
  • Fixed revert inside @starting-style dropping @starting-style declarations from lower cascade layers. (322688@main) (188463947)
  • Fixed the rotate property to preserve the sign of the axis when serializing. (322682@main) (188493811)
  • Fixed revert and revert-layer using the wrong cascade origin for visited and unvisited link styles, which wrongly disabled native appearance. (323205@main) (188494505)
  • Fixed getComputedStyle() serializing the overscroll-behavior shorthand as a single value of the larger axis instead of both axis values. (322685@main) (188534035)
  • Fixed block-axis multicolumn content being painted at the wrong offset when the column set does not start at the top of the multicol container. (322687@main) (189067503)
  • Fixed shape-margin values above 65535px on an image shape-outside producing a much smaller float area. (322727@main) (189069223)
  • Fixed a line-clamp container to establish an independent formatting context. (322767@main) (189090409)
  • Fixed replaced elements ignoring aspect-ratio when both width and height are auto. (322745@main) (189096923)
  • Fixed the line-clamp block ellipsis being placed after a <wbr> in a white-space: nowrap line. (322758@main) (189103913)
  • Fixed an overflowing preserved tab not wrapping to the next line. (322759@main) (189104880)
  • Fixed the line-clamp block ellipsis not hanging with hanging-punctuation. (322772@main) (189105782)
  • Fixed text-overflow truncating a unicode-bidi: plaintext line in the wrong direction. (322866@main) (189108555)
  • Fixed an image shape-outside dropping an above-threshold run that starts in the last column. (322756@main) (189116534)
  • Fixed line-clamp: auto not being able to clamp between sibling blocks. (322836@main) (189124610)
  • Fixed line-clamp: auto clamping inside a box with a set height. (322842@main) (189138321)
  • Fixed the line-clamp block ellipsis being placed on a line that only contains a float. (322791@main) (189151667)
  • Fixed the baseline of an empty MathML <mpadded> element to account for border-top and padding-top. (322826@main) (189209081)
  • Fixed CSS grid intrinsic width computation to resolve auto-fill repetitions against the grid container’s minimum and maximum size. (322848@main) (189223527)
  • Fixed CSS grid column sizing to resolve percentage rows against the block size rather than the inline size when estimating row sizes. (322850@main) (189230010)
  • Fixed grid container minimum and maximum sizes to respect box-sizing: border-box. (322856@main) (189235347)
  • Fixed a percentage-width child of a vertical writing mode box to keep following the box’s width after a style change. (322964@main) (189316242)
  • Fixed cross-fade() to match the CSS Images Level 4 specification and the behavior of other browsers. (322918@main) (189356185)
  • Fixed grid layout to return the grid’s used block size, so the container’s size is correct once layout is complete. (323053@main) (189357098)
  • Fixed grid containers to resolve percentage and calc() values for min-width, max-width, min-height and max-height. (323051@main) (189358198)
  • Fixed :visited style not updating for links inside shadow trees. (323396@main) (189380898)
  • Fixed baseline alignment of grid items so it is applied after the items have been sized. (323238@main) (189457596)
  • Fixed attr() to avoid an unnecessary legacy code path in simple cases. (323098@main) (189485680)
  • Fixed MediaList writes being silently dropped after the owning rule or stylesheet is destroyed. (323203@main) (189496021)
  • Fixed collapsed SVG shapes and images being painted when visibility: collapse should be treated as hidden. (323110@main) (189496450)
  • Fixed block boxes after the line-clamp clamp point remaining visible. (323220@main) (189543433)
  • Fixed content before the line-clamp clamp point losing its lines when it does not change. (323225@main) (189569400)
  • Fixed block boxes after the line-clamp clamp point still taking up space. (323253@main) (189570948)
  • Fixed floats after the line-clamp clamp point remaining visible. (323337@main) (189578173)
  • Fixed adoptedStyleSheets continuing to apply removed sheets after its length is shrunk, and ignoring changes to a sheet after its duplicate is removed. (323233@main) (189579103)
  • Fixed an implicit @scope rule in a constructed stylesheet adopted by a document matching nothing. (323237@main) (189584948)
  • Fixed floats making the line-clamp container taller. (323349@main) (189630233)
  • Fixed floats adding to the scrollable overflow of the line-clamp container. (323353@main) (189641420)
  • Fixed line-clamp: auto containers having no line clamp until the clamp point is found. (323357@main) (189652879)
  • Fixed floats painting past the block-end content edge of the line-clamp container. (323390@main) (189653161)
  • Fixed container size queries truncating fractional container sizes to integers. (323328@main) (189653185)
  • Fixed absolutely positioned elements whose containing block is an inline after the line-clamp clamp point remaining visible. (323395@main) (189671905)

Editing

Resolved Issues

  • Fixed DataTransfer treating any format that merely starts with text/plain, such as text/plainfoo, as text/plain. (322954@main) (189265567)

Forms

New Features

  • Added support for <button> in the native appearance of <select>. (322716@main) (178876621)

Resolved Issues

  • Fixed :open no longer matching a <select> whose base appearance picker is still showing. (322666@main) (188911581)
  • Fixed a <select> element computing its selected option’s style from outdated ancestor styles. (322665@main) (189109118)
  • Fixed a vertical range slider fill overshooting its value when tick marks are present and the thumb is hidden. (322780@main) (189116567)

HTML

Resolved Issues

  • Fixed a <style> element’s sheet to be built from its child text content instead of descendant text. (322128@main) (188047912)
  • Fixed tabbing to a popover invoker to move focus to the popover itself when the popover is focusable. (323172@main) (188267440)
  • Fixed module <script> elements with an empty or invalid src to fire the error event asynchronously instead of synchronously. (323198@main) (189384155)
  • Fixed setting src to the empty string on a connected <script> element to fire an error event. (323200@main) (189385352)
  • Fixed <script> elements with an ASCII-whitespace-only src being treated as having an empty src. (323236@main) (189386063)

JavaScript

Resolved Issues

  • Fixed Object.defineProperty to read descriptor fields after converting the property key, so side effects from key conversion are respected. (322982@main) (179389067)
  • Fixed an issue where errors thrown by another realm’s built-ins such as Number, String, and Math functions came from the caller’s realm after DFG optimization. (323152@main) (189057417)
  • Fixed catch parameters named await to be rejected as a syntax error in contexts where await is not an identifier. (322702@main) (189183089)
  • Fixed await to be treated as an identifier in a non-async function nested in the parameters of an async function. (322703@main) (189183268)
  • Fixed unary + so it no longer changes the evaluation order of operands in binary expressions. (322817@main) (189267513)
  • Fixed constant array literal elements to be evaluated only once when emitting bytecode for array literals. (322943@main) (189295197)
  • Fixed instanceof with a bound function reading the target’s prototype property when the left-hand side is a primitive. (322956@main) (189388195)
  • Fixed Array.fromAsync to get next from the async iterator before constructing the this value. (322967@main) (189402953)
  • Fixed using and await using declarations being rejected inside a function nested in a switch case or default clause. (323061@main) (189472811)
  • Fixed for-in skipping indexed properties of functions. (323086@main) (189504414)

Media

Resolved Issues

  • Fixed remote audio participants no longer autoplaying on web sites using real-time calls. (323320@main) (182922583)
  • Fixed WebVTT cue display so the backdrop no longer overflows outside of the cue. (323325@main) (183472002)
  • Fixed an issue where video using Media Source Extensions never started playing on some sites, such as disneyplus.com. (322877@main) (184182838)
  • Fixed WebCodecs ignoring the profile, bit depth, and chroma subsampling fields in VP9 codec strings. (322962@main) (188868426)
  • Fixed the WebCodecs AV1 encoder reporting support for 10-bit, 12-bit, monochrome, and 4:4:4 or 4:2:2 codec strings that it always encodes as 8-bit 4:2:0. (322975@main) (188882755)
  • Fixed WebCodecs computing incorrect plane layouts for I422 and I444 VideoFrame objects. (322972@main) (188885351)

Networking

Resolved Issues

  • Fixed failed modulepreload resource loads getting stuck in the cache by retrying them. (323305@main) (124280450)
  • Fixed a regression where XMLHttpRequest and fetch sent an empty request body for a disk-backed File when the page is controlled by a service worker. (323318@main) (183071407)

Rendering

Resolved Issues

  • Fixed a block-level box with aspect-ratio inside a float growing when its content changes. (322742@main) (188872195)
  • Fixed selection gaps not being painted for a line whose selection top is above its block container. (322750@main) (189113277)
  • Fixed an issue where an element’s box size was incorrect when a padding change was followed by another style change before layout. (322929@main) (189319402)
  • Fixed an issue where changing a table cell’s width did not resize its row in a table with a vertical writing mode. (322934@main) (189322207)

SVG

New Features

  • Added support for the side attribute on the SVG <textPath> element. (323115@main) (174710714)
  • Enabled the inline layout engine for SVG text. (323141@main) (189532515)

Resolved Issues

  • Fixed zero intrinsic size not being respected for SVG in <object> and <embed> elements. (322529@main) (132152736)
  • Fixed SVG elements inside hidden containers being focusable. (322650@main) (171590890)
  • Fixed an issue where changing a list attribute detached the SVGNumber, SVGLength, and SVGPoint objects held by a script instead of updating them. (323046@main) (186835842)
  • Fixed changing only paint-order not triggering a repaint of SVG content. (322013@main) (188533466)
  • Fixed SVG animations continuing to run when the animation element or an ancestor fails conditional processing. (322829@main) (188780260)
  • Fixed svgView() fragments with an invalid or zero-size viewBox drawing the SVG unscaled. (323217@main) (189611839)

Security

Resolved Issues

  • Fixed external scripts blocked by the strict-dynamic Content Security Policy keyword to fire an error event. (323191@main) (189386852)

Web API

New Features

  • Added support for the cross-origin-isolated Permissions Policy feature. (322663@main) (189124490)
  • Added support for transferring streams to an AudioWorklet. (323327@main) (189677199)

Known Issues

  • document.activeElement returns the <html> element instead of null for HTML documents with no body, which differs from other browsers and breaks the WebDriver Get Active Element command. (323385@main) (190343977)

Resolved Issues

  • Fixed an issue where interactive-widget=resizes-content did not reflect the correct innerHeight, causing the sign-in screen on kidshibbett.com to disappear from view. (186817825)
  • Fixed pointermove firing on the parent of a pointerover target that is removed during pointerover. (322451@main) (188882772)
  • Fixed Cross-Origin-Embedder-Policy not being ignored in non-secure contexts. (322838@main) (189193030)
  • Fixed Range.deleteContents() and Range.extractContents() removing nodes outside the range when the range end is moved during the operation. (322920@main) (189262302)
  • Fixed the element.dataset named getter to no longer match non-data-* attributes or invalid property names. (322936@main) (189263319)
  • Fixed NodeIterator leaving its reference on a detached node when an ancestor of the reference node with no following node in the root is removed. (322933@main) (189263890)
  • Fixed requestIdleCallback() handles above 2^31 so they can be cancelled with cancelIdleCallback(). (322942@main) (189266546)
  • Fixed secure context status being determined after document creation instead of when the document is created. (322939@main) (189268799)
  • Fixed the document’s default event handler running twice for bubbling events targeted at the document, which fired DOMActivate twice. (323065@main) (189379133)
  • Fixed requestIdleCallback callbacks no longer running after removing a same-origin iframe that had a pending setTimeout. (323148@main) (189379748)
  • Fixed Window-only and DedicatedWorkerGlobalScope-only types being deserialized in other kinds of workers. (323120@main) (189423491)
  • Fixed moveBefore() leaving selectors that depend on the child list, such as :has() and :empty, stale after a move. (323044@main) (189461850)
  • Fixed FileSystemHandle objects being deserialized in non-secure contexts. (323219@main) (189588333)
  • Fixed SpeechRecognitionResultList being exposed in non-secure contexts. (323326@main) (189631080)
  • Fixed DOMException and QuotaExceededError not being exposed in every global scope. (323313@main) (189677643)

Deprecations

  • Removed the unimplemented document.implementation.createCSSStyleSheet() method. (322805@main) (142045904)

Web Extensions

New Features

  • Added support for browser.notifications.update() in web extensions. (322071@main) (187615870)
  • Added support for browser.notifications.clear(), browser.notifications.getAll(), and browser.notifications.getPermissionLevel() in web extensions. (322297@main) (187616262)

Resolved Issues

  • Fixed storage.local.get() returning the same array or object instance for distinct empty arrays and objects in a stored value. (323003@main) (189204323)
  • Fixed extension page subframes to have unpartitioned storage access. (323034@main) (189301936)

Web Inspector

New Features

  • Added a CSS keyframe animation editor to Web Inspector. (322820@main) (15801500)
  • Added stack trace popovers to Web Inspector. (322748@main) (20582649)
  • Added evaluation previews to the Web Inspector console. (322754@main) (182773473)
  • Added basic WGSL syntax highlighting. (322649@main) (189147091)
  • Added Web Inspector Graphics instrumentation for updates to the label of WebGPU devices and pipelines. (322793@main) (189247758)

Resolved Issues

  • Fixed Find in the Elements tab not matching HTML elements and attributes when the search text contains a space character. (323277@main) (109289803)
  • Fixed Log Message breakpoint actions to log objects as rich console arguments instead of plain text. (322733@main) (116907593)
  • Fixed the Infos and Debugs scope bar items disappearing from the console after the console is cleared. (323269@main) (125621103)
  • Fixed await not being supported in the console in some scenarios. (323272@main) (127381329)
  • Fixed Styles to correctly account for declarations marked !important within a CSS @layer rule when computing style overrides. (323275@main) (151931708)
  • Fixed console log messages dismissing the DOM Event popover. (323306@main) (153842239)
  • Fixed Beacon resources in the Sources tab showing an error instead of the response content. (323270@main) (170805067)
  • Fixed the wrong source code location being shown for inline scripts with a source map. (322747@main) (182487329)
  • Fixed Web Inspector to compare resolved resource types after receiving a response. (323274@main) (183988946)
  • Fixed Web Inspector to no longer automatically invoke native getters on functions and prototype objects. (323271@main) (184191697)
  • Fixed the Web Inspector frame selector popup disappearing when paused in the debugger. (322739@main) (186908754)
  • Fixed Web Inspector to clear the active call frame when its target is removed. (322734@main) (186984661)
  • Fixed Web Inspector not offering JavaScript runtime completions for BigInt values. (322731@main) (186985019)
  • Fixed Web Inspector to preserve explicit execution context selections across back-forward navigation. (323281@main) (186985083)
  • Fixed Web Inspector to preserve newer execution context selections during navigation. (323282@main) (186985387)
  • Fixed the Network emulation tab bar icon appearing inverted in dark mode in Web Inspector. (322729@main) (187758172)
  • Fixed the Styles panel showing var() with a non-ASCII custom property name, such as var(--色), as invalid even though it resolves. (322076@main) (188169850)
  • Fixed the debugger leaving no active call frame when the active target resumes while another target is still paused. (322843@main) (188827760)
  • Fixed Web Inspector to only update the currently active Timeline recording. (322738@main) (189207884)
  • Fixed the Elements tab to include the host element when pushing a pseudo element. (322871@main) (189321868)
  • Fixed Web Inspector to complete rendering notifications before the next rendering update. (322873@main) (189322496)
  • Fixed back/forward cache restore incorrectly reporting a navigation failure after a pagehide beacon. (322983@main) (189350210)
  • Fixed Web Inspector reporting “domain already enabled” errors when going back to a page restored from the back/forward cache after a process swap. (323239@main) (189375630)
  • Fixed the loaderId changing when a navigation continues in another process. (323167@main) (189567072)
  • Fixed the selected node not being highlighted when hovering keyframe headers in the Elements tab. (323260@main) (189669693)
  • Fixed the Elements tab offering Duplicate Selector, Add Rule, and Create Rule context menu actions for keyframes. (323263@main) (189669755)
  • Fixed filtering styles in the Elements tab incorrectly hiding matching keyframe sections. (323262@main) (189669803)
  • Fixed the Network tab reported response timing not accounting for network throttling. (323261@main) (189669852)
  • Fixed the Storage tab hiding or mishandling entries with an empty key or value. (323267@main) (189669876)
  • Fixed importing a Timeline recording modifying more than the imported recording. (323268@main) (189670026)
  • Fixed search results missing matches on consecutive lines. (323264@main) (189670067)
  • Fixed revealing a source location from the Console selecting the wrong location in a pretty printed script. (323265@main) (189670127)
  • Fixed the Console missing known parameters for some native DOM methods. (323307@main) (189689587)
  • Fixed an uncaught ReferenceError for row in the Layout Timeline overview graph. (323308@main) (189689709)
  • Fixed an uncaught TypeError in the Console when formatting table parameters for a logged message with no parameters. (323363@main) (189724207)

WebGL

Resolved Issues

  • Fixed WebGL default framebuffer queries to be answered at the WebGLRenderingContext level. (322700@main) (188899947)
  • Fixed an issue where resizing a canvas with separate width and height assignments could lose the WebGL context. (323298@main) (188900757)
  • Fixed a WebGL canvas becoming blank after its drawing buffer was resized when painted without accelerated compositing on Windows. (322870@main) (189321624)
  • Fixed full clears of renderbuffers being treated as partial clears under robust resource initialization. (323300@main) (189506198)
  • Fixed renderbuffers being initialized on the CPU in the Metal backend. (323297@main) (189606864)

WebRTC

Resolved Issues

  • Fixed RTCCertificate objects being deserialized in workers. (323182@main) (189499857)

October 22, 2026 09:22 PM

October 21, 2026

Nikolas Zimmermann: Making LBSE performant

Igalia WebKit

This is the third post about this year’s work on the Layer-Based SVG Engine (LBSE) in WebKit. In the first part I described conditional layer creation, which fixes the weakest point of the original LBSE design: a RenderLayer for every SVG renderer. In the second part I explained paint order segments, the design that keeps SVG’s document order intact when composited elements sit next to siblings that have no layer of their own. At the end of the second post I promised a dedicated post about the performance work, to follow after my holidays. It took longer than planned, but it is here just in time for my talk “Are We LBSE Yet?” at the WebKit Contributors Meeting 2026.

This post is longer than I usually write, and it contains plenty of statistics. I am aiming to convince you that we take performance measurements seriously and compare both engines in a fair way.

Why Suits?

With LBSE, SVG can take part in the RenderLayer tree, just like HTML/CSS. SVG content can then use hardware-accelerated compositing, accelerated transform animations, 3D transforms, perspective and z-index. But as I explained in the first post, none of that matters until LBSE is at least as performant as the legacy SVG engine on regular, non-accelerated SVG content.

One of the benchmarks we use to measure SVG performance is MotionMark 1.3.1, and in particular its Suits subtest, which I already introduced in the first post. As a quick reminder, Suits builds a flat <svg> full of clipped <rect> elements and <path> elements, each with a gradient. A requestAnimationFrame loop changes the transform attribute of every shape in each frame, and the score is how many shapes the engine keeps moving at 60 FPS. Suits avoids the compositing fast path, so LBSE brings no advantage there, only potential overhead. On top of that, LBSE competes against a legacy SVG engine that has been tuned for two decades. No surprise, then, that in April 2026 LBSE scored 26.8% below Legacy on Suits, the largest gap of all the benchmarks we track. That made Suits the focus of our profiling and optimization work in the following months.

A fair comparison

We run only the Suits test, in MotionMark’s ramp mode with a 60-second ramp. It runs in MiniBrowser, in fullscreen, on an Apple M4 Max with macOS 26.5. For every revision, WebKit is built once, in release mode. LBSE is just a runtime setting, so both engines run the exact same binary. That way LBSE is always compared against Legacy on the same WebKit revision, instead of against a Legacy score that was measured once and then reused. If an improvement lands somewhere in the shared WebCore code, both engines pick it up, so it does not show up as an LBSE win, which is exactly what we want.

For each revision, each engine first gets one warmup run, whose result is thrown away. Then the runs are interleaved: Legacy, LBSE, Legacy, LBSE, Legacy, LBSE. Before every run, all WebKit processes are killed, and background activity on the machine is kept to a minimum. MotionMark reports an 80% confidence interval for every run, and when that interval is ±10% or wider, the ramp did not converge and the score cannot be trusted. Those runs are dropped and repeated, so every data point that we use to compare LBSE with Legacy is the median of three runs that did converge, for both engines at every revision. The next section discusses in detail why the median is a good choice here, and how to assign an uncertainty to each data point derived this way.

Signal or noise?

Almost every conclusion in this post comes down to one question: is a difference between two numbers significant, or could it just be noise? So the size of the noise matters a lot, and deserves an in-depth study and a corresponding statistical analysis, which is a fun topic for a former astroparticle physicist like me.

One run. A single MotionMark run keeps raising the complexity of the scene, and its score is the highest complexity that still renders at 60 FPS. Besides the score, MotionMark computes the 80% confidence interval mentioned above, which says how precisely the ramp pins down that score. Let’s call it Ione\boldsymbol{I}_{\textbf{one}}Ione​. Across more than 150 runs per engine, the median Ione\boldsymbol{I}_{\textbf{one}}Ione​ is ±1.1% for LBSE and ±2.4% for Legacy.

One MotionMark ramp: frame rate over complexity, the score where 60 FPS can no longer be held, and its 80% interval

One run: the score is the highest complexity still rendered at 60 FPS, and the 80% interval says how precisely the ramp pins it down.

But that interval only describes a single ramp, not how repeatable the score is when you run it again. In a separate noise study, we ran each engine five times on the same build, at several different revisions. We only kept runs that we call “calm”: each one scored close to the other runs of its series, and none landed clearly below its siblings. A run’s own confidence interval cannot tell whether it is a bad run. Only a comparison with the other runs in the series can. The calm runs scatter with a standard deviation σrun\boldsymbol{\sigma}_{\textbf{run}}σrun​ of about 1.5% for LBSE and 1.4% for Legacy. That scatter is Gaussian-like, and every Gaussian has 80% of its values within ±1.28σ, just like it has 95% within about ±2σ. Therefore 80% of repeated LBSE runs land within Imany\boldsymbol{I}_{\textbf{many}}Imany​ = ±1.28 · σrun\boldsymbol{\sigma}_{\textbf{run}}σrun​ ≈ ±1.28 · 1.5% ≈ ±1.9%, and repeated Legacy runs within ±1.8%. Yet a single LBSE run only claims Ione\boldsymbol{I}_{\textbf{one}}Ione​ ≈ ±1.1%, so it underestimates how much repeated runs scatter. For Legacy it is the other way around: a single run claims Ione\boldsymbol{I}_{\textbf{one}}Ione​ ≈ ±2.4%, which does cover the ±1.8% of repeated runs.

A Gaussian with its central 80% shaded

LBSE: 80% of repeated runs land within Imany ≈ ±1.9%, more than the Ione ≈ ±1.1% interval of a single run.

So, Ione\boldsymbol{I}_{\textbf{one}}Ione​ and Imany\boldsymbol{I}_{\textbf{many}}Imany​ are both 80% ranges, but they answer different questions. Ione\boldsymbol{I}_{\textbf{one}}Ione​ only knows the frame-time data of that single run. Imany\boldsymbol{I}_{\textbf{many}}Imany​ shows where the runs actually land when you repeat them. It is like a bathroom scale that shows your weight to 0.1 kg, while your weight on different mornings still varies by a kilo. A single run cannot see this noise between runs, but repeating them helps: the mean of N runs shrinks Imany\boldsymbol{I}_{\textbf{many}}Imany​ by a factor of N\sqrt{N}N​.

Using the median. Even runs whose ramp converged may score too low when they are not “calm”. At 322610@main, Legacy scored 8585, 8694 and 7307. The median of those is 8585, but the mean is 8195, dragged down by a single bad run.

The three Legacy runs at 322610@main on a line: 7307, the mean 8195, the median 8585 and 8694

Legacy at 322610@main: one bad run pulls the mean down, the median stays with the other two.

To see how much this matters, we looked at about 20 revisions in which nothing performance-relevant landed. We call them “quiet” revisions. This time we kept all runs, not only the “calm” ones from the noise study above. The more runs go into a point, the less the points scatter. For LBSE, a point scatters by 1.55% with one run, 1.34% with two, 1.26% as the mean of three, and 1.19% as the median of three. Legacy goes from 3.89% to 2.83% and 2.34%, and down to 1.52% as the median: its occasional bad runs hurt the mean, but not the median. So the median costs nothing when the runs are clean, and it protects against the bad ones.

Point scatter over about 20 “quiet” revisions by runs per point. LBSE: 1 run 1.55%, 2 runs 1.34%, mean of 3 1.26%, median of 3 1.19%. Legacy: 3.89%, 2.83%, 2.34%, 1.52%

How much a point scatters over ~20 “quiet” revisions, depending on how many runs it combines. With two runs, the median equals the mean.

One point. Every point in the comparison plots below is the median of three runs of one engine at one revision. Such a point scatters by 1.19% for LBSE and 1.52% for Legacy. We call this scatter σpoint\boldsymbol{\sigma}_{\textbf{point}}σpoint​ and use it as the uncertainty of every point from here on.

LBSE points over about 20 “quiet” revisions, scattering by ±1.19% around their mean

σpoint: how much a point, the median of three runs, scatters across “quiet” revisions, all runs included.

One step. A step is the change in one engine’s score from one revision to the next. Both points fluctuate independently, so a step is noisier than a single point. Independent noise adds up in quadrature:

σstep=σpoint2+σpoint2=2⋅σpoint\sigma_{\text{step}} = \sqrt{\sigma_{\text{point}}^2 + \sigma_{\text{point}}^2} = \sqrt{2}\cdot\sigma_{\text{point}}σstep​=σpoint2​+σpoint2​​=2​⋅σpoint​

That is 2⋅1.19%≈1.68%\sqrt{2}\cdot 1.19\% \approx 1.68\%2​⋅1.19%≈1.68% for LBSE and 2⋅1.52%≈2.15%\sqrt{2}\cdot 1.52\% \approx 2.15\%2​⋅1.52%≈2.15% for Legacy. Strictly speaking, neighboring points are slightly correlated, which makes a step a bit less noisy than this. We ignore that for simplicity, so the 95% ranges we derive next are slightly too wide.

The 95% range. So far we have used 80% ranges, but only because MotionMark reports its interval at 80%. To call a step significant, we want a stricter bar: noise alone should only rarely produce a step that large. So from here on we use 95% ranges. Since 95% of the noise stays within ±2σ, the 95% range of a step is ±2⋅σstep\pm 2\cdot\sigma_{\text{step}}±2⋅σstep​:

Step Noise (95% range)
LBSE, from one revision to the next ±2 · 1.68% ≈ ±3.36%
Legacy, from one revision to the next ±2 · 2.15% ≈ ±4.30%

On its own, a step between two revisions that is smaller than this cannot be told apart from noise. Averaging can improve the sensitivity, as the gap plot further down shows. In the score plots, the shaded band around each line shows the 95% range of one point, ±2 · σpoint\boldsymbol{\sigma}_{\textbf{point}}σpoint​.

April → October 2026

With all the ingredients in place, and a solid understanding of the statistical uncertainties, we can now look at what six months of work achieved. In October 2026, we essentially reached performance parity with the legacy SVG engine on Suits. The rest of this post discusses in detail which changes were necessary to reach that goal, but let’s first look at the results.

MotionMark 1.3.1 Suits, median score per WebKit revision, Legacy versus LBSE

Suits scores of LBSE (orange) and Legacy (blue), April to October 2026. Shaded: the 95% range of one point, ±2.38% for LBSE and ±3.04% for Legacy.

The plot shows the Suits score of both engines for 62 WebKit revisions between April 17 and October 5, 2026. LBSE, the orange line, went from 5775 points in April to 8682 points in October, an improvement of +50.3%. That is a lot more than the 26.8% gap we started with, and there are two reasons for it. The gap is measured against the Legacy score, while the improvement is measured against LBSE’s own, lower score, so closing a 26.8% gap already takes an improvement of 7888 / 5775 ≈ +37%. And Legacy got faster as well: it went from 7888 points to 8736 points, +10.8%, most of it from a single commit on August 21 that made it 6.5% faster (more on that below). So LBSE not only had to close the gap, but also had to catch up with what Legacy gained on top. Now let’s look at the changes that made this possible.

The patches that stand out

There was no single magic patch, but many different areas in LBSE that needed improvement. The plot below shows how the LBSE score changed from one measured revision to the next. Green columns are steps where LBSE got faster, red ones where it got slower, and everything inside the gray band is within the ±3.36% noise of one step. The black marks show how the legacy SVG engine changed between the same two revisions. When both engines move by a similar amount, that is either noise that hit both alike or a WebKit change that helped both, not an LBSE patch. Legacy is noisier, so a black mark only stands for a significant change when it lies outside Legacy’s own noise range of one step (±4.30%, see the table above). Two of them do, and both are circled: a genuine, legacy-only improvement of +6.5% in August, and a fluke of −5.9% in September.

Change in the LBSE median from the previous measured revision

Each column is the change in the LBSE score from the previous measured revision. The black marks show how the legacy SVG engine changed between the same two revisions. Labeled: the LBSE steps outside the ±3.36% noise. The red circles mark the two Legacy steps outside Legacy’s own ±4.30% range.

Six LBSE steps are outside the ±3.36% noise. Five of them are patches, the bold ones in the table below. The sixth, +3.5% on September 30, is not: no SVG change landed there. It only shows up because the revision before it (September 29, 72 commits earlier) happened to score unusually low.

This table lists the LBSE optimization patches that affect Suits, together with the LBSE step measured at its revision:

When Revision Patch Step
Apr 21 311726@main Suppress LayoutRepainter in hidden and anonymous containers +1.4%
Apr 27 312090@main Cache the local transform of non-layered elements +1.3%
May 19 313491@main Skip the redundant fill clip for rects clipped inside their bounds (from Legacy) +4.7%
Jun 3 314458@main Defer per-element transform attribute work (one flush per frame) +2.5%
Jul 2 316428@main Cache the resolved fill / stroke paint server +4.6%
Jul 6 316543@main Cache the concatenated transform attribute matrix +4.8%
Jul 6 316545@main Cache the viewport size for the transform reference box +1.0%
Jul 10 316880@main Coalesce the transform flush into one repaint per container +2.6%
Jul 13 317077@main Cache the transform origin +1.4%
Aug 1 318375@main No RenderLayer for SVG clip-path +8.9%
Aug 2 318410@main Skip the outline paint pass for outline-free renderers +5.6%
Aug 3 318440@main Skip the per-frame visual-overflow recompute when culling +1.8%
Aug 10 318882@main Cache the paint server on the renderer +2.9%
Aug 18 319390@main No RenderLayer for SVG mask (Suits has no masks) +0.8%
Oct 5 322676@main Avoid redundant save/restore pairs (on average 8.5 → 6.5 IPC messages per shape) +0.9%

Steps that are not marked bold are within the ±3.36% noise of a single step. They still add up, but each of them on its own cannot be told apart from noise. Therefore we only look at the most impactful patches here, and discuss those in more detail.

The first high-impact patch landed in May, and it borrowed an optimization from Legacy. When a rect is clipped by a <clipPath> whose bounds lie inside the rect anyway, the extra clip for the fill is redundant. Skipping that clip in LBSE as well was worth +4.7%.

In July, the focus shifted to caching results that LBSE recomputed more often than necessary. Every shape in Suits is filled with a gradient, which SVG calls a paint server. Every time LBSE painted a shape, it looked up that gradient again from the fill and stroke properties. Caching the resolved paint server raised the score by +4.6%. The second July patch dealt with the transforms that Suits animates. Each shape’s transform attribute is a list of transform functions, such as translate(…) rotate(…), and multiplying them together yields a single matrix. LBSE used to perform that multiplication up to three times per frame for every shape, although the result only changes when the attribute does. Caching that matrix added another +4.8%.

August brought the biggest jump, and it completed work that had started in June. Conditional layer creation, the topic of the first post, removed the RenderLayers of the paths in Suits on June 22, but that did not help on its own, because every clipped rect still needed a layer to be able to apply its clip-path. Making clip-path layer-free, as announced at the end of the second post, was the single largest step, +8.9%. The clip setup now lives in a shared ClipPathPaintScope, which is used by two code paths: CSS boxes and layered renderers go through RenderLayer::setupClipPath(), while LBSE’s layer-free SVG shapes use it directly during painting. Since then, the only layer left in Suits is the one for the <svg> root.

With the layers gone, smaller per-shape costs started to show up in the profiles. One of them was the outline paint pass: every SVG child went through it, although most renderers have no outline, so for them the pass did nothing at all. Skipping it for outline-free renderers brought another +5.6%, and from early August on, LBSE was ahead of Legacy.

The gap over time

The patches show what made LBSE faster, but the question this whole effort is really about is a different one: how far behind Legacy is LBSE, or is it even ahead? To answer that, we look at the gap: at every revision, the LBSE score relative to the Legacy score of the same build, in percent.

LBSE relative to the legacy SVG engine in percent, per revision

LBSE relative to Legacy: above zero, LBSE is faster. Gray: the ±2.7% noise range of a single gap value.
Dashed: the averages before and after August 21, with their ±0.8% range in green.

How precise is the gap? Both engines run interleaved on the same build, so the part of the noise they share cancels in the gap, and so does any change that affects both alike. Let σgap\boldsymbol{\sigma}_{\textbf{gap}}σgap​ be how much the gap scatters around the two dashed averages in the plot. We determined it with a noise model, whose details we omit here for brevity, and it comes out at about 1.35%, less than the 1.192+1.522 %≈1.93%\sqrt{1.19^2 + 1.52^2}\,\% \approx 1.93\%1.192+1.522​%≈1.93% that two independent engines would give. So the noise of a single gap value stays within about ±2⋅σgap≈\pm 2\cdot\sigma_{\text{gap}} \approx±2⋅σgap​≈ ±2.7% in 95% of cases, as visualized by the gray band in the plot. The average of about 20 revisions is known much better, to ±0.8% (the noise model accounts for correlations between neighboring revisions), shown by the green bands. That precision is the reason for building this model in the first place: it lets us say, in a statistically solid way, whether LBSE is ahead of or behind Legacy, even when the difference is only about 1%.

Armed with a good understanding of its uncertainty, we can now analyze the gap over time precisely. The gap closed steadily from April on and crossed zero in early August. From early August to August 21, LBSE was ahead of Legacy, on average by 2.0%, with a best margin of +4.8% on August 21, right before the commit discussed below. Then a single commit made Legacy 6.5% faster, which put it back in the lead. Over the 18 revisions from August 21 to October 3, before the latest LBSE patch, LBSE was behind by 1.4% on average. Both averages are known to ±0.8%, so both are significant: LBSE really was ahead in August, and it was slightly behind afterwards.

Why the August lead went away

When I first saw the gap turn negative again in late August, I assumed we had regressed. Measuring many more revisions around that point narrowed it down to a single commit.

LBSE vs Legacy gap per revision from Aug 18 to Aug 24, with days marked

The gap from August 18 to 24, one point per measured revision, with vertical lines between days.
It drops at a single commit, 319635@main: Legacy gained 6.5%, LBSE stayed within the noise.

WebKit paints through a GraphicsContext, which holds the current drawing state, such as the transform, the clip and the fill and stroke settings. Painting code that temporarily changes this state wraps the change in a save() and a restore(), which push the state onto a stack and pop it off again. In commit 319635@main, such a save/restore pair around the SVG gradient fill and stroke was removed, because it was redundant. Since WebKit on macOS paints in the GPU process, each save and each restore is an IPC message from the WebContent process to the GPU process, so the pair cost two messages per gradient-filled shape and frame, and Suits fills every shape with a gradient.

Legacy jumped by +6.5% with this one commit. LBSE stayed within the noise, because LBSE never sent those messages in the first place. So this commit removed a handicap from Legacy rather than giving it an advantage, and LBSE’s lead in August partly came from that handicap.

A closer look at save/restore pairs revealed that LBSE had redundant ones of its own, around the painting of transformed shapes. The most recent patch, 322676@main from October 5, avoids them and takes LBSE from 8.5 to 6.5 IPC messages per shape on average. It moved LBSE by +0.9% and brought the gap to −0.6% at the latest revision. That is within the noise of one step, but it points in the right direction.

How close did we get?

Let’s end the analysis with a closer look at the weeks since August 21.

Suits scores of both engines since August 21, 2026

Both engines since August 21, shaded by the 95% range of each point. The last point includes the save/restore fix.

In these weeks, the two lines run close together, and their shaded bands overlap everywhere. They also tend to move together: in the dip in late September, for example, both engines drop, although Legacy drops more. The part they share cancels in the gap, and only the rest shows up there. Legacy stays slightly on top in most of these weeks, which matches the −1.4% average from the gap plot. At the last point, after the save/restore fix for transformed shapes in LBSE, the two engines are only 54 points apart: 8682 for LBSE and 8736 for Legacy.

The following table sums up how far each engine has come since April:

Metric Value
LBSE since April 5775 → 8682 points, +50.3%
Legacy since April 7888 → 8736 points, +10.8%
Gap in April −26.8%
Gap August 21 – October 3 −1.4% ± 0.8%, average of 18 revisions, before the last fix
Gap at the latest revision −0.6%, after the last fix (LBSE +0.9%)

So in six months, the gap shrank from −26.8% to about −1%. The latest revision, at −0.6%, is consistent with parity, but as a single gap value, its 95% noise range is ±2.7%, far too wide to pin down a gap below 1%. In a few weeks, after landing a few more optimizations that are still in the pipeline, we will take another close look at the data. My gut feeling says it will confirm that LBSE has reached parity, or is even slightly ahead.

A nice side effect: steadier frames

Before we close the performance analysis, there is one more metric worth mentioning, and here LBSE is already clearly ahead of Legacy: the median confidence interval Ione\boldsymbol{I}_{\textbf{one}}Ione​ of a single MotionMark run. It is ±1.1% for LBSE, less than half of the ±2.4% for Legacy.

Remember that Ione\boldsymbol{I}_{\textbf{one}}Ione​ says how precisely one ramp pins down its score. It gets wide when the frame times jump around during the ramp, so a narrow interval means steady frames. LBSE renders Suits with much more stable frame timing than Legacy. The runs that had to be dropped because their ramp did not converge tell the same story: 69 of the 71 were Legacy runs.

MotionMark's 80% confidence interval for each run, Legacy versus LBSE

The confidence interval MotionMark reports for each run that feeds the plots, as a percentage of the score. Lower means a steadier run. Runs at or above the dashed ±10% line were dropped.

Apart from two revisions in late April, the LBSE line stays flat at around 1% from May on, while Legacy keeps jumping between about 1.5% and 6%, with its largest spikes from late August on.

Beyond performance: features & fixes

Besides performance, there was a second gap between LBSE and Legacy: correctness. When the LBSE work restarted in January 2026, after 17 months without any testing, text did not render at all (fixed in 305312@main), most test baselines were outdated, and there were Legacy fixes that had never reached LBSE. Since then, the expected test failures under LBSE have gone down from 313 to 49, and the expected crashes from 3 to 0. Of the 136 LBSE patches that landed in 2026, about 100 are fixes like these: crashes, text, filters, clipping, masking, the outermost <svg> and more. The full list is on GitHub.

Are we LBSE yet? Almost!

The status of LBSE in October 2026, in a nutshell:

  • Composition: layer-free by default. Still to be investigated: opacity, filters and blend modes, which force a RenderLayer even on leaves.
  • Performance: −0.6% on Suits at the latest revision, pending confirmation. An A/B test by Apple in mid-August found LBSE performance-neutral on Speedometer 3 and MotionMark 1.3.1. To be repeated.
  • Feature parity: 49 expected failures, 29 of them in filters, but also dozens of progressions over Legacy, for example in <foreignObject> handling, fixing design issues in Legacy that are more than 15 years old.
  • Default: not yet. That needs independent verification and the green light from Apple.

Near-parity on Suits is a milestone: it shows the potential of LBSE to compete with the legacy SVG engine, while providing many exciting new features. Until now, choosing LBSE meant accepting a performance cost in exchange for hardware-accelerated animations, z-index, 3D transforms and a code path shared with HTML/CSS. On Suits, which deliberately avoids the accelerated path and is the scenario where LBSE has the least to offer, that cost is now essentially gone, and we are really excited about it.

The road to default

Here is what we still need before LBSE can become the default:

  • Tests: zero regressions, both in WPT and in our own tests.
  • Performance: independent verification by Apple across benchmarks and devices.
  • Coverage: an LBSE-enabled bot, instead of running the LBSE tests manually, so LBSE never breaks silently again.
  • Layers: extend the layer-free approach so that leaves ideally never need a RenderLayer.

Let me close with a huge thanks to Rob Buis, who reviewed most of these patches, and to Simon Fraser, Said Abou-Hallawa, Karl Dubost and Ahmad Saleem for the reviews and the hard questions. And of course thanks to Igalia for funding this round of work. If a fast, hardware-accelerated SVG engine sounds useful to you, we would love to hear from you!

As I said at the beginning, this was a long post with a lot of statistics. I hope I did not bore you, and that the numbers convinced you that both engines got a fair comparison. Thanks for reading to the end!

October 21, 2026 12:00 AM

October 19, 2026

Igalia WebKit Team: WebKit Igalia Periodical #82

Igalia WebKit

Update on what happened in WebKit in the week from October 12 to October 19.

Another busy week for the team! This week we had a variety of fixes, including the regular batch on the Layer-Based SVG Engine, a new pair of properties for WPE WebKit, and a new ApplicationManifest API which improves support for progressive web applications.

Cross-Port 🐱

Add new ApplicationManifest API. This allows looking up the webmanifest for Progressive Web Applications.

Graphics 🖼️

Fixed the repaint rects of SVG text using vector-effect: non-scaling-stroke, first by taking the scale into account in the Layer-Based SVG Engine (LBSE), which used to repaint a larger area than it paints for scaled-up text. A follow-up made the decision per text run, since vector-effect is not inherited and a <tspan> inside a non-scaling <text> paints a regular scaling stroke, and unified the computation so that the legacy SVG engine and LBSE now report identical repaint rects.

Fixed the composited bounds of layers below pixel-moving CSS filter effects such as blur() and drop-shadow(), whose backing store previously missed the pixels the filter samples outside the clip. The clips above a layer are now expanded by the filter outsets of the layer and its ancestors, and a change to those outsets updates the composited bounds of all descendants. This change fixes the cross-platform part, and the CoreAnimation based ports, as well as GTK/WPE.

Fixed repaints when an SVG element switches to a wider clip-path, mask or filter in the Layer-Based SVG Engine (LBSE), which previously only repainted the area it covered before the change and left the newly revealed area stale. Style changes that alter the visual overflow now trigger a repaint of the new bounds as well.

Fixed the repaint region of elements clipped by a <clipPath> with a transform attribute in the Layer-Based SVG Engine (LBSE), where changing that transform repainted the wrong area.

Fixed mix-blend-mode on a document-root <svg> element in the Layer-Based SVG Engine (LBSE), which wrongly blended the page background along with the SVG contents. The blend mode is now applied to the SVG contents only, matching the legacy SVG engine.

Fixed elements staying clipped on screen after their <clipPath> was removed in the Layer-Based SVG Engine (LBSE), because the clipped elements were never repainted. Destroying an SVG resource now notifies its clients, which repaint the area the resource used to cover.

Fixed hit testing of children inside transformed layered SVG groups in the Layer-Based SVG Engine (LBSE), where points outside a shape could hit it and transformed children could be missed entirely.

Stopped recomputing the transform twice on nearly every layout of an SVG container without a layer in the Layer-Based SVG Engine (LBSE). The transform reference box is now remembered for such renderers when transform-box is view-box (the default), so the post-layout update only runs when the box actually moved.

Fixed repaints of SVG groups and their content in the Layer-Based SVG Engine (LBSE), which previously left stale content on screen when something inside a <g> moved or when the <g> itself changed (a new transform / changed clip-path etc.). Images, text and shapes now compute their final position during their own layout, and groups with a layer remember their transform so they repaint both the old and new area on change, which brings text repaints in transformed groups in line with the legacy SVG engine.

Fixed painting of descendants with visibility: visible inside hidden <text> and <foreignObject> elements in the Layer-Based SVG Engine (LBSE), which skipped the whole subtree, unlike the legacy SVG engine. Hidden <g> and <text> containers now also run the mask and clipping mask phases, so such descendants are masked and clipped as well.

WPE WebKit 📟

On WPE expose WindowProperties:geometry and WindowProperties:has-custom-geometry like GTK.

That’s all for this week!

By Igalia WebKit Team at October 19, 2026 07:23 PM

Blocking Identity Resolution Infrastructure

Surfin’ Safari

Apple and WebKit have shipped protections against web tracking for a long time. We put privacy protections in place for cookies in the very first version of Safari, we invented storage and cache partitioning and shipped it ten years before other major browsers, and we’re actively fighting device fingerprinting.

We do this because users deserve to not be tracked, not across websites and not covertly through fingerprinting, unless they explicitly opt in to it. See WebKit’s Tracking Prevention Policy for a comprehensive overview.

Identity Resolution, or the Post-Cookie Era

We fully blocked cross-site cookies six years ago. That was a huge step forward for privacy on the web.

However, the tracking industry has not sat idle since.

A “post-cookie” tracking method emerged, called identity resolution. In this scheme, third parties (i.e., not the website owner) invisibly collect your email address when you log in or sign up for a newsletter. They send the email address to their servers, create an opaque tracking ID permanently linked to your email address, and send that tracking ID back to the webpage. The tracking ID is stored on the website and can from thereon be used for arbitrary purposes linked to your email address, such as building a profile of your browsing or targeting ads at you across websites. Logging out or unsubscribing from that newsletter does not remove the tracking ID or your email address stored with the third party.

Diagram showing four websites (Website 1, 2, 3, and 4) each sending Jane's email address (jane@mail.example) to a central 'Identity resolution server' and receiving back a different tracking ID for each site (Tracking ID 1 through 4), illustrating how an identity resolution service links a shared identifier across multiple sites.

Over time, these third parties collect even more data as you log in using your email address or fill in forms with personal data. They use this to create a data profile of you, known as an identity graph. Here’s an illustrative example of what such a graph may look like:

  Illustration of a person labeled

Email addresses almost always constitute Personally Identifiable Information, or PII. Another example is your phone number. Such information not only allows for cross-site tracking, but also cross-device tracking. For the majority of users, their email address serves as a globally unique ID that they keep for years, even decades. When users provide information for one purpose, it breaks their expectation to use it for another unstated purpose. For example, a user who logs in or signs up for a newsletter is not expecting to have their information sent to a third party for other, potentially long-term, intents.

First party personalization is not tracking, and is not what our technologies seek to prevent. But even if identity graphs are only scoped to data from a single company, i.e. a first party, the central identity resolver is a third party and it holds cross-site, cross-device, and cross-party data about the user and can perform matching and targeting functions in the capacity of a clearinghouse. That is a tracking capability that each first party does not have on their own.

Diagram showing an online store asking 'Which of my users should I promote ice skates to?' A third-party identity resolver in the middle, matching across multiple first-party datasets, contains profiles for Emre, Aline, Mike, and two separate 'Jane' profiles — one from the online store and one from an ice hockey website — which are linked together in a dotted circle labeled 'Match.'

What We Are Doing To Protect Users Against Identity Resolution

Some companies serve as third-party infrastructure to facilitate identity resolution. They are present but invisible on many webpages where you enter your email address or use your email address for login purposes. They are not themselves login providers or newsletter services, they’re just there to track you.

In our iOS, iPadOS, macOS, and visionOS 27 releases, Safari and WebKit block network access to identity resolution infrastructure to prevent cross-site tracking. This stops them from sending your email address to their servers and all the downstream effects of that. The blocking is done on the domain level, meaning they can’t just change the structure of the network request to work around the protection.

The same four-website and identity-resolution-server diagram as before, but each website's request is blocked by a red shield-with-X icon, illustrating Safari blocking the requests and identity resolution being prevented.

Hide My Email

As an iCloud+ subscriber, you are offered the service Hide My Email which enables you to submit unique, randomized email addresses to every new website while still getting their messages in your inbox. Unique, random email addresses provide additional protection against email-based tracking.

Our Commitment to Web Privacy

It’s not enough to block cross-site cookies to prevent cross-site tracking today because the tracking industry has not stopped trying to track users on the web. They have ushered into what they call the post cookie era and in our latest releases we have put strong protection in place. We will continue to prevent covert and cross-site tracking by default, while maintaining the ability for websites to provide first-party personalization to their users.

October 19, 2026 05:50 PM

October 12, 2026

Igalia WebKit Team: WebKit Igalia Periodical #81

Igalia WebKit

Update on what happened in WebKit in the week from October 5 to October 12.

A CSS invalidation bugfix, moving steps for optgroup and hr elements, and a handful of fixes to the Layer-Based SVG Engine compose this week's bag of updates, changing to a calmer pace compared to the packed weeks we've had recently!

Cross-Port 🐱

Fixed various CSS selector invalidation when an element is moved.

Add moving steps for optgroup and hr elements.

Graphics 🖼️

Fixed buffered-rendering="static" for SVG <image> elements in the Layer-Based SVG Engine (LBSE), where the image used to be drawn at the wrong position inside its offscreen buffer and without its own transform. The image is now painted into the buffer relative to its own position, and the buffer is drawn back with the current transformation, which matches the behaviour of the legacy SVG engine.

Added support for pointer-events: bounding-box on SVG text in the Layer-Based SVG Engine (LBSE), so clicks that miss every glyph now fall back to hitting the text's bounding box (see pointer-events). It also fixed hit testing of transformed children in SVG containers, which were being tested a second time without their transforms.

Fixed text not following its path in the Layer-Based SVG Engine (LBSE) when a <textPath> points to a path that doesn't exist yet. The text is now laid out along the path as soon as that path appears in the document, which also covers removing and re-adding the path or changing href to another path.

That’s all for this week!

By Igalia WebKit Team at October 12, 2026 07:21 PM

October 06, 2026

WPE WebKit Blog: WPEPlatform: the new WPE API

Igalia WebKit

With the 2.54 release, WPEPlatform became the default way of integrating WPE WebKit with the underlying platform, and its API is now considered stable. At the same time, the libwpe-based API that WPE has relied on since its beginnings is now deprecated. In this article we explain why this change was made, how applications use the new API, and what is involved in migrating an existing application from libwpe.

Back in 2022 we published an overview of the WPE WebKit project, describing the different components of WPE and how they fit together. Most of what that article explains about WebKit and the WPE API is still valid, but the way WPE connects to the platform has changed considerably since then, so this is a good moment to revisit that part of the picture.

How WPE used to integrate with the platform

Since its beginnings, WPE has delegated graphics and input to code that lives outside of WebKit. libwpe defined a generic interface for these, and a backend, loaded at runtime, implemented that interface for a given platform. WPEBackend-fdo, based on Wayland and other freedesktop.org technologies, was the reference backend, while Cog provided a convenience layer on top for those writing browsers.

This design achieved its main goal: hardware vendors and integrators could support WPE on their platforms without having to modify WebKit itself. However, it also meant that a good part of the platform work was left to the application. To show a web page on screen using WPEBackend-fdo, an application had to:

  • Load a libwpe backend with wpe_loader_init() and initialize it, usually by passing it an EGL display.
  • Create a view backend through the “exportable” API of WPEBackend-fdo, wrap it in a WebKitWebViewBackend, and pass that to the web view.
  • Receive, in a set of callbacks, the buffers exported by WebKit for each frame, present them on screen, release them, and notify WebKit when the frame had been displayed.
  • Collect input events from the windowing system and forward them to WebKit with the wpe_view_backend_dispatch_*_event() family of functions.

As a result, even a simple browser required a fair amount of knowledge of the graphics pipeline, and the code involved was split across three repositories (WebKit, libwpe, and WPEBackend-fdo) that had to be kept in sync. Much of this code was the same from one application to the next, and Cog provided a ready-made implementation of it for applications that did not want to write their own.

What WPEPlatform changes

WPEPlatform is a GObject-based library that lives in the WebKit repository and is built as part of WPE WebKit. It replaces both libwpe and the backends written against it, and it moves the responsibility of rendering and input handling away from the application and into WebKit and the platform implementation.

The library is only used by WebKit’s UI process. As before, the web process renders the page into buffers that are shared with the UI process (DMA-BUF buffers on Linux, AHardwareBuffer on Android, or shared memory when rendering in software). The difference is that WebKit now hands these buffers directly to the platform implementation, which takes care of presenting them, without the application having to take part in the process.

The API is built around four classes:

  • WPEDisplay: the connection to the platform, and the object that creates all the others.
  • WPEToplevel: a top-level surface, which is normally a window, or the whole output on platforms that have no windows.
  • WPEView: the surface where a single web view is rendered, hosted in a toplevel. It also receives the input events for that web view.
  • WPEBuffer: the pixel data produced by WebKit and handed to the view, with a subclass for each type of buffer.

These are complemented by smaller classes for screens, keymaps, settings, input methods, gestures, gamepads, the clipboard, and accessibility. Several of them, such as screens, settings, input methods, and gestures, had no equivalent in libwpe.

WPE WebKit ships with three built-in platform implementations: Wayland, DRM/KMS (for devices that drive the display directly, without a compositor), and headless (for testing and offscreen rendering). Other implementations can be developed out of tree and installed as modules, which WPE WebKit discovers at runtime. wpe-platform-gtk, which embeds WPE web views in GTK 4 applications, is an example of this.

A diagram of the WPE architecture: the application uses WPE WebKit, which includes the WebKit engine and API and the WPEPlatform API. WPEPlatform has built-in Wayland, DRM/KMS, and headless implementations, and custom implementations can be provided for other platforms.

Using WPEPlatform in an application

For most applications, WPEPlatform is not visible at all. A WebKitWebView created without a backend selects a platform automatically: WPE WebKit tries the available platform implementations in order of priority and uses the first one that connects successfully. The following program is a complete, if minimal, browser:

#include <wpe/webkit.h>
#include <wpe/wpe-platform.h>

static void
on_view_closed (WPEView *view, gpointer user_data)
{
    g_main_loop_quit (user_data);
}

int
main (int argc, char *argv[])
{
    g_autoptr(GMainLoop) loop = g_main_loop_new (NULL, FALSE);
    g_autoptr(WebKitWebView) web_view = g_object_new (WEBKIT_TYPE_WEB_VIEW, NULL);

    WPEView *view = webkit_web_view_get_wpe_view (web_view);
    g_signal_connect (view, "closed", G_CALLBACK (on_view_closed), loop);

    webkit_web_view_load_uri (web_view, argc > 1 ? argv[1] : "https://wpewebkit.org");
    g_main_loop_run (loop);

    return 0;
}

It only needs the wpe-webkit-2.0 pkg-config module to build, which pulls in wpe-platform-2.0 when WPE WebKit is built with WPEPlatform support (the default since 2.54). Note that the closed signal is emitted when the user closes the window, and of the built-in platforms, only Wayland emits it. On DRM and headless the application decides by itself when to exit.

The platform API comes into play when an application needs more than these defaults. The most common cases are the following.

Choosing a platform. The WPE_PLATFORM environment variable (wayland, drm, or headless) forces a given platform without any changes to the code. An application that is meant to run on a single platform can also create the display itself and pass it to the web view:

#include <wpe/wayland/wpe-wayland.h>

g_autoptr(GError) error = NULL;
g_autoptr(WPEDisplay) display = wpe_display_wayland_new ();
if (!wpe_display_connect (display, &error))
    g_error ("Could not connect to Wayland: %s", error->message);

WebKitWebView *web_view = g_object_new (WEBKIT_TYPE_WEB_VIEW,
                                        "display", display,
                                        NULL);

The Wayland-specific API is available with the same wpe-webkit-2.0 module, but an application that depends on it can check for the wpe-platform-wayland-2.0 pkg-config module, which is only installed when WPE WebKit is built with the Wayland platform enabled. The DRM and headless implementations work the same way, with wpe_display_drm_new() and wpe_display_headless_new().

Handling input. Input events are delivered to the WPEView through the event signal before they reach the web page. An application can connect to it to implement keyboard shortcuts, returning TRUE to stop the event from reaching the page:

static gboolean
on_view_event (WPEView *view, WPEEvent *event, gpointer user_data)
{
    if (wpe_event_get_event_type (event) == WPE_EVENT_KEYBOARD_KEY_DOWN
        && (wpe_event_get_modifiers (event) & WPE_MODIFIER_KEYBOARD_CONTROL)
        && wpe_event_keyboard_get_keyval (event) == WPE_KEY_q) {
        g_main_loop_quit (user_data);
        return TRUE;
    }
    return FALSE;
}

g_signal_connect (view, "event", G_CALLBACK (on_view_event), loop);

Controlling the window. The toplevel that hosts the view is available through wpe_view_get_toplevel(), and provides functions to set the title (wpe_toplevel_set_title()), resize, maximize, or switch to fullscreen (wpe_toplevel_fullscreen()). Changes in its state are reported by the toplevel-state-changed signal of the view. How much of this is supported depends on the platform: Wayland implements all of it, the headless implementation only keeps track of size and fullscreen state, and DRM does not support them, since its toplevel always covers the whole screen.

Finally, wpe_display_get_settings() gives access to WPESettings, where applications can override platform settings such as the dark mode preference, reduced motion, or contrast. The prefers-color-scheme, prefers-reduced-motion, and prefers-contrast CSS media queries follow these settings.

Migrating from libwpe

For an application, most of the migration consists of removing code. With WPEBackend-fdo, creating a web view looked roughly like this, with most of the actual work happening in the callbacks of exportable_client:

struct wpe_view_backend_exportable_fdo *exportable =
    wpe_view_backend_exportable_fdo_egl_create (&exportable_client, app, width, height);
struct wpe_view_backend *wpe_backend =
    wpe_view_backend_exportable_fdo_get_view_backend (exportable);
WebKitWebViewBackend *backend =
    webkit_web_view_backend_new (wpe_backend, destroy_backend, exportable);
WebKitWebView *web_view = webkit_web_view_new (backend);

With WPEPlatform, the same is achieved with a single line:

WebKitWebView *web_view = g_object_new (WEBKIT_TYPE_WEB_VIEW, NULL);

webkit_web_view_new() is only available when WPE WebKit is built with the legacy API, so applications need to switch to g_object_new(). The rest of the application code that uses the WebKit API (settings, network sessions, navigation, and so on) does not need any changes. The diagram below summarizes what moves out of the application:

A diagram comparing the two architectures. Before: the application, often through Cog, uses WPE WebKit, libwpe, and WPEBackend-fdo, and takes care of loading the backend, handling exported buffers, and dispatching input. After: the application only uses the WebKit API, and WPEPlatform, inside WPE WebKit, handles rendering and input.

The rest of the libwpe code in an application maps to WPEPlatform as follows:

libwpe / WPEBackend-fdo WPEPlatform
wpe_loader_init() and backend initialization Automatic, or WPE_PLATFORM, or creating a WPEDisplay
Exportable client callbacks, buffer release, frame completion Handled by WebKit and the platform implementation
wpe_view_backend_dispatch_*_event() Handled by the platform; intercept with the WPEView::event signal
Fullscreen handler wpe_toplevel_fullscreen() and the toplevel state

There are a few things in libwpe and WPEBackend-fdo that have no equivalent in WPEPlatform. The process provider API of libwpe is gone, since WebKit is again in charge of launching its auxiliary processes. The only exception is Android, which has its own WPEProcessManager API. The audio extension of WPEBackend-fdo has not been supported since 2.46, and the video plane extension, used to display video frames on hardware overlay planes, has no equivalent yet.

Those who maintain a custom backend for WPEBackend-fdo, rather than an application, will need to port it to a WPEPlatform implementation. This means subclassing WPEDisplay, WPEToplevel, and WPEView, and optionally the input method, keymap, and screen classes. The tutorial on writing a platform implementation covers this in detail. In many cases, extending one of the built-in implementations might be enough: the Wayland one, for example, exposes its wl_display, wl_compositor, and wl_surface objects, which makes it possible to add support for additional Wayland protocols.

On the build side, the legacy API is still built by default in 2.54 and will continue to be maintained while applications migrate. Once an application no longer needs it, it can be disabled at build time with the ENABLE_WPE_LEGACY_API=OFF CMake option. As for Cog, it will not have further stable releases beyond the 0.18.x series, so we recommend that new applications use the WebKit and WPEPlatform APIs directly.

Further reading

The reference documentation for WPEPlatform has been considerably extended for this release, and is the best place to continue from here:

For an example of a platform implementation that lives entirely outside of WebKit, Alex has written about WPE WebKit on Android with WPEPlatform, which shows how far the API can be taken.

If you run into problems while migrating, or find that something you relied on in libwpe is missing, please let us know, either by filing a bug in WebKit’s Bugzilla, on the webkit-wpe mailing list, or in the #wpe Matrix channel.

October 06, 2026 12:00 AM

October 05, 2026

Igalia WebKit Team: WebKit Igalia Periodical #80

Igalia WebKit

Update on what happened in WebKit in the week from September 28 to October 5.

Another week populated with updates! This time we sweep through a new crypto backend, more layer-based SVG engine updates, better filters, and some miscellaneous updates.

Cross-Port 🐱

Add moving steps handling to map, img, label and radio input elements to handle their internal book keeping. This also handles custom element registries.

Initial support to build WPE and WebKitGTK with the OpenSSL crypto backend has landed. This is still in development and not yet intended for use, but progress on bringing it to parity with the libgcrypt backend is ongoing.

Graphics 🖼️

Fixed stacked backdrop filters in the Skia compositor, so an element with a backdrop-filter placed over an earlier element with its own backdrop-filter now shows that earlier element with its filter applied, instead of without it.

Removed redundant save/restore pairs when painting transformed SVG shapes in the Layer-Based SVG Engine (LBSE), so each shape now uses a single pair, just like the legacy SVG engine. When DOM rendering happens in the GPU process, every state change is an IPC message, so this cuts LBSE from about 8.5 to about 6.5 messages per shape and closes the gap to the legacy engine.

Fixed transformed <clipPath> elements that use clipPathUnits="objectBoundingBox" in the Layer-Based SVG Engine (LBSE), whose transform was wrongly applied in bounding box units instead of user space. Rendering and hit testing now apply it in user space, matching the legacy SVG engine.

Fixed hit testing and repainting of non-scaling strokes in the Layer-Based SVG Engine (LBSE), which kept using the old stroke width after the transform of the shape or one of its ancestors changed. A vector-effect: non-scaling-stroke stroke depends on every transform up to the outermost <svg> element, so its cached bounds are now cleared whenever one of those transforms changes.

Fixed the source area of filters and backdrop filters: a filter's offscreen surface only covered the visible part of its layer, so when a layer was partly scrolled out of the viewport, its drop shadow was cut off even where the shadow itself fell inside the viewport. The surface now also covers the area the filter reads from outside the visible part, as in Chromium, and a backdrop-filter blur is mirrored at the border box as the spec requires, which fixes several web-platform-tests.

Fixed viewport clipping of nested <svg> elements with overflow: hidden in the Layer-Based SVG Engine (LBSE), which did not clip descendants that have their own layer, such as a transformed <g>. Containers that clip their overflow now get their own layer, like containers using clip-path or mask already do, so layered descendants are clipped correctly.

Fixed misplaced child layers of SVG elements with a filter in the Layer-Based SVG Engine (LBSE), which were drawn in the wrong position whenever an ancestor layer had a transform applied.

WPE WebKit 📟

Restored the Direct Rendering Manager (DRM) vertical blank monitor for the legacy WPE API, so rendering is once again paced by the display's actual refresh cycle instead of a fixed 60 Hz timer. Two regressions had silently disabled it: a missing display ID forced the timer fallback, and a shadowed variable broke the display controller lookup.

That’s all for this week!

By Igalia WebKit Team at October 05, 2026 07:21 PM

September 29, 2026

Igalia WebKit Team: WebKit Igalia Periodical #79

Igalia WebKit

Update on what happened in WebKit in the week from September 21 to September 28.

Following the stable releases last week, we have the first security advisory covering fixes included in them; the flurry of fixes and polish for the Skia compositor continues; SharedArrayBuffer gets re-enabled, and more.

Cross-Port 🐱

Fixed a crash on exit in WebKitGTK and WPE WebKit, caused by the EGL display being torn down in an atexit() handler while other threads were still using it, by now destroying it on the main thread once the GPU process has stopped its WebGL thread and the web process has closed its pages.

Fixed moving steps for source element to account for the <media> and <model> elements.

JavaScriptCore 🐟

The built-in JavaScript/ECMAScript engine for WebKit, also known as JSC or SquirrelFish.

SharedArrayBuffer is now enabled for the WPE and GTK ports. SharedArrayBuffer is exposed when the origin is cross-origin isolated. We have enabled 35 associated cross-origin isolation tests. Initialization was designed to work with Android service-launched processes, too.

Graphics 🖼️

Fixed a bug with 3D-transformed elements that are tilted so far away from the viewer that part of them ends up behind the camera, where WebKit got the visible area of the element wrong and computed the hidden part instead. As a result, the visible part of such elements is no longer left blank in WebKitGTK and WPE—painting and hit-testing works properly now.

Fixed oversized damage regions for 3D-transformed layers that cross the camera plane, by clipping their projected polygon against the clip bounds so the damage now matches what the layer actually paints.

GPU renderer small paths now use Skia distance fields. Bitmap atlas entries depended on the transform and subpixel position, causing animated paths to be re-rasterized and uploaded every frame. With distance field indexed entries we can reuse them across transforms. We are improving MotionMark Suits results on Raspberry Pi 4 and desktop.

Fixed the paint order of preserve-3d layers that cross the camera plane in the Skia-based compositor. Layer corners behind the camera used to be flipped to the far side of the screen when projected—layers were sorted against the wrong geometry and far layers painted over near ones. Now the part of a layer that lies behind the camera is clipped away before sorting, which makes complex 3D scenes like the CSS FPS demo render correctly.

Aligned the filter surface with the device pixel grid in the Skia-based compositor, so layers with CSS filters that end up at fractional device positions are no longer resampled when the filtered result is drawn. This fixes wrong colors in the outermost rows and columns of pixels of such layers, which now render the same as they would without a filter.

Fixed SMIL-animated viewBox changes being ignored on the outermost <svg> element in the Layer-Based SVG Engine (LBSE), bringing it in line with the legacy SVG engine.

Fixed edge artifacts on scaled or transformed non-repeating background images in the Skia-based compositor, which painted all composited background images as if they repeat, so a thin line of the opposite edge showed up along the border. Only tiles that actually repeat are painted that way now, which removes the yellow line that showed up above the gun in the CSS FPS demo. This fixes the last known artifact in that demo.

Fixed rendering artifacts in WebKitGTK and WPE WebKit for 3D-transformed layers that extend behind the camera under a perspective (for example a large element under rotateX(90deg)), whose re-composited area came out too small because corners behind the camera were projected onto the wrong side of the frame, and are now clipped away before mapping.

WebKitGTK 🖥️

Fixed touch positions in the GTK port, which were offset by the surface transform, the room left for the client-side decoration shadows, because it was not subtracted from the raw GdkEvent position, so every touch landed away from the finger unless the window was maximized. The same change cancels the touch sequences that were stranded when the web view is unmapped or a dialog was shown, which left the page with a finger that was never released.

WPE WebKit 📟

WPE Platform API 🧩

New, modern platform API that supersedes usage of libwpe and WPE backends.

The ENABLE_WPE_PLATFORM build option has been removed. The new WPE Platform API, which was enabled by default since 2.54, is now always enabled.

Releases 📦️

A new security advisory, WSA-2026-0006, has been published for WebKitGTK and for WPE. This covers issues fixed in the recent 2.54.0 releases, and for the first time includes security issues fixed in the bundled ANGLE and Skia libraries. Updating to the latest stable release is highly recommended.

That’s all for this week!

By Igalia WebKit Team at September 29, 2026 12:40 AM

September 21, 2026

Igalia WebKit Team: WebKit Igalia Periodical #78

Igalia WebKit

Update on what happened in WebKit in the week from September 14 to September 21.

Following up to last week, we have a handful of exciting fixes to WebKitGTK and WPE WebKit covering Sysprof, rendering of CSS "filter" and "backdrop-filter", and the Layer-Based SVG Engine. We also have optimizations, stable releases, and new blog posts!

Cross-Port 🐱

Fixed the pairing of begin and end marks in SysprofAnnotator, which kept only one begin per mark and therefore mistimed recursive, concurrent and overlapping marks, so Sysprof traces of WebKitGTK and WPE WebKit now show correct durations for nested work.

Graphics 🖼️

Fixed CSS filter and backdrop-filter rendering on transformed elements in the Skia compositor used by WebKitGTK and WPE WebKit, where drop-shadow always fell in the same direction on screen instead of turning with the element, blur was scaled by neither the transform nor the device scale factor, and perspective was not handled at all. The filtered subtree is now painted with the layer transform on the canvas into a surface in the layer's own plane at a fixed scale, with the filter applied there and the result drawn back through the layer transform, as Chromium does.

Stopped rasterizing the parts of a tile that the clip discards in the Skia backing store used by the GTK and WPE ports. Both the drawn quad and its source rectangle are now cut down to the clip first, so the rasterizer no longer fills pixels that are immediately thrown away when a tile is larger than the clip.

Fixed the transform attribute on the outermost <svg> element, which the legacy SVG engine ignored entirely and the Layer-Based SVG Engine (LBSE) wrongly applied inside viewBox space. The attribute is now turned into the CSS transform property, one CSS function per SVG function, so that it transforms the element's CSS box, matching the behaviour of Chromium and Firefox.

Releases 📦️

After another six-month development cycle, WebKitGTK 2.54.0 and WPE WebKit 2.54.0 have been published. These are the first stable releases of the 2.54 series, that as a highlight include a completely new compositor based on Skia. As it is becoming tradition with each major release, two blog posts go into details of what's new in WPE WebKit 2.54, and in WebKitGTK 2.54.

This release is a milestone for WPE WebKit: after a couple of years in the incubator, the new WPEPlatform embedding API is now considered stable and recommended for new developments. As part of the stabilization, the WPEPlatform manual now includes not one, but two introductory tutorials, and a migration guide to aid migration from the (now) legacy libwpe-based embedding API.

Note that the libwpe-based legacy API is still available and will be kept in light maintenance mode for the foreseeable future.

Community & Events 🤝

Coinciding with the first stable releases, Carlos García has written about the new Skia compositor that is debuting in the 2.54 series. It includes plenty of details on why and how the new compositor has been built to replace the aging TextureMapper, and measurements that demonstrate how it is bringing graphics performance improvements across the board.

At the same time, Nikolas Zimmermann published a companion article about damage handling in the new Skia compositor that explains how the feature it has been rewritten with a focus on correctness while ensuring that it saves doing unnecessary work without incurring on excessive busywork that would cancel the benefits.

That’s all for this week!

By Igalia WebKit Team at September 21, 2026 08:15 PM

Carlos García Campos: Skia compositor for WPE WebKit and WebKitGTK

Igalia WebKit

WPE WebKit and WebKitGTK 2.54 have been released with a bunch of improvements and new APIs as usual, but there’s one point that kept the Igalia WebKit graphics team busy for the whole cycle: the new Skia-based compositor. The replacement of Cairo with Skia for content rendering has been a success and it’s already well integrated and optimized. We thought we could try to use Skia for the composition too and replace TextureMapper with Skia. TextureMapper was introduced in 2010 for the Qt port and later adopted by other ports. It uses the OpenGL ES API and maintains a collection of shader programs to paint different content. Nowadays TextureMapper is mostly the same code and shader programs, and it’s unmaintained and missing features. However, the performance was good and it has served us really well all these years. So, this time the goal was not to get better results in benchmarks, but to modernize the implementation, reduce the amount of code to maintain ourselves (like all shader programs) and make it easier to implement the missing features and fix existing bugs. This post is a summary of all the work we have done this cycle to implement the new Skia compositor.

SkiaCompositingLayer

The first step was adding an SkiaCompositingLayer class to replace TextureMapperLayer and adapt all the code to use one or the other depending on an environment variable. The initial implementation was based on the TextureMapper one for the things that are common like iterating the layer tree, computing transformations, etc. The way layers produced their contents didn’t change, so we were receiving textures for tiled content, video buffers, WebGL, accelerated 2D canvas, etc. SkiaCompositingLayer created a Ganesh Skia surface to draw those textures using SkCanvas::drawImageRect(). This initial implementation was enough to run the default MotionMark test suite, since it doesn’t use other composition features. Even though performance was not the goal, we had to make sure we didn’t regress. This initial implementation was neutral in MotionMark. We needed tests to implement those features and measure performance at the same time, so we decided to add a new set of tests to MotionMark, just extending the existing tests to require composition, which makes sure that filters, masks, path clipping, transformations, etc. were done by the compositor.

Filters

We first tried implementing filters using an intermediate surface like TextureMapper does. It worked, but the MotionMark score in the filters test was much worse. We realized that with Skia we could implement most of the filters without using an intermediate surface. All filter types except blur and drop shadow can be simplified to an SkColorFilter with SkImageFilter::asAColorFilter() which can be implemented without an intermediate surface, just by setting the color filter in the SkPaint we pass to SkCanvas::drawImageRect(). This not only fixed the performance regression, but also gave better results than TextureMapper, which always needs an intermediate surface.

Masks

There are two different kinds of masks: image mask, where the source mask is an image already, and clip path, where the mask is represented by a path to be clipped. In TextureMapper both are implemented the same way using intermediate surfaces. The mask is painted into a surface and then the masked layer creates an intermediate surface where its contents are first painted and then the mask contents on top using DstIn blend mode. Skia has APIs that allowed us to implement both cases in a much simpler and more efficient way. In the case of image masks, where we already have an image, we paint the mask contents once and keep it cached, and then the masked layer creates an SkShader for the image mask that is passed to SkCanvas::clipShader() without having to paint into an intermediate surface. Clip path masks are even easier, because we can just take the path we get and build an SkPath we can pass to SkCanvas::clipPath(), without having to paint the mask as an image at all or use any other intermediate surface. Once again, masks were not only easier to implement but they ended up being more performant too.

Grouped bar chart of ten MotionMark composition subtests, comparing TextureMapper with the Skia compositor. Filters, clipping and mask tests are three to four times faster with Skia; the three leaves tests are about 20% slower.
MotionMark composition suite, WPE with GPU rendering on a Raspberry Pi 4, comparing TextureMapper (312400@main) with the Skia compositor (313600@main). TextureMapper never implemented blend modes, so its high score on bouncing blend circles is the score for not doing the work.

3D contexts

The implementation of 3D layer contexts is fairly independent of TextureMapper and OpenGL, so we could just take it almost as it was, using SkPath to build the clips and a few other adaptations. We could also fix existing bugs like the z-ordering that has always been broken in TextureMapper.

Two screenshots side by side of the same page. Under TextureMapper a small red box sits flat on top of a green plane rotated in 3D. Under the Skia compositor the red box is much taller and is cut by the plane: a sliver shows past the left edge, the middle is hidden behind the plane, and the right part is drawn in front of it.
The same page rendered by TextureMapper (left) and by the Skia compositor (right), WPE on the same build. The red box intersects the rotated green plane. TextureMapper draws the box flat against the plane, so the intersection is lost; the Skia compositor splits it, drawing the part in front of the plane and hiding the part behind it.

Blend modes

TextureMapper never supported blend modes and they were easy to implement with Skia just using the SkPaint property for it. This made several layout tests start passing.

Batched painting

After implementing all the features we were at a point in which we had the same or better performance in all tests except for three MotionMark compositing tests that were giving much worse results. Those tests use small layers and give a high result which means we end up adding a lot of layers to the scene before we start skipping frames. The root cause was the large number of layers filling the command queue of Ganesh. Skia Ganesh queues the GL drawing operations instead of sending them to the GPU right away. When the surface is flushed for whatever reason, the queued GL drawing operations are then processed and sent to the GPU. This allows Skia to apply nice optimizations like merging several tasks and reducing the amount of draw operations we end up sending to the GPU. In those tests where a lot of layers are created and painted to the compositor Skia surface the internal command queue ends up being huge too. Processing and analyzing such a long queue to optimize what we send to the GPU required more CPU work than what we save by optimizing the GL draw operations. Skia provides an API that allows us to do the batching ourselves. Since the compositor already has information to decide what operations could be merged together, we could reduce the internal queue size in many cases. We can merge SkCanvas::drawImageRect() operations as long as they share the same color filter, blend modes and sampling options. In the best case scenario we could reduce the whole internal queue to just one operation. This time the change improved the results of those tests getting them to about 93% of the TextureMapper score, but still a bit behind.

Promise images

The Skia Ganesh backend requires that an SkImage backed by a texture is created for the current thread GrDirectContext, even if it’s borrowing an existing texture. In WebKit all textures are created with a sharing GL context so that they can be accessed and destroyed from different threads with the same sharing GL context. So, for a layer whose content is an image we had to create a texture in the compositing thread to upload the pixels if the image was not accelerated, or for accelerated images get the texture identifier of the image, and then create another SkImage from the compositing thread borrowing the texture for the current GrDirectContext. The Skia Ganesh backend provides an API to create promise images, which can be created from any thread but targeting a specific thread, providing a fulfill callback that will be called on the target thread when the SkImage is first used to retrieve the wrapped texture. This way we can create the SkImage from the main thread for the compositing thread without using OpenGL at creation time. For non-accelerated images we realized we don’t need to manually create the texture and upload the pixels in the compositor, we can just pass the unaccelerated SkImage to the compositor SkCanvas and Skia will handle it internally much more efficiently than we did. And this change improved those compositing tests much further than we expected. The reason turned out to be the batching from the previous section: Skia merges the entries of an image set by comparing texture proxy pointers, and until now we were wrapping the texture in a new SkImage on every frame for every layer, so hundreds of layers drawing the very same image produced hundreds of different proxies that Skia could not merge. Passing the same SkImage every time collapses all of them into a single draw operation, which is the best case we described above. With batched painting and promise images together we could beat TextureMapper significantly.

Line chart of the three MotionMark leaves subtests by WebKit revision. All three step up sharply at revision 314626 when batched painting landed, and again at revision 315529 when promise images landed.
MotionMark composition suite, leaves subtests, WPE with GPU rendering. Score per revision; higher is better. The same two steps appear with CPU rendering.

Deferred Display Lists (DDL)

When we switched to Skia for painting, we kept the threaded rendering model, just using a separate smaller queue for GPU rendering workers. The GPU workers created their own GrDirectContext to paint the layer tiles. The resulting textures were re-wrapped in the compositing thread for the compositor GrDirectContext using fences for the proper synchronization. We knew this was not the recommended way to use Skia Ganesh from multiple threads, but with TextureMapper we had no other option. However, with the Skia compositor we can do it the recommended way by using a single GrDirectContext in the compositing thread and use Deferred Display Lists (DDL) and promise images to paint the tiles. With DDL, GPU workers no longer use GL at all and they don’t need a GrDirectContext, they paint tiles into a display list that records the GL drawing operations, but without touching GL. For image drawing operations recorded into the DDL, promise images are used too. Since this is now all CPU work we can remove the smaller GPU worker queue and use a single queue with more workers. The compositor replays the DDL into an SkSurface that is then passed to the compositor SkCanvas.

This change fixed rendering glitches on Android and was performance neutral for the whole composition suite and for most of the MotionMark tests, but in MotionMark 1.3 at 15fps it cost 29% in Suits and 14% in Leaves, while improving Images by 9%. Correctness and the other benefits of DDL made us accept those regressions.

Line chart of the MotionMark suits score by WebKit revision. The score drops from about 470 to about 335 when deferred display lists are enabled, returns to 470 when they are disabled, and drops again when they are re-enabled, staying there.
MotionMark 1.3 at 15fps, suits subtest, WPE with GPU rendering on a Raspberry Pi 4. Shaded regions are where deferred display lists were enabled by default. CPU rendering moves less than 1% at all three switches, since it has no GPU worker threads for DDL to change.

Damage

TextureMapper already supported using damage information to optimize the painting while compositing, but it has always been disabled at run time because there were issues we never managed to fix. With the Skia compositor we decided to start from scratch and properly handle the damage information while compositing to render only the parts of the frame that actually changed. I’m not going to go into detail here because Nikolas Zimmermann has written an amazing blog post about it with all the details.

Current situation

The Skia compositor is finished and enabled by default in 2.54. Even though it was not the main goal, it performs better than TextureMapper in most of the benchmarks we run: the composition suite we added is 45% faster, and MotionMark 1.3.1 is 35% faster. The exception is MotionMark 1.3 at 15fps with GPU rendering, which comes out flat, because the Suits and Leaves tests are still about 26% and 10% behind due to the deferred display lists trade-off described above.

We are already working on fixing existing issues in composition that we never fixed in TextureMapper. In the main branch TextureMapper is now disabled by default at build time, and support will be removed soon for the GTK and WPE ports. In 2.54 it’s still a run-time decision so if you find any issue with 2.54, you can check if it’s a Skia compositor regression by trying TextureMapper with WEBKIT_USE_SKIA_FOR_COMPOSITION=0 environment variable.

Bar chart of overall benchmark scores today relative to the TextureMapper baseline. The composition suite is 45% ahead with GPU rendering, MotionMark 1.3.1 is 35% ahead, and MotionMark 1.3 at 15fps is level with GPU rendering and 10% ahead with CPU rendering.
Overall (geometric mean) score, WPE on a Raspberry Pi 4: 320000@main and later against the TextureMapper baseline at 312400-313296@main. Bars start at the baseline. Part of the gain in the MotionMark suites is Skia rendering work rather than the compositor.
Bar chart of MotionMark 1.3 at 15fps subtests, showing the change from the TextureMapper baseline to today. Suits is 26% behind and leaves 10% behind with GPU rendering, while both are well ahead with CPU rendering; every other subtest is level or ahead.
WPE on a Raspberry Pi 4, change from the TextureMapper baseline (312400-313296@main) to 320000@main and later. Suits and leaves are the deferred display lists trade-off, not the compositor switch, which was neutral in this suite.

Future plans

We are already working on further improvements like using promise images for all external textures we have to pass to the compositor. We will explore the possibility of using Vulkan with the Ganesh backend instead of GL and eventually try the new Graphite backend. And of course we will continue fixing any existing issues related to the compositor.

By carlos garcia campos at September 21, 2026 08:40 AM

Nikolas Zimmermann: Bringing damage to the Skia compositor

Igalia WebKit

After two posts on the layer-based SVG engine, this one moves to a very different corner of WebKit: the compositor that the WPE and GTK ports use to compose the final picture on the screen. It is something I have been working on together with Carlos Garcia Campos. Over the last couple of months we have been building a new compositor based on Skia to replace TextureMapper, the OpenGL-based compositor these ports have used for well over a decade. This new compositor is enabled by default in the freshly released WPE WebKit 2.54, and this post comes in two halves. The first is about the compositor itself, what it is and why we wanted it, which Carlos laid out in detail in his Web Engines Hackfest 2026 talk. The second, and the part I want to focus on, is something I built on top of it: teaching the compositor to repaint only the parts of a page that have actually changed from one frame to the next, rather than re-compositing the whole page every time. The idea goes by the name damage in graphics systems in general, and getting it to work well on the new compositor turned out to be an involved project.

The new Skia-based compositor

For years the WPE and GTK ports have composited the page with a component called TextureMapper. It takes the tree of composited layers, most of them backed by a texture, and draws them onto the screen in the right order, with the right transforms, opacity, clipping and so on. That texture holds rasterized page content in the common case, but it can just as well be a video frame or the output of a WebGL canvas. TextureMapper goes back a long way: Nokia introduced it in 2010 for the Qt port, and over the years other WebKit ports adopted it too: GTK, WPE, WinCairo and PlayStation. macOS and iOS never needed it, since the system already provides a scene graph, CoreAnimation, and WebKit builds its layers directly on top of that instead of shipping its own compositor. TextureMapper issues OpenGL calls directly and comes with its own set of hand-written shaders, which it specializes with feature flags and compiles into a separate program for each combination it needs to draw. It has served us well, and its raw performance is genuinely good, but the code had been largely unmaintained for years and it was starting to show. Newer features like blend modes were never implemented, and antialiasing support was basic.

Maintainability wasn’t the only reason for the rewrite. We want the WPE and GTK ports to render on OpenGL or Vulkan, and a compositor written directly against the GL API is the wrong foundation for that, while Skia, the same 2D graphics library WebKit already uses to rasterize page content on these ports, can target either. If the compositor expresses everything it does as Skia draw calls, then the whole question of OpenGL versus Vulkan can be delegated to Skia, and a large category of direct GL code, shader programs and driver workarounds simply disappears.

Some of the nicest improvements were in the features TextureMapper handled awkwardly, or not at all. Filters are a good example: TextureMapper always painted a filtered layer into an intermediate surface, while most filters reduce to a single SkColorFilter that Skia applies in one pass, so the Skia compositor could skip that surface from the start. Masks improved the same way. On TextureMapper both an image mask and a clip path went through the same expensive path, painting the layer into an offscreen surface first and then blending the mask over it to cut away the parts that should not be visible, before finally drawing the result where it belonged. Skia doesn’t require us to manually manage offscreen textures there, since a clip path goes straight onto the canvas with clipPath(), and image masks moved to clipShader() soon after, so the layer is drawn only once. And blend modes, which TextureMapper never supported at all, became almost trivial: one only has to specify the blend mode on the SkPaint object, and the task is done.

The compositor itself, the part that actually replaces TextureMapper and composes the finished layers onto the screen, arrived in April 2026, when Carlos, Vitaly Dyachkov and I landed SkiaCompositingLayer, the first code that composes the layer tree with Skia calls instead of hand-written OpenGL, and by May 2026 it was the default on GTK and WPE. TextureMapper is still there for now, but not for much longer: in the 2.54 stable branch it is one flip of the UseSkiaForComposition setting away, while in main that runtime switch is gone altogether and building TextureMapper at all has become an opt-in USE_TEXTURE_MAPPER CMake option that defaults to off. The Skia compositor is the one this post is about.

How does it compare to TextureMapper?

The real case for the Skia compositor was maintainability, not performance, as Carlos framed it in his talk Refactoring composition in WPE with Skia. It showed at first: the initial Skia compositor landed slower than TextureMapper, which isn’t too surprising given TextureMapper had years of optimization behind it, and it took many weeks of dedicated optimization work to catch up with it and then to finally beat it. Carlos covered that work in a post of his own, so I will only briefly present where the numbers ended up. We track this on the public WPE performance dashboard, which runs the benchmarks continuously on embedded devices (Raspberry Pi 4). The two benchmarks I care about most here are MotionMark 1.3.1 @ 30 FPS and the MM Composition variant, the latter built to stress the compositor specifically rather than page rasterization. Here is how the GPU-rendered WPE configuration scored on a Raspberry Pi 4 over the months the Skia compositor was built, taken from the dashboard and normalized so that the old TextureMapper level resides at 100%:

MotionMark score on WPE (Raspberry Pi 4, GPU rendering) relative to the TextureMapper baseline 160% 140% 120% 100% 80% TextureMapper Skia compositor on by default (313297@main) blend circles back by 313530@main batched painting (314626@main) promise images (315529@main) damage on (318729@main), off again (318770@main) back on (318857@main) Apr May Jun Jul Aug Sep 311070@main 312382@main 314244@main 316168@main 318351@main 320197@main +35% +45% MotionMark 1.3.1 @ 30 FPS MM Composition 1.3.1 @ 30 FPS

Overall scores for the GPU-rendered WPE configuration on a Raspberry Pi 4, from the WPE performance dashboard, each normalized to its own TextureMapper baseline (100%). Points are medians over a handful of adjacent WebKit revisions rather than daily averages, so a step lands close to the commit that caused it.

The graph is rather involved, so let’s take some time to dissect it and discuss the main features.

The first is the step in the middle of May, when the Skia compositor became the default on the 15th and the MotionMark score went from about 100% to about 123% in a single revision, then kept climbing into the low 130s as follow-up performance fixes landed. The composition benchmark did not move at all that day, and the reason is a regression that arrived with the very same commit. One of its subtests, Bouncing blend circles, dropped to about 5% of its earlier score, and because the overall score is a geometric mean over the subtests, that single subtest cancelled out everything the other nine had just gained. Only once that particular subtest climbed back to about 75% of its pre-regression score, on May 20th, did the composition score make its own step, from about 100% to about 125%.

The second is the slower climb through June. On the composition benchmark that is mostly the batched painting and promise image work landing piece by piece, taking it to around 152%. The regular MotionMark score, which barely exercises the compositor, moves much less and peaks around 140%. The third is the deep spike in early August, where the composition score falls off a cliff for a few days. The reason for it is the initial damage support. Using the damage for compositing had been turned on a few days earlier, but it was still a no-op on WPE until damage propagation itself was enabled by default there on the 6th. The composition score collapsed from about 148% to about 64% (compared to TextureMapper performance) overnight, and it was switched off again the next day. Once the cause was found and fixed, it went back on on the 9th, this time without costing anything, and we will come back to that in the second half of this post. Today we have settled on a roughly 45% gain over the old TextureMapper baseline on the composition benchmark, against roughly 35% gain on the regular MotionMark one, which is exactly what you would hope for: the gain is largest where the compositor is stressed most.

Several distinct pieces of work produced the May and June gains, and it is worth naming them, because “the Skia compositor is faster” is really the sum of a handful of separate optimizations that landed over about four months. Once the Skia compositor itself was in place, the two big levers were batching and promise images. Carlos implemented batched painting in June 2026, which groups the image draws the compositor issues for a layer and hands them to Skia together instead of one at a time. Two weeks later layers with image content moved to promise images. Carlos’s post on the Skia compositor explains the details of both changes.

In between, Carlos also switched tile painting over to deferred display lists. With deferred display lists the painting worker threads no longer touch OpenGL at all, they only record what to draw, and the recording is replayed later on the compositor thread. That change was not about speed. It cost some MotionMark score, mostly in the Suits and Leaves tests, so display lists were briefly turned off again. But they fixed rendering glitches on Android and brought both GPU and CPU load down, so they went back on by default at the end of June and stayed.

To highlight the differences between the old and the new compositor, I ran a real-world example of a complex animation on an embedded device and measure GPU load and memory bandwidth consumption, comparing TextureMapper and the Skia compositor under the very same test scenario. The numbers come from a Netdata dashboard running on the device.

GPU load and memory bandwidth for TextureMapper versus the Skia compositor

The left plateau is TextureMapper, the right one is the Skia compositor running the very same animation.

Look at the two plateaus: on the left TextureMapper holds the GPU at around 37%, on the right the Skia compositor runs the identical animation at around 22%, with the memory read bandwidth (the green trace) coming down with it. That gap is pure compositor efficiency.

Now let’s talk about damaging…

If you have never come across the term, my colleague Paweł Lampe wrote a great introduction to damage propagation in the WPE and GTK WebKit ports, and I will only summarize it here. Damage is, in his words, the region of web page view that changed since previous frame and requires repainting. In practice that region is almost always a small collection of rectangles that cover whatever moved, appeared or disappeared since the last frame.

The reason we care is simple: a browser that animates something in the corner of the page should not have to repaint and recomposite every single pixel of the viewport sixty times a second when only a small part is actually changing. If the engine can figure out exactly which rectangles changed, the compositor can restrict its work to those, and the windowing system can get away with a partial update of the window/screen rather than a full one. It is a classic trade, a little extra CPU and memory bookkeeping in exchange for a lot less GPU work, which is exactly the trade you want on the embedded devices the WPE port tends to run on, where the GPU is usually the scarce resource.

Knowing that a single layer changed is not enough on its own, because both the compositor and the windowing system work on the whole picture, not one layer at a time. So whatever changes on a layer, an element repainting, or a transform, filter, opacity or similar property change on the layer itself, first has to be collected as layer damage, and every layer’s damage gets merged into a single frame damage for the whole picture. Two things consume that frame damage: the compositor redraws only the damaged rectangles, and the windowing system presents only the changed region.

How damage passes through the pipeline layer changes repaints, transforms, filters layer damage per composited layer frame damage merged, whole picture compositor redraws only the damage windowing system partial screen update

Paweł did the original work on the TextureMapper compositor: he wrote the code that collects the damage in the first place. In that old implementation the compositing restriction was coarse. TextureMapper scissored to the bounding box of the damage rather than drawing the individual rectangles, and it was off by default, so in practice the damage mostly served to restrict the partial updates sent to the windowing system. The collected damage was still plagued by inconsistencies that showed up as visual glitches, and those were hard to fix in the TextureMapper code, which was much harder to reason about. What follows is how I moved that idea onto our new Skia-based compositor, refactoring a good part of it along the way.

Bringing damage to the Skia compositor

Damage propagation itself had been on by default on GTK since May 2025, but the piece that matters here, using that damage to restrict what actually gets recomposited, was off by default everywhere. To use it on the Skia compositor, and to be able to switch it on at all, I had to do two things: make the collected damage trustworthy, so that it covers every pixel that changes and never misses one, and teach the Skia compositor to restrict its drawing to the damaged rectangles instead of redrawing the whole layer. That turned into a chain of patches, each fairly complex, that landed in July 2026. Let me walk through them in the order they build on each other.

Making the damage trustworthy

Correctness was the first thing to get right: a compositor that repaints only the damaged rectangles has to trust that damage completely, because a single changing pixel that never gets reported keeps its old value on the screen until something unrelated happens to repaint that area.

Two major problems had to be solved. First, each composited layer paints into a backing store, a surface split into multiple tiles, and damage was recorded when a piece of content was invalidated and the tiles covering it were repainted. But a lot of the state the compositor applies while drawing a layer never invalidates any content at all: its filters, masks, clip paths, blend modes, etc. all change the pixels the compositor produces, yet none of them dirties a tile, so no damage was recorded for them. An animated background-position on a directly composited background image, for instance, only shifts the contents tile phase, so the old code reported no damage and the animation simply froze. The fix was to damage the whole layer whenever any of that state changes.

Second, and more subtly, some damage cannot be found by a simple walk of the layer tree at all. A layer that is detached or destroyed is no longer part of the tree, so a tree walk can no longer capture it, leaving whatever it had painted behind on screen with nothing to repaint over it. Masks are not part of the tree walk, backdrop filters paint nothing of their own but have to be redrawn whenever the content behind them changes, and a blur or a contents rectangle can paint outside the layer’s own bounds. I reworked the collection so that the root layer keeps a record of where every layer painted, two rectangles per layer, where it painted last frame and where it paints now, and compares them every frame instead of each layer reporting its own changes. A layer whose rectangle moved, damages both the old location and the new one. Any layer the walk does not visit has disappeared, so the area it used to cover is repainted and its record dropped. This is the patch that brought the collected frame damage close to covering every pixel the frame changes, which is the precondition for turning the feature on without artifacts.

That work didn’t start with those two patches, though. Through May and June a run of smaller fixes had already gone in on the Skia side, for damage that came out wrong when a layer was painted more than once for overlapping regions and again when the cleanup after those repeated paints was missing, for opacity animations whose float value was truncated before it was compared, and for content layers that were simply damaged every frame. Scrollbars needed two attempts of their own: the first, in June, was to limit their damage to what they actually paint. The second came in early August, once propagation was on and the scrollbars started flickering. That was well after the feature had initially been turned on, and it was not the last correctness fix either: opacity animations were found not to damage their descendant layers as late as the end of the month. We are converging on a state where damage is universally correct. If you try the next WPE or GTK release, keep an eye out for (and report) any rendering glitches we might not have noticed ourselves.

Restricting Skia’s drawing to the damage

With the damage trustworthy, the other half was getting the Skia compositor to draw only the damaged rectangles. The foundational piece is small and easy to miss: a rectsForPainting() helper on Damage that returns rectangles which never overlap and never exceed the number of cells of the damage grid. That grid is how Damage keeps itself bounded: it keeps every rectangle it is given up to a fixed limit, and beyond that it maps them onto a coarse grid, 256 pixel cells by default, holding one rectangle per cell and merging anything that lands in the same cell into its bounding box. The limit itself is a tunable preference rather than the hardcoded four it started as. Both properties matter for a compositor that draws each rectangle on its own. Overlapping rectangles would composite translucent content twice, and an unbounded count of them would turn a single draw into arbitrarily many. It took several iterations to arrive at that innocent-looking helper, with a good deal of trial and error and performance measurement along the way.

The interesting constraint on the Skia side is batching, and it shaped almost every decision that followed. When the compositor draws a tiled backing store or an image, Skia can pack many small draws that share a single paint into one GPU operation. That batching is a big part of why the Skia compositor is fast, and damage must not break it. So when I taught the tile and image draws to split themselves by damage rectangle, I did not impose any limit on how many pieces a single draw can turn into. Each sub-rectangle of a draw shares the same paint, so Skia still batches them into one operation, no matter how many there are. The tempting alternative, clipping the whole canvas to the damage region, would break the batching: a clip of more than one rectangle cannot be expressed as a simple scissor, so Skia would fall back to a stencil buffer or a mask texture.

In practice each draw is planned against the damage region before it is issued. If the damage already covers the draw whole there is nothing to trim and it goes through untouched. That check matters more than it looks, because its absence is the deep spike in the graph further up. Without it a draw was still planned and split against the damage even when the damage covered it completely, which is pure overhead for no saving at all. On the composition benchmark that more than halved the score, from about 148% to about 64% (compared to TextureMapper performance), and the feature had to be switched off again until the check landed three days later. In general the planner picks one of three strategies:

  • Skip, when the draw does not touch the damage at all, so it is dropped before it costs anything.
  • SplitByRect, the normal path, where the draw becomes one draw per damage rectangle it touches, each one trimmed in local coordinates to that rectangle, so that only the matching part of the source image is sampled.
  • ClipToDamage, the fallback taken when the transform is rotated or skewed. Device-space rectangles no longer map back to rectangles in local space, so splitting is impossible, the batch is flushed and the draw is issued once under a device-space clip (slow path).

That last case is the only one where the canvas gets clipped at all. The rule that came out of this, and that every later piece has to honour, is that each draw restricts itself to the damage rather than the canvas being clipped for it.

Finally I had to solve a “chicken-and-egg” problem: a compositor that paints only what changed has to know the full frame damage before it draws the first pixel, but the old code collected the damage in the very same walk that did the drawing, so the damage was only complete once everything had already been painted. Having already parameterized the paint walk by mode, I could split the compositing walk into two passes: a damage pass that walks the tree without drawing, into an SkNoDrawCanvas that discards everything, and gathers the frame damage, followed by a paint pass that actually draws. Both run from a single paint() call that applies the animations and computes the transforms once up front, so the two passes always see exactly the same tree.

One paint(), two passes over the same tree apply animations, compute transforms once both passes see the identical tree 1. damage pass walk into a no-draw canvas gather the whole frame damage 2. paint pass draw, each draw restricted to the damaged rectangles damage

With the damage known up front, I could limit every content draw to the target’s repaint region. The target is the buffer the compositor draws into, and an empty repaint region means it is already up to date, so nothing is drawn at all. Otherwise every kind of content, the backing store’s tiles, a contents image, a solid color, the composite of an intermediate surface where one is still needed, etc. restricts itself to the damage rectangles. A region that happens to cover the whole surface is dropped and we just do a full repaint, and that decision is made from the actual rectangles rather than their bounding box, because two small rectangles in opposite corners span a huge box while covering almost nothing.

There is one more correctness twist that is easy to overlook. The compositor does not draw into the same buffer every frame. It uses a swap chain, and hands back whichever buffer happens to be free, which is usually a frame or more behind the one on screen. Repainting only “what changed since last frame” is wrong if the buffer you are drawing into is several frames stale. So each buffer needs its own record of everything that changed since it was last drawn into. Building on an earlier patch that had already moved the per-buffer bookkeeping into its own tracker, I gave the swap chain a proper damage tracker that adds the damage of each frame to every buffer as it happens, and clears the record of a buffer only when that buffer is presented, so the guarantee finally holds: each buffer’s damage record covers everything that changed since it was last current.

Turning it on

The final patch just wires the pieces together behind the UseDamagingInformationForCompositing feature flag, off by default at that point. The damage of each frame goes to two places, the windowing system that will present it, and the record kept on every swap-chain buffer. The compositor then reads the record of the buffer it is about to draw into, takes the union with the damage freshly collected for this frame, and restricts its drawing to the resulting region. A surprising number of small things had to be handled correctly, mostly around the debug overlays. The debug border and the repaint counter are painted by the layer tree, but their setters stored the new state without damaging anything, so nothing repainted them when they appeared or changed. The FPS counter and the damage visualizer are drawn outside the tree entirely, so no layer damages them at all and they have to do it themselves, the counter for its own box and the visualizer by forcing a full repaint.

Does it pay off?

MotionMark itself is not the right benchmark to answer that question. Its subtests are built to stress the browser at a high object count, with most of the visible area changing from one frame to the next by design, so there is little unchanged content left for damage to restrict itself to. That also explains something from the graph earlier: turning damage on, off and back on again barely moved the MotionMark or composition score at all, once the missing whole-draw check was fixed. To actually see the effect, I needed a scene where only part of the picture changes each frame, so I built a small demo for exactly that.

Twelve SVG waves traveling left to right, constant speed and phase on the left with every wave having advanced the same distance, variable speed and phase on the right with some waves barely started and others already wrapped around

Shortly after the animation starts: on the left every wave has advanced the same distance, since they all share the same speed. On the right they don't, so some have barely left the edge while others have already crossed the whole screen and wrapped around.

The demo draws twelve waves with SVG that travel across the screen from left to right. In the first variant all twelve share the same speed and phase, so the picture changes in a regular, predictable way. In the second variant each wave runs at its own speed, some slower, some faster, so the changing region is much more irregular from frame to frame. That second case is the harder one for a damage-based compositor, because the damage is scattered rather than contiguous. It gets more interesting whenever a wave wraps from the right edge of the screen back to the left: for a sequence of frames the damage sits in two distant regions at once, on opposite sides of the screen, which is exactly the case where taking the bounding box of the damage instead of the actual rectangles would have covered almost the entire screen.

With damage turned on throughout, I ran the demo through the four scenarios formed by crossing the two compositors with the two wave variants, recording GPU load and memory bandwidth for each:

TextureMapper Skia compositor constant speed variable speed 1 2 3 4

Those four scenarios show up left to right, in that order, in the screenshot below.

GPU load, memory bandwidth and CPU for the twelve waves demo across four scenarios, numbered 1 to 4 in the memory bandwidth panel

Left to right: TextureMapper then Skia at constant speed, then TextureMapper then Skia at variable speed.

In the constant-speed case, scenario 2 (Skia) against scenario 1 (TextureMapper), the GPU load is only marginally lower, roughly 0.6% against 0.8%. What is striking is not the average but the shape: on TextureMapper the traces show periodic spikes, and on the Skia compositor those are absent. The periodic structure that the compositor used to generate has disappeared.

The variable-speed case, scenario 4 (Skia) against scenario 3 (TextureMapper), is where the win is unambiguous. This is the harder, scattered-damage workload, and here the Skia compositor brings the GPU load down from a plateau around 20% on TextureMapper to only a few %, and the memory read and write bandwidth come down with it. Exactly the scenario you would expect to be hardest for damage is the one where the new compositor shines.

Was it worth it?

The rewrite from TextureMapper to the Skia compositor was initially not driven by achieving better performance, it was about having a compositor that is maintainable and easier to reason about, and it paid off in ways that go beyond raw numbers: filters, masks and blend modes all became simpler to implement and faster to run. Adapting WPE and GTK to run on Vulkan will also be much easier now. That covers the compositor rewrite itself. And finally we have complete damage support, the collected damage trustworthy and the Skia compositor restricting every draw to just those rectangles without breaking its batching, allowing us to substantially reduce the amount of work done per frame.

All of it is switched on by default now, on both GTK and WPE, and the numbers back it up: roughly 45% faster on the composition benchmark, 35% faster on plain MotionMark, and on the twelve waves demo, GPU load drops from a plateau around 20% down to only a few% in exactly the case damage is built for, a scene where most of the screen stays the same from one frame to the next. That is the whole point of this work: a compositor that does only the work a change actually needs.

A big thank you to Carlos Garcia Campos, who has been driving the Skia compositor effort, and to Alejandro G. Castro, who patiently reviewed most of the damage series. And of course to Paweł Lampe, whose original damage work and blog post this all builds on. Thanks for reading to the end :-)

September 21, 2026 12:00 AM

September 16, 2026

WPE WebKit Blog: WPE WebKit 2.54 highlights

Igalia WebKit

The WebKit team at Igalia is happy to announce a new release series of WPE WebKit. This release has two main highlights: the new WPEPlatform API, now stable and enabled by default, and a web process compositor built on the Skia graphics library, replacing the TextureMapper-based one. Read on for the details on both, along with a summary of the other most noteworthy changes from the latest release cycle.

WPEPlatform: the new WPE API

WPEPlatform, the API that has been in the works for the past several release cycles, takes center stage in 2.54: it is now enabled by default and its API is considered stable, so applications can build on it without expecting breaking changes in future releases. Consequently, the traditional libwpe-based API is officially deprecated: it remains available and maintained, but new code should target WPEPlatform, and existing embedders are encouraged to plan their migration. This also applies to Cog, which will not have stable releases beyond the 0.18.x series.

The best part of the new API is how much simpler it is. Under libwpe, an application had to create a view backend (usually through WPEBackend-fdo’s “exportable” backend) and drive rendering, buffer management, and input dispatch itself through its callbacks. WPEPlatform moves all of that into WebKit and the platform implementation, so migrating an application is mostly a matter of deleting code: in the common case, the application constructs its WebKitWebView without a backend, WebKit selects a suitable platform automatically, and everything built on top of the web view carries over unchanged. The platform API only surfaces when an application wants more than the defaults: pinning to a particular platform, handling raw input events, or driving the toplevel window. Each of those is a few lines against a small GObject API rather than a set of C callbacks to implement.

To help embedders make the move, WPEPlatform is now extensively documented. The reference documentation includes an overview of the platform API (covering its relationship to libwpe and what is intentionally not part of the new API), a guide on compiling against it, a tutorial on writing a browser, and a tutorial on writing a WPE platform implementation. A guide on migrating from libwpe, with a symbol-by-symbol mapping table, walks embedders through the process step by step.

Since WPEPlatform is now built by default, the wpe-platform-2.0 pkg-config module is available in regular builds. Conversely, the legacy API can be disabled at build time with ENABLE_WPE_LEGACY_API=OFF when it is not needed.

Additions and final adjustments

New platform APIs added this cycle include:

  • WPEProcessManager and WPEProcessLaunchOptions, which allow the embedder to control how the auxiliary WebKit processes are launched and terminated. This is particularly important on Android, where each process is a service that must be started with bindService(), and it removes the last reason a WPEPlatform-only build could not work there. Note that, unlike the rest of WPEPlatform, the process management API is only built when targeting Android and remains experimental: it is not yet generic enough to be enabled everywhere, and it may still change in future releases.
  • Gamepad rumble support, through wpe_gamepad_has_rumble() and wpe_gamepad_rumble(), with a built-in implementation based on libmanette. This enables the Gamepad API vibrationActuator for web content.
  • A new WPE_SETTING_OVERLAY_SCROLLBARS setting, enabled by default, which may be disabled by applications to opt into classic, always-visible scrollbars.
  • A new WPE_INPUT_PURPOSE_SEARCH input purpose, allowing input methods to detect when the values of an input field are expected to be search terms.

A few final adjustments were made to the API before declaring it stable, which may require updates to platform implementations and applications developed against the earlier previews:

  • The WPE_SETTING_DISABLE_ANIMATIONS setting has been replaced by WPE_SETTING_REDUCED_MOTION, matching the dedicated reduced-motion setting introduced in GNOME 50, and a new tri-state WPE_SETTING_INTERFACE_CONTRAST setting has been added. Together with the existing WPE_SETTING_DARK_MODE setting, these make the prefers-reduced-motion, prefers-contrast, and prefers-color-scheme media queries follow the platform settings.
  • wpe_gesture_controller_handle_event() now returns a boolean indicating whether the event was consumed.
  • The WPE_DMABUF_BUFFER_FORMAT environment variable has been renamed to WPE_BUFFER_FORMAT.

Beyond Linux: Android

A good measure of the new API’s maturity is wpe-android, which has been rebuilt this year as a WPEPlatform platform implementation living entirely outside the WebKit tree: Android’s display system now looks to the engine like any other WPE platform, and applications get a convenience Java API modeled after android.webkit.WebView. The new WPEProcessManager API removed the last dependency on libwpe there. You can read more about it in this post.

On the WebKit API side

The shared WebKit API has also seen additions this cycle:

Graphics improvements

A new Skia-based compositor

This cycle brings the largest overhaul of the rendering architecture since the adoption of Skia for 2D rendering: the web process compositor now uses the Skia API instead of the venerable TextureMapper. Layers are composed into the final frame using Skia, which allows sharing a single rendering infrastructure across the whole graphics stack and enables several optimizations:

  • Tile contents are recorded into deferred display lists and replayed on the compositor thread, so painting worker threads no longer need to touch the GPU at all.
  • Batched painting groups the drawing of many layers into a single Skia call, which improves performance on pages with many layers that can be painted in the same operation.
  • Unnecessary clip operations are avoided whenever possible, keeping the batched paths effective.

Beyond raw performance, expressing compositing as Skia draw calls made several features simpler and faster: filters and masks no longer require intermediate offscreen surfaces in most cases, and CSS blend modes, which TextureMapper never implemented, now work in composited layers. And since Skia can target both OpenGL and Vulkan, the compositor no longer stands in the way of Vulkan-based rendering in the future.

The new compositor also works when using the legacy libwpe-based API.

The consolidation on Skia goes beyond compositing: the option to use Cairo for 2D rendering has been removed, making Skia the only 2D rendering implementation. Rendering tiles in the main thread is no longer supported either, so threaded rendering is now the only tile painting path.

Damage-aware compositing

Damage tracking has seen substantial work this cycle. The damage is the region of the view that changed since the previous frame and therefore requires repainting; Paweł Lampe’s introduction to damage propagation covers the concept in depth. Compositing itself now uses this information: each draw the compositor issues is restricted to the damaged rectangles, in a way that preserves the batched painting described above, and damage propagation to the platform is now enabled by default. A new DamageRectangleThreshold preference allows embedders to tune the balance between damage precision and bookkeeping cost.

The performance impact

What drove the compositor rewrite was making it simpler and easier to maintain, as Carlos García Campos explained at the Web Engines Hackfest 2026; performance came later, since TextureMapper started out ahead after more than a decade of tuning. By now the optimization work has more than closed that gap. The public WPE performance dashboard, which continuously runs benchmarks on Raspberry Pi 4 devices, tells the story: comparing the last TextureMapper-based revisions against the current ones, and thus measuring the cumulative effect of the graphics work described in this section, the MotionMark score is up by around 36%. On the composition-focused variant of the benchmark, where the compositor dominates the workload, the score is up by around 45%.

Bar chart comparing MotionMark scores on a Raspberry Pi 4: MotionMark 1.3.1 at 30 FPS goes from 246 with TextureMapper to 334 with the Skia compositor (+36%), and the Composition variant from 131 to 189 (+45%)

The dashboard also records the GPU load during each run, and there the difference is even more telling. MotionMark increases scene complexity until the browser can no longer sustain the target frame rate, so a higher score already means more work per frame; the Skia compositor delivers that while keeping the GPU markedly less busy. On embedded devices, where the GPU is typically the scarcest resource, this headroom translates directly into smoother pages.

Bar chart comparing GPU load during the same benchmark runs: 56% with TextureMapper against 39% with the Skia compositor on MotionMark 1.3.1, and 47% against 26% on the Composition variant

One part of the work goes largely unmeasured here, though. MotionMark animates nearly the entire viewport, so there is hardly anything for damage tracking to save. Real-world content behaves differently: usually a small area of the page is changing while everything else stays still, and skipping all of that quiet area cuts the per-frame GPU work to a fraction.

Other rendering improvements

A GPU atlas is now used for batched raster image uploads, regardless of the compositor in use, and it is reused across frames when the image set does not change, avoiding needless texture allocation and pixel uploads.

Asynchronous scrolling is smoother: several synchronization issues between the main, scrolling, and compositing threads that caused glitches while scrolling have been fixed, and the scrolling thread no longer blocks the compositor to flush its state, removing input-latency stalls on pages with many layers.

Finally, more animations can now run on the compositing thread: CSS animations using the steps() and linear() timing functions no longer force main-thread animation.

Better multimedia on embedded hardware, and a WebRTC transition

Let’s start with the transition: the GStreamer-based WebRTC backend is being replaced with a LibWebRTC-based implementation, which is expected to be available in the next release cycle. As a consequence, WebRTC support, which in previous releases required building with experimental features enabled, is disabled in 2.54.

The rest of the multimedia work moved forward at full speed, with a strong focus on embedded hardware:

  • Hardware video decoding and encoding for platforms with a Qualcomm GPU has been added, leveraging the qtic2vdec and qtic2venc GStreamer elements.
  • Video decoding limits are now respected in MediaCapabilities queries, and can be overridden with the WEBKIT_GST_VIDEO_DECODING_LIMIT environment variable, so a single build can serve devices with different capabilities.
  • Resource usage on pages containing many videos has been improved, by stopping the pipelines of muted, invisible video elements.
  • A new feature flag, enabled by default, allows low-end devices to skip caching pages with multimedia content in the back-forward cache, so that a suspended pipeline cannot hold a scarce hardware decoder hostage.
  • Media capability reporting is more accurate: non-AAC mp4a codecs (MP3, AC-3, E-AC-3) are correctly reported as supported when decoders are present, xHE-AAC support is auto-detected, and Dolby AC-4 is advertised for MSE on systems that support it.
  • Experimental support for SourceBuffer.changeType() has been added to the MSE backend, along with a fix for playback stalling at ad transitions on Twitch.
  • Persistent licenses are now supported in the Thunder CDM for encrypted media.

On top of this, the GStreamer backend has received a substantial amount of memory-safety and lifetime-correctness work that translates into a more stable multimedia experience.

WebXR

The OpenXR-based WebXR implementation continues to progress. The main highlight is support for the WebXR Layers API: quad, cylinder, equirect, and cube layers are now implemented, in addition to the already supported projection layers. Layers can be backed by texture arrays, and XRSession.maxRenderLayers lets content query the compositor’s layer budget.

The backend has also been decoupled from OpenGL ES through an abstract graphics binding, paving the way for a future Vulkan-based binding.

WebXR support remains a build-time option, enabled with the ENABLE_WEBXR=ON CMake option; the Layers support additionally requires ENABLE_WEBXR_LAYERS=ON.

Other improvements to the WPE port

Several long-standing gaps in the WPE port have been closed this cycle:

  • A built-in popup menu is now used as the default implementation for <select> elements when the WebKitWebView::show-option-menu signal is left unhandled, so option menus work out of the box.
  • Initial drag-and-drop support has been added: web views now handle drags driven by the mouse events they already receive.
  • Spell checking is now supported using the Enchant library, enabled by default, and can be toggled at build time with the ENABLE_SPELLCHECKING CMake option.
  • The on-screen keyboard is no longer shown when an element is focused programmatically; it only appears as a result of user interaction.
  • Initial support for the Pointer Lock API can be enabled at build time with the ENABLE_POINTER_LOCK CMake option.
  • Saving files from the Web Inspector now works in WPE.

Web Platform support

As usual, this list is not exhaustive as WebKit continuously progresses in its support for new standards. Some of the highlights for this release are:

What’s new for WebKit developers?

WebKit can now use mimalloc as its memory allocator, as an alternative to its own bmalloc. For now it is the default only on some architectures (32-bit ARM, MIPS, RISC-V, and builds supporting 64 KB memory pages); everywhere else bmalloc remains the default, and mimalloc can be enabled with the USE_MIMALLOC build option.

Logging now falls back to the standard error output when journald is not reachable, which is common in minimal containers, and the new WEBKIT_DEBUG_OUTPUT environment variable allows choosing the log destination explicitly.

Profile-guided optimization is now supported in regular CMake builds with Clang, through the ENABLE_LLVM_PROFILE_GENERATION and USE_PGO_PROFILE options.

Finally, a note for packagers: building WPE WebKit now requires Ninja, as the CMake Makefile generator is no longer supported.

Looking forward to 2.56

The 2.56 release series will bring even more improvements, and we expect it to be released during the spring of 2027. Until then!

September 16, 2026 12:00 AM

September 14, 2026

Igalia WebKit Team: WebKit Igalia Periodical #77

Igalia WebKit

Update on what happened in WebKit in the week from September 7 to September 14.

In this week's edition, the PNG image decoder received a much needed cleanup, as well as another swipe of unassorted graphics improvements, most notably in the Layer-Based SVG Engine. Finally, we also have an exciting and informative article about how to use the WPE Platform API on Raspberry Pi.

Cross-Port 🐱

Graphics 🖼️

Cleaned up the PNG image decoder a little bit, by removing conditional code that was used to support libpng versions older than 1.5.0, and requiring that as the minimum version. Given that version 1.5.0 was released back in 2011, it is expected that every system where current WebKit works will have much newer versions of libpng anyway.

Fixed an assertion failure for an outermost <svg> with non-visible overflow in the Layer-Based SVG Engine (LBSE) by refreshing its scroll dimensions at the end of layout, a first step towards reworking <svg> scrolling, which is not yet spec compliant.

Fixed an assertion failure when computing filter outsets for <feGaussianBlur> and <feDropShadow> with a negative stdDeviation, which turns the primitive off but was still passed on to the outset calculation, affecting both SVG filters and CSS reference filters.

Stopped reporting damage every frame for composited layers that use CSS filter in the Skia based compositor, so a blurred or drop-shadowed element is now only repainted when its subtree, or the applied (possibly animated) filter value, actually changed.

Fixed the bug that composited layers with clipping or masking and fully covered by opaque child layers were treated as opaque layers.

Fixed two debug assertion failures in the Layer-Based SVG Engine (LBSE), one where an SVG transform change left ancestor layer repaint rects stale and one where repainting on a compositing change during layout tripped an over-strict check on the paint offset cache.

Fixed the white noised image issue on the combination of i915 driver and Intel Arc after 308458@main introduced image atlas uploading.

Community & Events 🤝

Published a blog post describing the steps to try WPE Platform API on Raspberry Pi with latest WebKit main branch.

That’s all for this week!

By Igalia WebKit Team at September 14, 2026 07:07 PM

September 13, 2026

Hironori Fujii: Asynchronous scrolling for touch events in WPE and WebKitGTK

Igalia WebKit

The WPE and GTK ports have supported touch events for a long time, but asynchronous scrolling only worked for wheel events. Scrolling driven by touch still depended on the web process main thread. This change puts touch events on the asynchronous scrolling path too.

Let’s start with the background: what asynchronous scrolling is and why it needs to be built differently here.

What is asynchronous scrolling? #

Why it is needed #

A naive implementation of scrolling looks like this:

  1. The UI process receives an input event (wheel or touch).
  2. It sends the event to the web process main thread.
  3. The main thread runs the page’s JavaScript event listeners.
  4. If nothing called preventDefault(), the scroll position is updated.
  5. The page is rendered at the new scroll position.

Step 3 is the problem. The main thread is easily blocked for hundreds of milliseconds by JavaScript execution or layout, and scrolling is frozen for that whole time. Your finger moves, the screen does not. That is what synchronous scrolling feels like.

Asynchronous scrolling moves the work off the main thread: the scrolling thread updates the scroll position, and the compositor thread composites and presents the frame. Neither needs the main thread, so scrolling keeps running at 60fps even when the main thread is busy.

The scrolling tree and event regions #

Two data structures make this possible.

The scrolling tree is a tree of the scrollable areas of a page. The main frame, overflow: scroll elements, position: fixed/sticky elements and so on each become a node holding its own scroll position and a reference to its layer. The scrolling thread updates scroll positions by looking only at this tree, and the compositor thread then draws the layers at their new positions — the main thread is not involved in either step.

But there are places where scrolling on its own would be wrong, because the page might call preventDefault() from an addEventListener("touchstart", ...) handler. That is what event regions are for.

An event region records, per layer and at rendering time, “this rectangle has a listener for this kind of event”. EventRegion keeps separate regions for touchstart, touchmove, pointerdown, mousedown and friends, and for any given point it yields a TrackingType:

enum class TrackingType : uint8_t {
NotTracking = 0, // No listener. The event does not even need to be delivered.
Asynchronous = 1, // Passive listeners only. Scroll now, notify the page later.
Synchronous = 2 // A non-passive listener may call preventDefault(). We must wait.
};

The passive distinction is what makes Asynchronous possible. preventDefault() cancels an event only if the listener was registered with passive: false; from a passive listener it does nothing. And on window, document and document.body, touchstart/touchmove (and wheel) default to passive: true — see MDN: Using passive listeners. So Asynchronous is the case “there are listeners, but none of them can cancel the scroll”: start scrolling now, deliver the event to the main thread afterwards.

Because this information travels to the scrolling thread along with the layer tree, an incoming input event can be classified without waking the main thread. That is the heart of asynchronous scrolling.

Why the iOS implementation could not be reused #

The iOS port already implements asynchronous scrolling for touch events, but it could not be reused, because the process layout is different.

iOS:
  UI process:  platform layer tree + scrolling tree + touch event input
  Web process: main thread (DOM, layout)

WPE / GTK (Coordinated Graphics):
  UI process:  touch event input only
  Web process: main thread (DOM, layout)
               + EventDispatcher thread / scrolling thread
               + platform layer tree + scrolling tree

On iOS both the platform layer tree and the scrolling tree live in the UI process — the very process that receives touch events — so the classification and the scroll both happen right there. On WPE and GTK we use Coordinated Graphics, and both trees live in the web process instead. The classification therefore has to happen after sending the event to the web process, but before touching the main thread.

Fortunately the same problem was already solved for wheel events. The web process has an EventDispatcher thread that receives wheel events from the UI process without going through the main thread and consults the scrolling tree directly. This change builds the same shape for touch events.

How a touch becomes a scroll in WPE #

One more piece of background: in WPE a touch does not scroll the page directly. Touch events are first offered to the page; only if the page does not consume them does the UI process turn the touch sequence into scrolling.

The decision point is PageClientImpl::doneWithTouchEvent(). If the page handled the event, gesture detection is cancelled with wpe_gesture_controller_cancel() so the engine does not also act on it. If it was not handled, the event is fed to the WPE platform gesture controller via ViewPlatform::handleGesture(), and a recognized WPE_GESTURE_DRAG is turned into a synthetic scroll event pushed back into the page as a wheel event:

GRefPtr<WPEEvent> simulatedScrollEvent = adoptGRef(wpe_event_scroll_new(
m_wpeView.get(), WPE_INPUT_SOURCE_TOUCHSCREEN, 0, static_cast<WPEModifiers>(0), dx, dy, TRUE, FALSE, x, y));
page().handleNativeWheelEvent(WebKit::NativeWebWheelEvent::create(simulatedScrollEvent.get(), phase));

That TRUE is precise_deltas: touch-driven scrolling in WPE reaches the engine as precise-delta wheel events, which becomes relevant later.

The important consequence is this: the UI process cannot start scrolling until it knows whether the page is going to consume the touch. That answer used to come from the web process main thread — so when the main thread was busy, scrolling did not start. That is the problem this change fixes.

The change #

Enabling touch event regions #

A new ENABLE(COORDINATED_TOUCH_EVENTS) is introduced in PlatformEnableGlib.h, and it turns on ENABLE(TOUCH_EVENT_REGIONS) whenever touch events are enabled on WPE/GTK. The AlwaysUseTouchEventRegions preference now defaults to true under that flag, so Document::shouldUseTouchEventRegions() returns true and touch regions are actually recorded on the layers during rendering.

UI process: send to the EventDispatcher instead of the main thread #

The old WebPageProxy::handleTouchEvent() consulted a touchEventTracking state kept in the UI process and sent Messages::WebPage::TouchEvent, i.e. straight to the web process main thread.

The new version delegates all classification to the web process and only queues events and delivers answers. One event is in flight at a time; the next is sent when the reply arrives. The flood of touchmove events produced while a finger moves is coalesced into the newest queued event when that is also a touchmove, and the coalesced events are flushed to doneWithTouchEvent() together with the reply.

The destination is now Messages::EventDispatcher::TouchEvent.

Web process: classification on the EventDispatcher thread #

EventDispatcher::touchEvent() runs on the EventDispatcher thread, where it looks up the page’s scrolling tree, asks it for a TrackingType, and splits three ways:

  • NotTracking — no listeners. Reply handled = false immediately, without bothering the main thread at all. The UI process can start scrolling right away.
  • Asynchronous — passive listeners only, so nothing can cancel the event. Reply handled = false first so scrolling starts, then deliver the event to the main thread.
  • Synchronous — a non-passive listener may call preventDefault(), so wait for the main thread result as before.

Replying without a main thread round trip is possible because the new TouchEvent message is declared AnyThread in EventDispatcher.messages.in. The iOS equivalent is MainThreadCallback, which always replies from the main thread.

If there is no scrolling tree for the page yet, the event goes to the main thread as before.

Classifying a touch in the scrolling tree #

The classification itself is ScrollingTreeCoordinated::eventTrackingTypeForTouchEvent(). It works in two stages.

First, for each newly pressed touch point: convert the point from view to contents coordinates, hit test the layer tree down from the root contents layer, take the frontmost layer whose event region contains the point, and query that region. It is queried for many event types, because a touch fires more than the DOM touch* events — pointer*, compatibility mouse events and gesture* too, and a non-passive listener for any of them forces synchronous handling. The results are folded into a small TouchEventTracking struct with four fields: start, move, end and force-change.

Second, the tracking type of the event as a whole is derived from the touch point states, merging the per-field values. Merging picks the stronger of two types (NotTracking < Asynchronous < Synchronous), so if any single point needs synchronous handling, the whole event is synchronous.

TouchEventTracking persists for the lifetime of a touch sequence and is reset once all points are released, so the hit test done at touchstart is reused for the following touchmove/touchend. That guarantees a sequence never flips from synchronous to asynchronous halfway through just because a finger moved off a listener’s area.

<input type=range> #

A slider handles touches internally even with no JavaScript listener, so looking at the event region alone would classify it as NotTracking. HTMLInputElement::updateTouchEventHandler() now sets the HasInternalTouchEventHandling flag on EventTarget for range inputs, and StyleAdjuster turns that flag into the full set of touch region types for the element.

Keeping the animation running on the scrolling thread #

The last piece is in ScrollingEffectsController::handleWheelEvent(). As shown above, WPE synthesizes wheel events from touch gestures with precise deltas. Precise-delta events only need immediateScrollBy() to move the scroll position — but then nothing drives screen updates while the main thread is busy.

The fix is that, while a scroll gesture is in progress, a scroll animation is also started — from one ULP short of the destination (std::nextafter()) to the destination. Visually it finishes instantly — the real scroll is still done by immediateScrollBy() — but a scroll animation is now running, which starts display link monitoring and keeps compositing driven regardless of the main thread.

The event flow, summarized #

Before:

The UI process sends the touch event to the web process main thread, which may
be blocked by JavaScript or layout. Only after the reply arrives does gesture
recognition synthesize a wheel event and scrolling
start.

After (no listeners, or passive listeners only):

The UI process sends the touch event to the EventDispatcher thread of the web
process, which asks the scrolling tree and replies immediately without the main
thread, so gesture recognition synthesizes a wheel event and scrolling starts
right away. If passive listeners exist, the event is also delivered to the main
thread afterwards.

Where a non-passive listener exists, we still wait for the main thread as before. The spec requires preventDefault() to be honoured, so that is unavoidable.

Layout test updates #

As a side effect, the tests under fast/events/touch/ had to be updated.

Event regions are computed during a rendering update and propagated to the scrolling tree via the platform layer tree. Which means a test like this:

target.addEventListener("touchstart", handler);
tapSoon(20, 20); // ← the region has not been updated yet!

taps immediately after registering the listener, while the scrolling tree still believes there is no listener and returns NotTracking. The event never reaches the main thread and the test fails.

A new UIHelper.renderingComplete() was added for this:

static async renderingComplete()
{
// Wait for the platform layer tree to be updated
await UIHelper.animationFrame();
await UIHelper.animationFrame();
}

Two animation frames are needed because the first one runs the rendering update that computes the regions, and a second is needed for the result to reach the layer tree.

Summary #

  • On WPE and GTK both the layer tree and the scrolling tree live in the web process (Coordinated Graphics), so the iOS touch asynchronous scrolling implementation could not be reused directly.
  • Instead, touch events were given the same shape that already works for wheel events: ask the scrolling tree from the EventDispatcher thread.
  • The keys were enabling touch event regions, and making the IPC reply AnyThread so it can be sent without waiting for the main thread.
  • Anywhere the page has no non-passive listener, scrolling now starts regardless of what the main thread is doing.

Acknowledgements #

Many thanks to Alejandro G. Castro and Carlos Garcia Campos for their insightful reviews of this work, and to Claude for writing this blog post.

September 13, 2026 12:00 AM

September 08, 2026

Pawel Lampe: Trying WPE Platform API on Raspberry Pi

Igalia WebKit

WPE Platform API (also known as “new API”) is a redesigned, GObject-based platform-integration layer for WPE WebKit that replaces the older libwpe backend model. A few months ago, Kate and Simon published two closely related blog posts about it. The first one focuses more on the API and browser implementation details, while the second one focuses more on writing and integrating the browser within Linux distribution.

This article builds on top of the above ones, and showcases how to build and try a minimal WPE browser using WPE Platform API on Raspberry Pi. Moreover, as the WPE Platform API still evolves to some degree, this article also explains how to use and stick to the latest WPE WebKit from main branch. This way one can play with all the latest features straight on embedded hardware.

Before going further, one should be aware that in case of a simple release build (instead of one using latest main branch) it’s better to follow official instructions instead of this article.

Setup #

This article focuses on a certain setup using Raspberry Pi 3B but it should be fairly easy to adapt the config to any other Raspberry Pi model.

As for the work environment: the Linux-based host with ability to run containers was used along with WebKit Container SDK. The SDK version was precisely 2.53-v6-d535e88 as it uses Ubuntu 24.04.4 LTS that works well with Yocto scarthgap.

The Yocto scarthgap has been used to increase the chances that the config and commands demonstrated in this article will remain buildable for many years to follow.

Preparing the image #

The preparation of the image starts with a series of commands that create a main directory and clone important Yocto repositories along with some meta layer repositories. At this point already, it’s important to have the working directory shared between host and SDK.

# host
mkdir wpe-upstream
cd wpe-upstream
git clone https://git.yoctoproject.org/git/poky -b scarthgap
git clone git@github.com:openembedded/meta-openembedded.git -b scarthgap
git clone https://git.yoctoproject.org/git/meta-raspberrypi -b scarthgap
git clone https://github.com/Igalia/meta-webkit -b scarthgap
source poky/oe-init-build-env build

Once the build directory is created, it’s necessary to configure the meta layers in the build/conf/bblayers.conf file the following way:

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS ?= " \
${BSPDIR}/poky/meta \
${BSPDIR}/poky/meta-poky \
${BSPDIR}/poky/meta-yocto-bsp \
${BSPDIR}/meta-openembedded/meta-oe \
${BSPDIR}/meta-openembedded/meta-multimedia \
${BSPDIR}/meta-openembedded/meta-python \
${BSPDIR}/meta-raspberrypi \
${BSPDIR}/meta-webkit \
"

With the above, the recipes from the meta layers cloned earlier will be considered by bitbake.

Next, the most important configuration step is appending the following to build/conf/local.conf:

MACHINE = "raspberrypi3-64" 
MACHINE_FEATURES:append = " vc4graphics"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
DISTRO_FEATURES:append = " opengl egl wayland"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
IMAGE_FEATURES:append = " ssh-server-dropbear hwcodecs"
IMAGE_INSTALL:append = " wpewebkit wpe-browser"
PREFERRED_VERSION_wpewebkit = "latest"
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"

With that, wpewebkit latest will be preferred and installed in the image along with a dummy browser called wpe-browser.

To make the wpewebkit latest work, one needs to create meta-webkit/recipes-browser/wpewebkit/wpewebkit_latest.bb:

SUMMARY = "Lightweight WebKit port for embedded devices with OpenGL-ES acceleration"
DESCRIPTION = "WPE WebKit port pairs the WebKit engine with OpenGL-ES (OpenGL for Embedded Systems), \
allowing embedders to create simple and performant systems based on Web platform technologies. \
It is designed with hardware acceleration in mind, relying on EGL, and OpenGL ES."

HOMEPAGE = "https://wpewebkit.org/"
BUGTRACKER = "https://bugs.webkit.org/"
LICENSE = "BSD-2-Clause & LGPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://Source/WebCore/LICENSE-LGPL-2.1;md5=a778a33ef338abbaf8b8a7c36b6eec80 "

REQUIRED_DISTRO_FEATURES = "opengl"

DEPENDS:append = " \
libsoup \
bison-native gperf-native harfbuzz-native libxml2-native ccache-native ninja-native ruby-native \
fontconfig freetype glib-2.0 harfbuzz icu jpeg pcre sqlite3 zlib libpng libtasn1 \
libwebp libxml2 libxslt virtual/egl virtual/libgles2 libepoxy libgcrypt \
unifdef-native \
"


inherit cmake features_check pkgconfig perlnative python3native

export WK_USE_CCACHE = "NO"

PACKAGECONFIG ??= "accessibility avif dfg-jit gbm gpu-process \
jit jpegxl libbacktrace \
mediasource mediastream \
remote-inspector \
sysprof \
${@' system-sysprof' \
if bb.utils.contains('BBFILE_COLLECTIONS', 'meta-gnome', True, False, d) \
else '' }
\
unified-builds video webaudio woff2 wpe-platform \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'journald', '' ,d)} \
"


PACKAGECONFIG[reduce-size] = "-DCMAKE_BUILD_TYPE=MinSizeRel,-DCMAKE_BUILD_TYPE=Release,,"
PACKAGECONFIG[release-with-debug-info] = "-DCMAKE_BUILD_TYPE=RelWithDebInfo,-DCMAKE_BUILD_TYPE=Release,,"

# WPE features
PACKAGECONFIG[accessibility] = "-DUSE_ATK=ON,-DUSE_ATK=OFF,atk at-spi2-atk"
PACKAGECONFIG[avif] = "-DUSE_AVIF=ON,-DUSE_AVIF=OFF,libavif"
PACKAGECONFIG[bubblewrap] = "-DENABLE_BUBBLEWRAP_SANDBOX=ON -DBWRAP_EXECUTABLE=${bindir}/bwrap -DDBUS_PROXY_EXECUTABLE=${bindir}/xdg-dbus-proxy,-DENABLE_BUBBLEWRAP_SANDBOX=OFF,bubblewrap xdg-dbus-proxy libseccomp"
PACKAGECONFIG[developer-mode] = "-DDEVELOPER_MODE=ON,-DDEVELOPER_MODE=OFF,wayland-native wayland-protocols wpebackend-fdo"
PACKAGECONFIG[deviceorientation] = "-DENABLE_DEVICE_ORIENTATION=ON,-DENABLE_DEVICE_ORIENTATION=OFF,"
PACKAGECONFIG[dfg-jit] = "-DENABLE_DFG_JIT=ON,-DENABLE_DFG_JIT=OFF,"
PACKAGECONFIG[documentation] = "-DENABLE_DOCUMENTATION=ON,-DENABLE_DOCUMENTATION=OFF, gi-docgen-native gi-docgen"
PACKAGECONFIG[encryptedmedia] = "-DENABLE_ENCRYPTED_MEDIA=ON,-DENABLE_ENCRYPTED_MEDIA=OFF,libgcrypt"
PACKAGECONFIG[experimental-features] = "-DENABLE_EXPERIMENTAL_FEATURES=ON,-DENABLE_EXPERIMENTAL_FEATURES=OFF,libavif libjxl"
PACKAGECONFIG[gamepad] = "-DENABLE_GAMEPAD=ON,-DENABLE_GAMEPAD=OFF,libmanette"
PACKAGECONFIG[gbm] = "-DUSE_GBM=ON,-DUSE_GBM=OFF,libdrm"
PACKAGECONFIG[geolocation] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue"
PACKAGECONFIG[gpu-process] = "-DENABLE_GPU_PROCESS=ON,-DENABLE_GPU_PROCESS=OFF,"
PACKAGECONFIG[hyphen] = "-DUSE_LIBHYPHEN=ON,-DUSE_LIBHYPHEN=OFF,hyphen"
PACKAGECONFIG[introspection] = "-DENABLE_INTROSPECTION=ON,-DENABLE_INTROSPECTION=OFF, gobject-introspection-native"
PACKAGECONFIG[jit] = "-DENABLE_JIT=ON -DENABLE_C_LOOP=OFF,-DENABLE_JIT=OFF -DENABLE_C_LOOP=ON,"
PACKAGECONFIG[jpegxl] = "-DUSE_JPEGXL=ON,-DUSE_JPEGXL=OFF,libjxl"
PACKAGECONFIG[journald] = "-DENABLE_JOURNALD_LOG=ON,-DENABLE_JOURNALD_LOG=OFF,"
PACKAGECONFIG[lcms] = "-DUSE_LCMS=ON,-DUSE_LCMS=OFF,"
PACKAGECONFIG[spellcheck] = "-DENABLE_SPELLCHECK=ON,-DENABLE_SPELLCHECK=OFF,enchant"
PACKAGECONFIG[wpe-legacy-api] = "-DENABLE_WPE_LEGACY_API=ON,-DENABLE_WPE_LEGACY_API=OFF,libwpe virtual/wpebackend,"
PACKAGECONFIG[libbacktrace] = "-DUSE_LIBBACKTRACE=ON,-DUSE_LIBBACKTRACE=OFF,libbacktrace"
PACKAGECONFIG[minibrowser] = "-DENABLE_MINIBROWSER=ON,-DENABLE_MINIBROWSER=OFF,wayland-native wayland-protocols wpebackend-fdo"
PACKAGECONFIG[mediasource] = "-DENABLE_MEDIA_SOURCE=ON,-DENABLE_MEDIA_SOURCE=OFF,gstreamer1.0 gstreamer1.0-plugins-good"
PACKAGECONFIG[mediastream] = "-DENABLE_MEDIA_STREAM=ON,-DENABLE_MEDIA_STREAM=OFF,gstreamer1.0 gstreamer1.0-plugins-bad"
PACKAGECONFIG[pdfjs] = "-DENABLE_PDFJS=ON,-DENABLE_PDFJS=OFF,"

PACKAGECONFIG[speech-synthesis] = "-DENABLE_SPEECH_SYNTHESIS=ON,-DENABLE_SPEECH_SYNTHESIS=OFF,flite"

PACKAGECONFIG[sysprof] = "-DUSE_SYSPROF_CAPTURE=ON, -DUSE_SYSPROF_CAPTURE=OFF,"
PACKAGECONFIG[system-sysprof] = "-DUSE_SYSTEM_SYSPROF_CAPTURE=ON, -DUSE_SYSTEM_SYSPROF_CAPTURE=OFF, sysprof"
PACKAGECONFIG[video] = "-DENABLE_VIDEO=ON,-DENABLE_VIDEO=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
PACKAGECONFIG[webaudio] = "-DENABLE_WEB_AUDIO=ON,-DENABLE_WEB_AUDIO=OFF,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good"
PACKAGECONFIG[woff2] = "-DUSE_WOFF2=ON,-DUSE_WOFF2=OFF,woff2"
PACKAGECONFIG[remote-inspector] = "-DENABLE_REMOTE_INSPECTOR=ON,-DENABLE_REMOTE_INSPECTOR=OFF,"
PACKAGECONFIG[webrtc] = "-DENABLE_WEB_RTC=ON,-DENABLE_WEB_RTC=OFF,libvpx libevent libopus openh264"
PACKAGECONFIG[qtwpe] = "-DENABLE_WPE_QT_API=ON ${CMAKE_QT_OECONF},-DENABLE_WPE_QT_API=OFF,qtbase-native qtbase qtdeclarative libepoxy wpebackend-fdo ${QT_BUILD_DEPS}"
PACKAGECONFIG[unified-builds] = "-DENABLE_UNIFIED_BUILDS=ON,-DENABLE_UNIFIED_BUILDS=OFF,"
PACKAGECONFIG[thunder] = "-DENABLE_THUNDER=ON,-DENABLE_THUNDER=OFF,virtual/open-cdm"
PACKAGECONFIG[webxr] = "-DENABLE_WEBXR=ON,-DENABLE_WEBXR=OFF,openxr"

# Build option for WPE API 1.1
PACKAGECONFIG[wpe-1-1-api] = "-DENABLE_WPE_1_1_API:BOOL=ON,-DENABLE_WPE_1_1_API:BOOL=OFF,"

# Build option for WPE platform API
PACKAGECONFIG[wpe-platform] = "-DENABLE_WPE_PLATFORM=ON,-DENABLE_WPE_PLATFORM=OFF,libinput libxkbcommon wayland-native"

EXTRA_OECMAKE = " -DPORT=WPE -G Ninja"

# TODO: documentation and introspection are disabled by default because the are
# causing cross-compiling build errors
# PACKAGECONFIG:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'documentation', '' ,d)} introspection"

# If SSE code compiles, assume it runs successfully (it can't actually run
# because of cross compiling)
EXTRA_OECMAKE:append:x86 = " -DHAVE_SSE2_EXTENSIONS_EXITCODE=0"
# Javascript JIT is not supported on ppc/arm/RISCV32/mips64
PACKAGECONFIG:remove:powerpc = "jit"
PACKAGECONFIG:remove:powerpc64 = "jit"
PACKAGECONFIG:remove:powerpc64le = "jit"
PACKAGECONFIG:remove:armv4 = "jit"
PACKAGECONFIG:remove:armv5 = "jit"
PACKAGECONFIG:remove:armv6 = "jit"
PACKAGECONFIG:remove:armv7a = "jit"
PACKAGECONFIG:remove:armv7ve = "jit"
PACKAGECONFIG:remove:riscv32 = "jit"
PACKAGECONFIG:remove:riscv64 = "jit"
PACKAGECONFIG:remove:mipsarchn64 = "jit"
PACKAGECONFIG:remove:mipsarchn32 = "jit"
PACKAGECONFIG:remove:loongarch64 = "jit"

# Javascript JIT is not supported on x86
PACKAGECONFIG:remove:x86 = "jit"

LDFLAGS:append:riscv64 = " -pthread"

FULL_OPTIMIZATION:remove = "-g"

LEAD_SONAME = "libWPEWebKit.so"
PACKAGES =+ "${PN}-web-inspector-plugin ${PN}-qtwpe-qml-plugin"
FILES:${PN} += "${libdir}/wpe-webkit*/injected-bundle/libWPEInjectedBundle.so"
FILES:${PN}-web-inspector-plugin += "${datadir}/wpe-webkit-*/inspector.gresource"
# nooelint: oelint.vars.insaneskip - ignored for convenience. We need to recheck if problem persist
INSANE_SKIP:${PN}-web-inspector-plugin = "dev-so"

# nooelint: oelint.vars.insaneskip - ignored for convenience. We need to recheck if problem persist
INSANE_SKIP:${PN}-qtwpe-qml-plugin = "dev-so"

# JSC JIT on ARMv7 is better supported with Thumb2 instruction set.
ARM_INSTRUCTION_SET:armv7a = "thumb"
ARM_INSTRUCTION_SET:armv7r = "thumb"
ARM_INSTRUCTION_SET:armv7m = "thumb"
ARM_INSTRUCTION_SET:armv7ve = "thumb"

# Extra runtime depends
# nooelint: oelint.vars.dependsordered - ignored for convenience
RDEPENDS:${PN} += "\
${@bb.utils.contains('PACKAGECONFIG', 'remote-inspector', '${PN}-web-inspector-plugin', '', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'gst_gl', 'gstreamer1.0-plugins-base-opengl', '', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'mediasource', 'gstreamer1.0-plugins-good-isomp4', '', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'webaudio', 'gstreamer1.0-plugins-good-wavparse', '', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'video', 'gstreamer1.0-plugins-base-app \
gstreamer1.0-plugins-base-audioconvert \
gstreamer1.0-plugins-base-audioresample \
gstreamer1.0-plugins-base-gio \
gstreamer1.0-plugins-base-playback \
gstreamer1.0-plugins-base-typefindfunctions \
gstreamer1.0-plugins-base-videoconvertscale \
gstreamer1.0-plugins-base-volume \
gstreamer1.0-plugins-good-audiofx \
gstreamer1.0-plugins-good-audioparsers \
gstreamer1.0-plugins-good-autodetect \
gstreamer1.0-plugins-good-avi \
gstreamer1.0-plugins-good-deinterlace \
gstreamer1.0-plugins-good-interleave \
', '', d)}
\
libgles2 \
"


RDEPENDS:${PN}-web-inspector-plugin += "\
shared-mime-info \
"


# Extra runtime recommends
RRECOMMENDS:${PN} += "\
ca-certificates \
ttf-dejavu-sans \
ttf-dejavu-sans-mono \
ttf-dejavu-serif \
${PN}-qtwpe-qml-plugin \
${@bb.utils.contains('PACKAGECONFIG', 'video', 'gstreamer1.0-plugins-base-meta gstreamer1.0-plugins-good-meta gstreamer1.0-plugins-bad-meta', '', d)} \
"


DEFAULT_PREFERENCE = "-1"

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

# https://commits.webkit.org/319279@main
PR = "r319279"
SRCREV = "93472ec12ee947b30c7ec3c176ca0e2fb6ba6ace"
SRC_URI = "git://github.com/WebKit/WebKit.git;protocol=https;branch=main \
file://0001-libpas-Only-include-stdatomic.h-when-compiling-with.patch \
file://0002-WebDriver-Guard-LOG_CHANNEL-check-with-LOG_DISABLED.patch \
"

S = "${WORKDIR}/git"

This file is self-contained on purpose; the idea is not to rely on any includes so that unpredictable behavior doesn’t happen in the future.

While the above file contains a lot of interesting details, the most interesting practical part is the last few lines. The SRCREV is set to point to the latest commit from the WebKit main branch (at the time of writing). Along with that comes SRC_URI that specifies two patches required to make WPE WebKit compile.

The problem with the patches is that advancing SRCREV will likely make them unusable due to merge conflicts. Therefore, when advancing the revision, it’s recommended to remove patches from SRC_URI and face the compilation problems from scratch as it’s very likely there will be new compilation problems anyway. Fortunately, nowadays LLMs can be used to fix any compilation problems by preparing custom patches just like the below ones (created by LLM as well). For example, most of the modern models should manage to prepare proper patches just by pointing them to the above recipe and the temp directory with the latest logs from build commands.

Assuming one uses the wpewebkit_latest.bb above, the first patch needs to be created in: meta-webkit/recipes-browser/wpewebkit/wpewebkit/0001-libpas-Only-include-stdatomic.h-when-compiling-with.patch with the following content:

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Pawel Lampe <plampe@igalia.com>
Date: Mon, 17 Aug 2026 00:00:00 +0000
Subject: [PATCH] [libpas] Only include stdatomic.h when compiling with Clang

Some libpas .c files (e.g. jit_heap.c) are compiled as C++ via
set_source_files_properties(... PROPERTIES LANGUAGE CXX) in
Source/bmalloc/CMakeLists.txt, for TZone heap support. pas_utils.h
unconditionally does `#include <stdatomic.h>`, but GCC's own
<stdatomic.h> relies on the C11-only `_Atomic` keyword and has no
support for being included from C++ translation units (this was only
addressed in much newer GCC releases). Compiling any of the
CXX-tagged libpas .c files with GCC 13 therefore fails with:

    error: '_Atomic' does not name a type

The header is only actually needed here for the Clang-specific
__c11_atomic_* intrinsics guarded by `#elif PAS_COMPILER(CLANG)`
further down in this file; the non-Clang (GCC) path uses the
__atomic_* builtins instead and does not need any of the types or
macros from <stdatomic.h>. Guard the include accordingly so GCC
builds (both plain C and the CXX-tagged libpas sources) are
unaffected by GCC's non-C++-aware <stdatomic.h>.

Upstream-Status: Pending
Signed-off-by: Pawel Lampe <plampe@igalia.com>
---
 Source/bmalloc/libpas/src/libpas/pas_utils.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Source/bmalloc/libpas/src/libpas/pas_utils.h b/Source/bmalloc/libpas/src/libpas/pas_utils.h
index 962634080930..9b98fda54f43 100644
--- a/Source/bmalloc/libpas/src/libpas/pas_utils.h
+++ b/Source/bmalloc/libpas/src/libpas/pas_utils.h
@@ -42,7 +42,15 @@
 #endif
 
 #include <limits.h>
+#if PAS_COMPILER(CLANG)
+/* GCC's <stdatomic.h> relies on the C-only _Atomic keyword and is not
+ * usable when this header is included from a translation unit compiled
+ * as C++ (some libpas .c files are compiled as C++, see bmalloc's
+ * CMakeLists.txt). It is only needed here for the Clang-specific
+ * __c11_atomic_* intrinsics below; the GCC path uses __atomic_* builtins
+ * instead. */
 #include <stdatomic.h>
+#endif
 #include <stdbool.h>
 #include <stdint.h>
 #include <string.h>
--
2.43.0


The second patch should be: meta-webkit/recipes-browser/wpewebkit/wpewebkit/0002-WebDriver-Guard-LOG_CHANNEL-check-with-LOG_DISABLED.patch with:

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Pawel Lampe <plampe@igalia.com>
Date: Mon, 17 Aug 2026 00:00:00 +0000
Subject: [PATCH] [WebDriver] Guard LOG_CHANNEL check with
 LOG_DISABLED/RELEASE_LOG_DISABLED

WebDriverService::handleRequest() unconditionally checks
LOG_CHANNEL(WebDriverClassic).state to decide whether it is worth
building the request/response log strings. However,
Source/WebDriver/Logging.h only declares the WebDriverClassic (and
other WebDriver) log channels inside:

    #if !LOG_DISABLED || !RELEASE_LOG_DISABLED

On a release build (NDEBUG, so LOG_DISABLED is true) without journald
support and without OS_LOG/Android (so RELEASE_LOG_DISABLED is also
true) - the common configuration for an embedded Linux build without
the "journald" PACKAGECONFIG - that guard is false, so the channel is
never declared, and this direct, unguarded use of LOG_CHANNEL() fails
to compile:

    error: 'LOG_CHANNEL_PREFIXWebDriverClassic' was not declared in this scope

RELEASE_LOG_INFO() itself already collapses to a no-op in that
configuration (see wtf/Assertions.h), so guard this manual
LOG_CHANNEL() state check with the same condition used to declare the
channel in Logging.h.

Upstream-Status: Pending
Signed-off-by: Pawel Lampe <plampe@igalia.com>
---
 Source/WebDriver/WebDriverService.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Source/WebDriver/WebDriverService.cpp b/Source/WebDriver/WebDriverService.cpp
index 07ae385f33f4..2612d239a611 100644
--- a/Source/WebDriver/WebDriverService.cpp
+++ b/Source/WebDriver/WebDriverService.cpp
@@ -381,6 +381,7 @@ bool WebDriverService::findCommand(HTTPMethod method, const String& path, Comman
 void WebDriverService::handleRequest(HTTPRequestHandler::Request&& request, Function<void (HTTPRequestHandler::Response&&)>&& replyHandler)
 {
     Function<void (HTTPRequestHandler::Response&&)> actualReplyHandler = WTF::move(replyHandler);
+#if !LOG_DISABLED || !RELEASE_LOG_DISABLED
     if (LOG_CHANNEL(WebDriverClassic).state != WTFLogChannelState::Off) {
         RELEASE_LOG_INFO(WebDriverClassic, "HTTP request %s %s (body=%zu bytes)", request.method.utf8().data(), request.path.utf8().data(), request.dataLength);
         actualReplyHandler = [startTime = MonotonicTime::now(), replyHandler = WTF::move(actualReplyHandler)](HTTPRequestHandler::Response&& response) mutable {
@@ -388,6 +389,7 @@ void WebDriverService::handleRequest(HTTPRequestHandler::Request&& request, Func
             replyHandler(WTF::move(response));
         };
     }
+#endif
 
     auto method = toCommandHTTPMethod(request.method);
     if (!method) {
--
2.43.0

Once the patches are added, wpewebkit latest should build correctly. However, to make use of it one needs a browser.

To demonstrate how easy the browser for WPE WebKit with Platform API can be, a very minimalistic one will be prepared below.

The first step is to create a directory:

mkdir meta-webkit/recipes-browser/wpe-browser/

Then a file: meta-webkit/recipes-browser/wpe-browser/main.cpp that implements the whole browser:

#include <wpe/webkit.h>

int main(int argc, const char *argv[]) {
g_autoptr(GMainLoop) loop = g_main_loop_new(nullptr, false);
g_autoptr(WebKitWebView) view = WEBKIT_WEB_VIEW(g_object_new(WEBKIT_TYPE_WEB_VIEW,
nullptr));
webkit_web_view_load_uri(view,
(argc > 1) ? argv[1] : "https://wpewebkit.org");
g_main_loop_run(loop);
return EXIT_SUCCESS;
}

Then a file: meta-webkit/recipes-browser/wpe-browser/CMakeLists.txt that describes how to build it:

cmake_minimum_required(VERSION 3.16)
project(wpe-browser CXX)

set(CMAKE_CXX_STANDARD 17)

include(GNUInstallDirs)

find_package(PkgConfig REQUIRED)

# The Wayland WPE Platform already depends on wpe-platform-2.0
pkg_check_modules(WebKitDeps REQUIRED
IMPORTED_TARGET
wpe-webkit-2.0
wpe-platform-wayland-2.0
)

add_executable(wpe-browser main.cpp)

target_link_libraries(wpe-browser
PRIVATE
PkgConfig::WebKitDeps
)

install(TARGETS wpe-browser RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

and finally a recipe file: meta-webkit/recipes-browser/wpe-browser/wpe-browser_1.0.bb that allows bitbake to build the browser and install it in the image:

SUMMARY = "Minimal WPE WebKit browser launcher"
DESCRIPTION = "A minimal launcher built on the WPE Platform API, displaying \
a URL given as its only argument (defaults to https://wpewebkit.org). \
Based on https://simonpena.com/blog/2026/03/20/getting-started-with-wpe-webkit/"

HOMEPAGE = "https://simonpena.com/blog/2026/03/20/getting-started-with-wpe-webkit/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

FILESEXTRAPATHS:prepend := "${THISDIR}:"

SRC_URI = "file://main.cpp \
file://CMakeLists.txt \
"


S = "${WORKDIR}"

DEPENDS = "wpewebkit"
RDEPENDS:${PN} += "wpewebkit"

inherit cmake pkgconfig features_check

REQUIRED_DISTRO_FEATURES = "opengl wayland"

After all those steps, everything is ready to perform a build. This time the commands are executed in the SDK:

source poky/oe-init-build-env build
bitbake core-image-weston
cd tmp/deploy/images/raspberrypi3-64/
# flash to SD card based on preference

Trying the image #

Once the image is built and flashed to SD card, and the SD card has been used to boot the Raspberry Pi, one can SSH into it, basically by:

ssh root@<IP>

Then, the browser should work out of the box. The first command to try is the one that doesn’t need the network and therefore is the simplest:

XDG_RUNTIME_DIR=/run/user/1000 WAYLAND_DISPLAY=wayland-1 wpe-browser 'webkit://gpu/stdout'

If the network is available, it’s worth starting simple and loading some HTTP page:

XDG_RUNTIME_DIR=/run/user/1000 WAYLAND_DISPLAY=wayland-1 wpe-browser 'http://info.cern.ch'

If that works as well, one can try the HTTPS one:

XDG_RUNTIME_DIR=/run/user/1000 WAYLAND_DISPLAY=wayland-1 wpe-browser 'https://igalia.com'

If there’s an issue with certificates, it’s likely due to broken date/time, so the correct one needs to be set using a command like:

date -s '2026-09-02 22:34:56'

Conclusions #

Since the Platform API is the future of WPE, it’s worth using it already. As the above sections demonstrate, it hasn’t ever been easier to create a WPE-powered browser for embedded hardware. Moreover, nowadays as LLMs are at play, using latest sources from main branch and quickly patching on demand is a possibility worth utilizing. With that, a broad sea of experimenting possibilities becomes wide open. However, it must not be forgotten that while main branch is great for testing new web platform features implemented in WebKit, it’s not necessarily ideal for testing performance. In such case, it’s better to rely on releases and proper browser engine fine tuning for particular hardware one plays with.

September 08, 2026 12:00 AM

September 07, 2026

Igalia WebKit Team: WebKit Igalia Periodical #76

Igalia WebKit

Update on what happened in WebKit in the week from August 31 to September 7.

This was another week focused on ironing out graphics issues in preparation for the upcoming 2.54.x release series. Did we say release? Here we have another set of packaged release candidates as well!

Cross-Port 🐱

The “paint flushing” feature of the Web Inspector that shows the areas of the layers that were painted is now available. On the other hand, setting WEBKIT_SHOW_DAMAGE=1 in the environment will show the areas of the window that were rendered. For example, if the page is scrolled a little, the whole window is rendered, but no layer has to be repainted.

Graphics 🖼️

Fixed visible pixel snapping in the GTK and WPE ports' Skia compositor by choosing linear instead of nearest-neighbor sampling for backing store tiles whenever a layer's transform no longer maps tile pixels onto screen pixels 1:1, matching what the Texture Mapper backend already got from its always-linear OpenGL code path.

Fixed a clipping bug in the Skia-based compositor that caused layers with overflow: hidden set to not clip blur and box-shadow filter outsets.

Fixed a repaint bug where content changing behind an element with a software-rendered filter such as blur() could leave stale pixels on screen, as with the glow effect that YouTube draws around videos in dark/ambient mode. The fix restores proper tracking of which layers act as the repaint container for a pixel-moving filter, so the repaint area is expanded correctly again on WPE, GTK and macOS.

A few problems with Offscreen Canvas have been fixed.

Releases 📦️

Release candidates WebKitGTK 2.53.92 and WPE WebKit 2.53.92 have been published, and they include polishing and a number of fixes that ensure that there will not be noticeable regressions brought in by the new Skia-based compositor and the damage tracking support—two of the main features of the upcoming stable release series. As the stable release dates approaches, we encourage people who try these preview versions to report issues in Bugzilla.

That’s all for this week!

By Igalia WebKit Team at September 07, 2026 11:43 PM

August 31, 2026

Igalia WebKit Team: WebKit Igalia Periodical #75

Igalia WebKit

Update on what happened in WebKit in the week from August 24 to August 31.

After such a packed edition last week, we can relax with an even more packed installment this week! The team has been moving full steam ahead with the Layer-Based SVG Engine, and graphics improvements in general, but we also had a handful of other updates, such as SDK updates, a new WebsitePolicies API, and more.

Cross-Port 🐱

Add new ChildChange types for moveBefore(). This addresses issues with the in-progress moveBefore() implementation where scripts would sometimes execute erroneously.

Added alpha channel support to color input choosers.

Fixed Service Worker static routes on non-Apple ports.

Added a WebsitePolicies:upgrade-to-https-policy property. When enabled this policy will automatically try using HTTPS even for HTTP websites (excluding localhost or IPs). The policy can be configured either to allow automatically falling back to HTTP if that fails, or to consider all HTTPS failures fatal for the best security.

Graphics 🖼️

Fixed SVG text being rasterized for the wrong resolution in zoomed standalone SVG documents in the Layer-Based SVG Engine (LBSE). vector-effect: non-scaling-stroke on <text> no longer comes out too thick, and the resulting metrics match the legacy SVG engine.

Fixed viewport clipping in the Layer-Based SVG Engine (LBSE), where a nested <svg> or a <marker> applied its viewport clip even when its content already fitted inside, and since that clip is not pixel-snapped its edge could fall between two device pixels and cut into whatever was drawn right at the viewport border. Painting now skips a clip that removes nothing, which eliminates a class of subtle pixel differences against the legacy SVG engine.

Fixed opacity animations not damaging descendant layers in the GTK and WPE ports, where a descendant that paints outside its parent's bounds kept its stale pixels on screen. The mask-specific damage handling was generalized into a single group-property path shared by opacity, filters, mask blend modes and replicas, which now damages the layer plus the overlap region of its whole subtree.

Added a cycle-analysis subcommand to webkit-sysprof, which draws every frame cycle of a capture as a bar of cells colored by the mark covering that moment on the main thread, showing whether a slow frame stalled on layout, a long timer or rasterization instead of only reporting that it was slow.

Removed redundant text updates for the text children of elements using display: contents, which previously got one on every style resolution regardless of whether their style actually changed. This removes dozens of useless updates per style recalculation in Web Component applications, where every <slot> uses display: contents.

Fixed tile image caching in the Skia compositor by regenerating the cached SkImage whenever a a tile's contents are updated and by adding a texture release callback that keeps the texture valid for as long as the image references it.

Switched video DMA-BUF buffers to Skia promise images in the Skia compositor, so the texture backing a video frame is only created at the point Skia actually draws it, which works for these buffers because the underlying DMABufBuffer can be kept alive until the promise image is released.

Fixed a hang in the Layer-Based SVG Engine (LBSE) when two SVG <pattern> elements reference each other through href, or one references itself: collecting the inherited pattern attributes now remembers which patterns it has already visited, the same cycle detection that gradients have always had. The walk also resolves every reference in the tree scope of the pattern it started from, so a pattern referenced from inside a shadow tree now inherits the right attributes.

Skipped anchor-positioning bookkeeping during style resolution when a document uses no anchor positioning at all, avoiding two hash lookups per styled element.

Cached the SVG viewport size used to resolve lengths in the Layer-Based SVG Engine (LBSE), instead of recomputing the nearest <svg> element's view box rectangle once per shape per frame. The viewport is invariant across a flush and identical for every shape under the same <svg>, so caching removes redundant work.

Removed the code path for GPU rendering without Deferred Display Lists (DDL) in the Skia compositor, so accelerated painting always records into a display list and no longer needs to create GL contexts on worker threads.

Fixed red and blue appearing swapped in non-accelerated video with the Skia compositor, by allocating the video frame's BitmapTexture with the BGRA layout flag and applying that flag when the buffer is turned into a Skia image.

Infrastructure 🏗️

Bumped the GTK and WPE developer SDK from v9 to v11, bringing GStreamer 1.28.5, sparkle-cdm 2026.2 and libsoup 3.7.2. Be sure to update your local wkdev-sdk container using wkdev-update to make sure your development environment matches what the CI is testing.

That’s all for this week!

By Igalia WebKit Team at August 31, 2026 08:12 PM

August 24, 2026

Igalia WebKit Team: WebKit Igalia Periodical #74

Igalia WebKit

Update on what happened in WebKit in the week from August 17 to August 24.

Another periodical packed with updates on the graphics, multimedia, and tooling fronts. Which sure has to do with preparing for the upcoming 2.54.x release series, that now has release candidates published. Also, do not miss a new stable release being published with fixes for security issues, and make sure to update.

Cross-Port 🐱

Fixed flakiness in the Web Inspector heap snapshot tests.

Extended the webkit-sysprof analyze tool cover the remaining marks emitted along the rendering pipeline, from RenderTreeBuild and CompositingUpdate through FinalizeRenderingUpdate, RenderLayerTree and WaitForCompositionCompletion down to the individual tile marks, pulling the tile count and the dirty region out of the mark messages as statistics next to the durations. The statistics tables also gained mean and median columns, so a captured trace now shows where the time in a frame actually goes.

Fixed test fast/canvas/canvas-composite-text-alpha.html, and improved the state of several other tests which relied on setTimeout().

Implemented moving steps for <option> elements.

Add support for asynchronous scrolling with touch events.

Touch events are now dispatched to the EventDispatcher thread in the Web Process, enabling smooth scrolling even when the main thread is busy. Additionally, this change fixed a bug where precise scrolling delta wheel events, dispatched by touchpads, failed to trigger asynchronous scrolling.

Multimedia 🎥

GStreamer-based multimedia support for WebKit, including (but not limited to) playback, capture, WebAudio, WebCodecs, and WebRTC.

Ensure that multimedia on pages restored from the back-forward cache is correctly processed without errors or reloading.

The robustness level is now queried from the CDM (if supported) when using Encrypted Media Extensions (EME).

Added video rendering support for Qualcomm hardware-accelerated decoders when the Skia compositor is in use, complementing the earlier TextureMapper-only support that left such videos blank with the new compositor.

Video frame processing now relies on the driver's implicit YUV to RGB conversion, steered by the colour space and sample range hints taken from the frame colorimetry, with a hint-free import as fallback.

Graphics 🖼️

Fixed how <feImage> paints its referenced element in the Layer-Based SVG Engine (LBSE), which still used a helper written for the legacy SVG engine, where SVG content never had layers, so it used to paint renderers directly and skipped any child that owns a RenderLayer under LBSE, silently dropping its opacity, mask, filter or 3D transform. The referenced content is now painted through the layer tree, the way <mask>,<clipPath>, <pattern> and <marker> content already is.

Made SVG mask no longer force a RenderLayer in the Layer-Based SVG Engine (LBSE), mirroring the earlier change for clip-path. A mask is now applied during painting by SVGNonLayerClippingAndMaskingScope, which opens one transparency layer capturing the renderer's foreground and composites the mask over it afterwards, and which also absorbed the clips that cannot be expressed as a path. A container with a mask keeps its layer, since the mask covers its whole subtree, while a leaf stays layer-free. This further reduces the layer overhead that has been holding LBSE back against the legacy SVG engine.

Skipped scroll coordination for composited layers that have no scrolling role, where the per-layer update previously walked every branch to detach roles the layer had never registered for, only to hand back the parent node ID unchanged. Cutting that work out shortens every compositing update, which matters for composition-heavy workloads.

Fixed rendering of an outermost <svg> with an empty viewBox in the Layer-Based SVG Engine (LBSE), which per the SVG specification should disable painting when the width or height is zero, matching what the legacy engine already did.

Skipped scroll coordination work for layers that have no scrolling role during compositing updates, where updateScrollCoordinationForLayer previously walked every branch to detach roles the layer had never registered for, only to hand back the unchanged parent node ID.

Releases 📦️

WebKitGTK 2.52.6 and WPE WebKit 2.52.6 have been released, including a number of fixes for security issues covered in the accompanying security advisory WSA-2026-0005 (GTK, WPE). It is recommended for everybody to update to these stable releases.

Stabilization for the upcoming 2.54.x release series for both the GTK and WPE ports is ongoing, with the first stable release, 2.54.0, expected around mid-September 2026. In the meantime release candidates WebKitGTK 2.53.91 and WPE WebKit 2.53.91 have been released.

Those interested in previewing the work done by the team in the last half year, including the new Skia-based compositor that is expected to eventually replace the aging TextureMapper, may want to give them a try and report any issues found in Bugzilla.

That’s all for this week!

By Igalia WebKit Team at August 24, 2026 11:30 PM

August 17, 2026

Igalia WebKit Team: WebKit Igalia Periodical #73

Igalia WebKit

Update on what happened in WebKit in the week from August 10 to August 17.

Following an extra packed periodical, this week we get back to a more regular pace with two nice bugfixes, and a new tool to analyze WebKit performance on Linux!

Cross-Port 🐱

The webkit-sysprof toolkit landed in main thus introducing a set of tools for processing Sysprof .syscap capture files recorded from WebKit (GTK/WPE ports). It extracts marks (timeline events) and counters (time-series metrics) from a capture and lets one dump, summarize, analyze, or plot delta-time histograms for them.

Graphics 🖼️

Fixed filters specified on the outermost <svg> element in the Layer-Based SVG Engine (LBSE), where a filter: url(...) reference on an SVG root was silently dropped because the layer code skipped it, as the legacy engine used to apply it by itself. The filter region is now resolved against the SVG root's border box in its container's coordinate system, since the outermost <svg> is a replaced element in the CSS box tree, not part of the SVG user space its children live in.

Avoided serializing gradient and pattern transforms just to answer a presence check in the Layer-Based SVG Engine (LBSE). Asking hasAttribute() whether gradientTransform or patternTransform was specified forced the transform list to be serialized into the attribute map whenever the base value was changed through the SVG DOM, even though that string is never read back, so the check is now answered directly from the typed accessor.

That’s all for this week!

By Igalia WebKit Team at August 17, 2026 07:08 PM

August 10, 2026

Igalia WebKit Team: WebKit Igalia Periodical #72

Igalia WebKit

Update on what happened in WebKit in the week from July 28 to August 10.

Quite a packed pair of weeks this time! The range of updates is big, but some highlights are the handful of Layer-Based SVG Engine updates, performance improvements, and the new WPE APIs. Finally, the Web Engines Hackfest recordings are now published!

Cross-Port 🐱

Fixed webkit_website_data_get_size() looking up sizes for localStorage, indexedDB, and the DOM Cache.

Enabled support for the File System and Storage APIs.

Added WEBKIT_WEBSITE_DATA_FILE_SYSTEM API to enable fetching/clearing File System data sites use.

Multimedia 🎥

GStreamer-based multimedia support for WebKit, including (but not limited to) playback, capture, WebAudio, WebCodecs, and WebRTC.

Landed a follow-up fix for the h264 edit list support to prevent regressions on YouTube MSE Conformance Tests 2019 when using older versions of GStreamer.

Avoided a spurious seek to zero when seeking to the end of an audio/video when playback starts.

Graphics 🖼️

Recovered a MotionMark compositing regression in the Skia backend, where respecting damage information during compositing cost about 20% on the composition suite and more than 50% on two of its tests. Restricting a draw to the damaged area means splitting it into source-rect-to-destination-rect pieces or drawing it under a device-space clip, and neither is needed when the damage already covers the whole draw, which is the common case in those tests because a composited layer is much smaller than a damage grid cell. Those draws are now issued exactly as they would be with damage turned off, avoiding a clip path that flushed the image set batch and left it an order of magnitude smaller, and with the regressions gone, using damage information for compositing was enabled again along with unifying damaged regions that are sent to the system compositor.

Skipped a per-frame visual overflow recomputation in the container paint cull of the Layer-Based SVG Engine (LBSE). The cull used a cached overflow rect that was recomputed by unioning all descendant bounds on a miss, which happened every frame for containers with an animated transform. It now only runs when the rect is already cached.

Skipped the outline paint pass for SVG renderers without an outline in the Layer-Based SVG Engine (LBSE). Every shape used to be painted twice per frame, the second pass being a no-op in the common outline-free case, so guarding it behind hasOutline() removes a redundant traversal from every frame.

Fixed masked SVG content being cut off at the edges in the Layer-Based SVG Engine (LBSE), where the mask image was sized over the enclosing integer rect of the mask content bounds in device space while the transparency layer clip was computed differently, losing the outermost pixels. An SVG renderer that is a box (<text>, <foreignObject>) also used the CSS mask clip rect derived from the border box, which leaves out SVG content spilling outside it, and now uses the visual overflow rect instead

Fixed most of the remaining <mask> issues in the Layer-Based SVG Engine (LBSE): masks were displaced on targets whose children carry transforms, the mask region given by x, y, width and height was ignored so content reaching past it was not cut off, and the cached mask image was never dropped on layout, leaving a resized viewport masking with an image rasterized for the old size.

Stopped rebuilding objectBoundingBox gradients on every layout size change in the Layer-Based SVG Engine (LBSE), which used to discard the cached gradient and re-collect its attributes (serializing every animated property back to a string, including gradientTransform) on the next paint. That work is wasted for objectBoundingBox units, whose coordinates resolve against the object bounding box with the userspace transform recomputed on every paint anyway, so only the clients are repainted now, while userSpaceOnUse gradients resolve against the viewport and are still invalidated as before.

Cached the SVG fill and stroke paint server directly on the renderer in the Layer-Based SVG Engine (LBSE), instead of in the shared referenced-resources table living in a renderer's rar data, where every fill and every stroke paid the cost of a hash map lookup just to reach the cache, which gives a small win on the MotionMark/Suits performance test. It also fixed a shape referencing a paint server that does not exist yet, which kept painting unfilled once an element finally took that id, because the shape registered itself as a pending resource under the full resolved URL while the lookups used the bare fragment identifier.

Sped up mapping the paint dirty rect through transforms in the Layer-Based SVG Engine (LBSE). Transformed SVG paints inverted the full 4x4 matrix on every paint, and now use the cheaper inverse of the 2x3 affine transform whenever the transform is affine, falling back to the 4x4 inverse only for 3D transforms.

Made SVG clip-path no longer force a RenderLayer in the Layer-Based SVG Engine (LBSE). A bare clip is now applied during painting through a shared ClipPathPaintScope, a scope object that sets up the clip in its constructor and tears it down afterwards, handling CSS basic-shape and box clips as well as SVG clipper resources so both regular CSS boxes and SVG content share one path. This is a further step in removing the intrinsic need for layers on SVG renderers, continuing the effort to close the performance gap between LBSE and the legacy SVG engine.

Fixed dynamic x and y updates on SVG <foreignObject> elements, which stopped taking effect after the viewport geometry started being derived from the resolved style. The x, y, width and height attributes are presentation attributes mapped to the CSS x, y, width and height properties, but only width and height marked the presentational hint style as dirty when they changed, so a style recalc never ran for x and y and layout kept reading stale values. All four geometry attributes now invalidate the presentational hint style, matching how <rect> handles its geometry, so setting x.baseVal.value from script repositions the <foreignObject> as expected.

Added support for external and data: URL references to clip-path, markers and paint servers (gradients and patterns) in the Layer-Based SVG Engine (LBSE). Until now the LBSE resource resolvers only looked for the referenced fragment inside the local document, so markup like url(file.svg#id) silently resolved to nothing, while filters already worked and the legacy SVG engine handled all of these since a few weeks.

Fixed SVG filters vanishing on elements with a very large bounding box in the Layer-Based SVG Engine (LBSE). The filter region was seeded with the element's object bounding box and then united with each referenced <filter> region, but a referenced <filter> brings its own region, and that region alone decides where the filter paints, so the union could grow far past the image buffer limits and get clamped down to scale that made the output disappear. When every function in the chain is a <filter> reference the bounding box is now dropped and only the referenced regions are kept, matching what the legacy SVG engine does, while objectBoundingBox filter units still resolve exactly as before and HTML/CSS filters are untouched.

WPE WebKit 📟

Add the WebView::run-color-chooser API to WPE to allow applications to show color choosers, similar to WebKitGTK's API.

The WPE port can now use libsecret for persistent credential storage, reusing the implementation from the WebKitGTK port. This is disabled by default and can be toggled passing -DUSE_LIBSECRET=ON to CMake when configuring the build.

Add the WebKitClipboardPermissionRequest API to WPE, allowing support for the clipboard permission similar to WebKItGTK.

Community & Events 🤝

The videos of the Web Engines Hackfest 2026 talks have been published, including the sessions from the new WPE WebKit track. This year the following WebKit-related talks have been recorded:

That’s all for this week!

By Igalia WebKit Team at August 10, 2026 06:51 PM