Skip to content

1.0.7

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 10:39
· 112 commits to main since this release
a2814cb

Behavior changes

  • V8 now compiles a function with Maglev after about 2000 calls instead of 400. On real sites this cuts CPU load by about 10% with no change to load time. --v8-maglev-invocation-count sets it back.
  • CSS custom properties (var(--x)) are resolved when a property is read, so Tailwind 4 and other custom-property-heavy sites get the right display, visibility and layout
  • Media queries in the range form ((width >= 40rem), (400px <= width < 800px)) now match. Tailwind 4 breakpoints such as sm:block used to never apply.
  • @container size queries apply in the cascade
  • A <link rel="stylesheet"> whose media attribute doesn't match is not applied (it is still loaded and listed in document.styleSheets)
  • IntersectionObserver and ResizeObserver use the real layout geometry, keep observing after the first callback, and run together in one rendering task
  • Cross-origin windows follow the spec: no prototype, a SecurityError for properties outside the allow list, and a location where only href (set) and replace() work. frameElement is null across origins.
  • --obey-robots: when robots.txt can't be fetched (401, 403, 5xx, unexpected status, unparsable 200), the page is still blocked but the error is now RobotsUnreachable instead of RobotsBlocked
  • agent: the default Gemini model is now gemini-4-hydrogen (was gemini-3.8-flash)

Serve / CLI

  • --experimental-features webgl: getContext('webgl' | 'experimental-webgl' | 'webgl2') returns a WebGL context that draws nothing, instead of null. Renderers with no fallback, such as Compose for Web, then start. Without the flag nothing changes.
  • --v8-maglev-invocation-count <INT> (default 2000)
  • fetch --json has a terminated field, true when --terminate-ms stopped the page

Layout

  • Vertical margins
  • Images keep their aspect ratio when CSS sets only one side
  • white-space: pre, pre-wrap, pre-line and break-spaces break lines on \n
  • A flex-basis of 0 is honored when sharing out row width
  • Absolutely positioned boxes count in the document scroll range, so window.scrollTo() can reach them
  • innerText line breaks depend on each element's display (and on float and position)
  • text-transform: capitalize
  • A broken image's alt text stays inside the image box in screenshots

New Web APIs

  • document.execCommand: copy, cut, bold, italic, underline and strikeThrough, with their state and value queries
  • document.timeline.currentTime (fixes a hydration crash on some React / Next.js sites)
  • HTMLDataListElement.options
  • SVGElement.tabIndex, autofocus and nonce; WorkerGlobalScope.origin
  • Customized built-in elements can be created with new
  • Named frame lookup: an iframe's name attribute sets its window.name, and window[name] / window.frames[name] find it, across origins too (Stripe Elements now mount)
  • CSS parsing: lab(), lch(), oklab(), oklch(), color(), color-mix(), relative colors and position-area

Web API behavior / fixes

  • :modal matches a dialog opened with showModal()
  • Clicking an indeterminate checkbox clears indeterminate
  • XHR responseText drops a leading UTF-8 BOM and is decoded with the response charset (or the overrideMimeType one)
  • Blob content types from XHR, Response and Request are parsed
  • Request body methods read a stream body as it arrives, like Response
  • FormData.delete() and set() keep the order of entries
  • Deferred module scripts fetch their imports before running, so they keep their place in document order
  • ResizeObserver respects the box option and fires on content changes
  • [SameObject] collections return the same object every time
  • A textarea's default display is inline-block
  • A WAV source with no samples has a duration of 0
  • :nth-child() and related selectors don't overflow on large coefficients
  • IndexedDB checks that a transaction is active before checking that it is read-only
  • A custom element callback that creates a cycle while reparenting no longer loops forever
  • Crash fixes: an event target (WebSocket, XHR, ...) is kept alive while one of its events is, and a frame torn down with a navigation still queued is no longer freed twice
  • Objects created in an iframe or popup that has navigated are safe to use: their calls now fail or are ignored, as in Chrome, instead of reaching the old document

CDP

  • Input.dispatchMouseEvent passes modifiers to the DOM events
  • Input.dispatchKeyEvent passes autoRepeat to KeyboardEvent.repeat
  • Network.getResponseBody returns non-UTF-8 text bodies as UTF-8 text instead of base64
  • Browser.grantPermissions, setPermission and resetPermissions reject an unknown browserContextId
  • The geolocation override is cleared when the browser context closes
  • CORS: after Fetch.continueRequest with new headers, the preflight is decided on the page's original headers

BiDi

  • network module: beforeRequestSent, responseStarted, responseCompleted and fetchError events
  • network.addIntercept, removeIntercept, continueRequest, failRequest and provideResponse

WebDriver

  • Get Element Text includes the text of a visible textarea

Tools / MCP

  • search results tell which engine answered, in _meta (io.lightpanda/searchEngine)

Packaging

  • apt.lightpanda.io is updated automatically with each release

Performance / memory

  • V8 Fast API for simple calls and field getters
  • Markdown dumps are faster and use less memory (link resolution, and CDP writes the result straight into the reply)
  • Style matching: rules checked in reverse, a jump over rules that share a left part, a bitset of tracked properties, and fewer layout cache clears on class and left/right changes
  • IntersectionObserver.observe() and unobserve() use a map (Airbnb observes hundreds of elements per second)
  • Less memory: WebGL interfaces are created only when used, selector attributes are boxed (about 4MB less peak RSS on cnn.com), and freed style slots are reused