Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 06:23
· 209 commits to master since this release
c98ac41

Video and element audio as inputs to WebGPU and Web Audio; variable font axes from CSS; backdrop effects that copy only what they read, see a native layer's picture and keep HDR light; a shader standard library of nine modules; a window API that does on macOS what it does on Windows; and nine more image types each way.

Read the Skathi 0.9 release post

bun create skathi my-app
bun add @skathi-native/runtime@^0.9.0 && bun add -d @skathi-native/cli@^0.9.0
cargo add skathi@0.9.0

Rebuild your app's effects with the 0.9 CLI. The host requires effect manifest schema 14. A wheel notch scrolls about twice as far on Windows. "input": { "wheelScrollScale": 0.5 } restores the old distance. box-shadow blur is half as soft for the same value. A button wider than its label centres it. For embedders, <sk-layer> radii arrive in device pixels.

Media

  • An HTML <video> and a VideoFrame as the source of a WebGPU texture, texture_external on DirectX 12 and Metal.
  • The sound of an <audio> or <video> element in a Web Audio graph; the route survives a change of src.

Text

  • font-stretch / font-width, font-style: oblique <angle> and font-variation-settings, with the @font-face descriptors of the same names.
  • macOS and Linux: an @font-face with a weight range on one variable file draws the weight the text asks for.

Effects and shaders

  • [SkBackdropReach]: an effect says how far it reads, and the renderer copies and blurs only that (#130).
  • With "effects": { "prewarm": ["glass"] }, the first frame that draws glass uses its warmed pipeline. Each unlisted effect compiles on its own first draw. In the four-effect D3D12 case, the warmed draw compiled zero pipelines, down from three. true prewarms all effects. The default is false. #133, #134
  • Layer::picture: backdrop effects and backdrop-filter over an <sk-layer> see the layer's picture; pageBackdropAt gives the page alone. Layer::stack and Layer::frame_submitted report paint order and every page frame (#129, #132).
  • HDR windows: backdrop effects and backdrop-filter: blur() no longer cut what is behind them to SDR white. [SkBackdropLinear] gives an effect its backdrop in linear light (#131).
  • Shader standard library: sk.color, sk.math, sk.blend, sk.sdf, sk.ease, sk.noise, sk.sample, sk.light, sk.tone, with a reference page per type and function.

Windows and input

  • macOS: appWindow.theme sets the AppKit appearance of the app and its windows (#117); pop-outs with focusable={false} and taskbar={false} (#118); appShell works.
  • appWindow.startResizeDragging(direction?) on Windows and Linux (#122).
  • A wheel notch scrolls what it does in Chromium on each platform; input.wheelScrollScale and app.wheelScrollScale (#121).
  • matchMedia queries live only while listened to.

Images

  • ImageDecoder: ICO and CUR, TIFF, PNM, SVG, QOI, TGA, Radiance HDR, farbfeld, DDS.
  • ImageEncoder: GIF, ICO, BMP, QOI, TIFF, TGA, PNM, farbfeld, Radiance HDR.

Fixes

  • :focus-within on the element itself is painted (#124).
  • Rules with states cascade as in a browser (#125).
  • box-shadow blur as wide as a browser draws it (#126).
  • <button> and button inputs centre their text (#123).
  • <sk-layer>: radii in device pixels, and the opacity includes the ancestors' (#128).
  • Windows, HDR: translucent content over a transparent window is no longer several times too bright.
  • Windows: an aspect-ratio window no longer swings between fits while a corner is dragged (#116).
  • On macOS, a failed Metal command buffer now returns its error to the screenshot caller.
  • Effects that combine 3D and cellular noise could hang a virtual Metal GPU and prevent later frames from rendering. sk.noise now inlines the affected calculations.
  • Screenshot tests for clipping, shaders and surfaces use the window's pixel scale, including when AppKit adjusts the requested window width.
  • The inspector's frame-rate check reads the FPS counter. The CSS ch check compares layout with zeroes drawn in the same font.
  • Windows tests cover the taskbar policy of both nonactivating overlays and full-monitor covers.
  • On macOS, a window configured to draw while fully covered keeps its native surfaces and layer pictures live when AppKit shows it. Hiding or minimizing it suspends them.
  • Cmd+Q quits an embedded macOS app immediately (#112).
  • Layout on taffy 0.16.

Known

  • The prebuilt AOT compilers use the tagged sources with the two RedJS path dependency versions corrected in the standalone Cargo.lock. To build sk-aot from the tag with --locked, apply the lockfile fix.
  • The tagged AVFoundation integration test can report frame lag on a busy hosted Mac. The test correction samples the clock while the frame is requested and retains the 100 ms limit.
  • The built-in frost still copies the whole window, and so does an effect inside an effect layer.
  • A layer's picture is unavailable inside an isolated group and on the Direct3D 11 fallback. On an M4 Mac mini, a real window showed the picture inside the rounded reader and the page alone outside it. Linux window pixels remain unverified.
  • HDR backdrops passed offscreen half-float tests on Direct3D 12, wgpu and Metal on an M4 Mac mini. Verification on a physical HDR display and a visual check of the apps/hello glow are still pending.
  • With the Windows desktop locked, two DWM material checks in backdrop.spec and two frame timing checks in surface.spec can fail.
  • startResizeDragging does nothing on macOS; the window theme on Linux reaches only prefers-color-scheme.

Full Changelog: v0.8.5...v0.9.0