返回资讯中心
外部精选
软件工程
#开发者实时流

August in Servo: CSS Grid, text selection, and more

Plus accessibility and navigation improvements.

Hacker News 最新msub22026/10/18 · 2026/10/1828 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Plus accessibility and navigation improvements.

Servo 0.6.0 contains all of the changes we landed in August, which came out to 417 commits!

The big news is that we’ve turned on support for CSS Grid by default (@nicoburns, #45621). This has had a huge positive impact on the visual appearance of many websites!

We’ve shipped several new web platform features:

This release also contains significant improvements to navigation, document loading, and session history, which are some of the gnarliest parts of the HTML specification. Who knew that loading about:blank was so complicated? The upshot to all this work is that pages that open additional windows or include iframes work much more reliably.

This is another big update, so here’s an outline:

We upgraded to SpiderMonkey v153, which brings many new security and crash fixes to Servo’s JavaScript engine integration (@sagudev, @Gae24, #47489).

Navigating away from a document that activated fullscreen mode now exits fullscreen mode (@shubhamg13, @jdm, #47123).

CSS Grid enabled by default means that many websites with traditional grid layouts now look correct, like rustweek.org.

It also makes a lot of websites look better that you wouldn’t assume rely on CSS Grid:

Panning gestures initiated by touch inputs now lock to the dominant axis (@yezhizhen, #46983). This results in more predictable panning when interacting with pages in Servo.

We fixed a crash affecting gumroad.com.au (@lumiscosity, #47266).

We’re interested to hear how well your favourite websites run in Servo! Report successes in this Zulip thread, and failures in our GitHub issues.

Accessibility support in Servo continues to make great strides; it can be enabled with the --pref accessibility_enabled command line argument. Servo now reports positions and sizes for items in the content accessibility tree (@philocalyst, @alice, @mrobinson, #46996), allowing macOS VoiceOver to work more reliably. We also report many ARIA roles for web content elements to accessibility toolkits (@mukilan, #47318).

Servo’s support for Document.execCommand() is rapidly improving, and can be enabled with --pref dom_exec_command_enabled. We fixed issues with the inserttext command (@Psychpsyo, #47224, #47306), editing uneditable content (@Psychpsyo, #47362), computing contained nodes (@TimvdLippe, #47429), adjusting selections in contenteditable (@mrobinson, #47393, #47581, #47581), and implemented the indent and insertLineBreak commands (@Psychpsyo, #47416, #47445).

We made a lot of progress on the LargestContentfulPaint performance metric, implemented behind the --pref largest_contentful_paint_enabled argument. Servo now supports the element and loadTime attributes, (@shubhamg13, #46553, #47475), URLs for video element posters (@shubhamg13, #43376), accurate size information (@shubhamg13, #43378), and painting text nodes (@shubhamg13, #47212).

There was preparatory work for a future AudioWorklet implementation (@niyabits, #46856, #47016, #47199). See Niya’s blog post about her Outreachy project for more details!

We’re continuing work on the ServiceWorker feature, which can be enabled with --pref dom_serviceworker_enabled. This month we implemented the CookieStore interface behind the --pref dom_cookiestore_enabled command line argument (@Taym95, #47044) as well as the Cache interface (@gterzian, #47220).

Servo now supports a disk-backed HTTP cache that can be enabled with --pref network_http_disk_cache (@Narfinger, #43819). This cache persists between runs, but there is not yet any way to clear it.

Breaking change: WebView::toggle_sampling_profiler has been removed (@lumiscosity, #47014). To perform sampling profiling on Servo, follow the instructions in the book.

Breaking change: The variants of MouseButton have been renamed to Primary, Secondary, and Auxiliary (@mrobinson, @SimonSapin, #47327).

We’ve added several new Cargo features reflecting common usage patterns:

One visible change is that interactive text selection now works! This is the result of lots of work across our script and layout code to ensure it respects the actual geometry of the page content (@mrobinson, @SimonSapin, #47022, #47025, #47329, #47358, #46982, #47425, #47438, #47437, #47581, #47070, #47048, #46963).

Building Servo now requires at least Clang 19 on all platforms (@jschwe, #47421). Additionally, the cargo-ohos tool is now required for building for OpenHarmony (@jschwe, #47334).

Debug builds on Windows can now complete successfully (@jschwe, #47372).

Linux arm64 builds have been customized to work on Raspberry Pi 5 (@mukilan, #47113). Any libservo embedders targeting the same platform will require a similar change if they are using jemalloc.

Under Wayland and OpenHarmony, we now integrate with the system clipboard (@TheZoq2, @yezhizhen, @jschwe, #46938, #47177).

The macOS command key and Windows logo key is now reported as Meta instead of Super (@eachra-bawn, #47330).

The Android port has had many rough edges filed off as part of modernizing it for the Compose UI (@veyndan, #47656, #47491, #47494, #47697, #46955, #47644, #47652, #47276, #47277, #47299, #47439) and converting its implementation to Kotlin (@veyndan, #46926, #46925, #46951, #46965). Library consumers are no longer responsible for implementing pause and resume support (@veyndan, #47555).

Meanwhile, the OpenHarmony port now supports external keyboards with US keyboard layouts (@jschwe, #47359). Additionally, there are now better fallback font selections for CJK characters (@RichardTjokroutomo, #47116, #47664).

Setting the device_pixel_ratio_override preference is no longer ignored on Android and OpenHarmony (@jschwe, #47081).

There were many small changes this month that removed unnecessary allocations (@Narfinger, @jschwe, @yezhizhen, #47264, #47147, #47066, #47249, #47249, #47285, #47307, #47343, #47361, #47395, #47427, #47454, #47474, #47506, #47479, #47530, #47541, #47566, #47509, #47622).

We also reduced GC interactions leading to better JS performance (@jdm, @Narfinger, @webbeef, @TimvdLippe, @mrobinson, #47513, #47250, #47158, #47165, #47049, #47251, #47510, #46981).

On platforms that memory map font data (such as OpenHarmony and macOS), we can now save time that would otherwise be spent loading font files from disk (@jschwe, #47029). Similarly, reading system fonts is no longer in the critical path of starting up the engine (@Narfinger, @jdm, #46476).

There were were also a number of savings in the final binary size (@jschwe, @kkoyung, @Narfinger, @jschwe, #47211, #47214, #47210, #46950).

We fixed crashes related to media playback (@calvaris, #46891), the 2d canvas renderer (@yezhizhen, #46915), fonts with negative line gaps (@jschwe, #47374), and resolving fonts variants (@simonwuelker, #47356).

Canvas renderer worker threads can now be adjusted by the thread_pool_canvas_workers preference, allowing more performance granularity according to embedder needs. (@jschwe, #46691, #47018)

We’ve continued our long-running effort to use the Rust type system to make Servo’s integration with SpiderMonkey safer and more reliable (@jdm, @treetmitterglad, @Narfinger, @Gae24, #47398, #47296, #47051, #47005, #47323, #47297, #47322, #47368, #47446, #47317). We’re also working on statically preventing a footgun that can lead to uncollectible GC cycles and leaking memory (@Gae24, #47355, #47650).

Historically, about:memory has reported all memory usage by Rust implementations of JS APIs as one undifferentiated js/malloc-heap number. We now break it down by memory usage of nodes in document trees (@pylbrecht, #46931) and interfaces that are not part of the DOM (@jdm, #47531). We also report memory usage for the network stack’s cookie database (@Narfinger, #47248) and the canvas renderer backend (@janeoa, @jdm, #46958).

We’ve added an experimental threadboost mechanism (@jschwe, @mrobinson, #46843, #47027) that has been observed to improve Speedometer results by 50% and allow canvas rendering to reach 60 FPS. This is initially enabled for OpenHarmony, but future expansion to other Linux-based platforms is expected.

We upgraded to resvg 0.48, fixing many issues with SVG images with missing width/height attributes that specified a viewBox (@nicoburns, #46937).

Upgrading to Taffy 0.14 fixed a number of CSS grid-related crashes, support for grid names, better intrinsic sizing, and improved performance (@nicoburns, #47031, #47493). We also fixed some issues in the Taffy grid integration for more accurate baselines (@nicoburns, #47518).

Session history traversals (i.e. navigating backwards or forwards in history) now wait for any outstanding traversal to complete (@mrobinson, #47293, #47485). Meanwhile, navigations to about:blank are skipped if the initial about:blank document is present (@jdm, #47074).

about:blank documents no longer use the asynchronous HTML parser (@jdm, #47050), and no longer report a readyState of LOADING (@mrobinson, #47450). Opening auxiliary windows will wait to dispatch the load event until the initial about:blank document has been replaced (@jdm, @mrobinson, #47442, #46975).

For non-about:blank content, we also made the document loading phases more reliable (@TimvdLippe, @mrobinson, #47426), improved conformance of javascript: URL evaluation and navigation target selection (@mrobinson, #47486, #47516), and addressed longstanding compatibility issues with cross-origin Window and Location objects (@mrobinson, #47549).

Our media playback has improved; we fixed several issues around canPlayType() on HTMLMediaElement that allow Servo to report that MP4 content is playable (@jdm, #47612, #47641, #47670).

Input elements with the autofocus property inside of a <dialog> now receive focus when that dialog is opened (@skyz1, @mrobinson, #45826).

We improved the exception error text for numerous web APIs (@jdm, @eachra-bawn, #46960, #47124, #47168, #47580, #47430, #47127).

We also fixed issues related to many other APIs, including:

A special thanks to the following people for landing their first patch in Servo:

Interested in helping build a web browser? Take a look at our curated list of issues that are good for new contributors!

Thanks again for your generous support! We are now receiving 8128 USD/month (+3% from July) in recurring donations. This helps us cover the cost of our speedy CI and benchmarking servers, one of our latest Outreachy interns, and funding maintainer work that helps more people contribute to Servo.

Servo is also on thanks.dev, and already 36 GitHub users (+1 from July) that depend on Servo are sponsoring us there. If you use Servo libraries like url, html5ever, selectors, or cssparser, signing up for thanks.dev could be a good way for you (or your employer) to give back to the community.

We now have sponsorship tiers that allow you or your organisation to donate to the Servo project with public acknowlegement of your support. If you’re interested in this kind of sponsorship, please contact us at [email protected].

Use of donations is decided transparently via the Technical Steering Committee’s public funding request process, and active proposals are tracked in servo/project#187. For more details, head to our Sponsorship page.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →