همه نسخه‌ها v0.1.35311 اکتبر 2026نمایش صفحه خوراک

یادداشت‌های انتشار به انگلیسی نوشته شده‌اند.

Style matching tries a third of the rules, queries prepare their selector once, sibling walks stay fast

Pages restyle and query themselves faster, and old pages without a doctype now style correctly. Style matching tries about a third of the rules it used to, because rules written for the page root, for an attribute, or wrapped in :where() and :is() go straight to the elements they can match. querySelector, matches and closest prepare a selector once instead of again for every element they test, walking a long list with nextSibling no longer slows down as the list grows, and reading an element's parent, children, siblings, name, id or class skips the full member lookup. In pages without a doctype, class and id selectors ignore letter case, as they do in the reference browser.

3.0 M -> 1.0 MRules tried per full restyle, code-hosting page
61 -> 11 msquerySelector over 2,800 elements, 300 times
14.6 -> 0.8 msWalking a 5,000-item list four times
نکته‌های برجسته3

Style matching tries a third of the rules

To style an element the engine only tries the rules whose last part could match it: rules for its tag, its classes or its id. A rule whose last part had none of those was tried against every element on the page. A code-hosting page has over a thousand such rules - hundreds of theme blocks written for the page root, rules keyed on an attribute such as a colour mode, and design-system rules wrapped in :where() - so every full restyle tried three million rules to make twenty-six thousand matches. Rules for the page root now go to the root element only, attribute rules to elements carrying that attribute, and :where(.x) and :is(.x) rules to elements with class x. The matcher still decides every match; it is simply asked a third as often.

Rules tried per full restyle, code-hosting page3.0 M -> 1.0 MRules reaching the full matcher1.2 M -> 0.29 MStyle time on that page830 -> ~620 ms

Queries prepare their selector once

querySelectorAll already prepared its selector once for the whole search. querySelector, matches and closest split the selector list and read every part again for each element they tested. All four now share one prepared form, kept for the next call with the same selector, with simple selectors such as a class or a tag compared directly.

querySelector over 2,800 elements, 300 times61 -> 11 msA selector with a combinator155 -> 17 ms (reference 13.5)closest, 20,000 calls19.5 -> 7 ms

Walking siblings stays fast on long lists

nextSibling and previousSibling found an element's position by scanning its parent's children on every read, so walking a list of n items cost n times n steps. The position of the last answer is now remembered and checked first, so each step of a walk is one comparison. The most read node links and names - parent, children, siblings, nodeName, tagName, id and className - are also answered directly from the document instead of through the full member lookup, and every such answer can be checked against the full lookup with a switch.

Walking a 5,000-item list four times14.6 -> 0.8 ms

چه چیزی تغییر کرد

5 تغییر
  1. نمایش صفحهRules for the page root, rules keyed on an attribute, and :where(.x) / :is(.x) rules are only tried on elements they can match; a code-hosting page tries 1.0 M rules per full restyle instead of 3.0 M and spends about a quarter less time on style.
  2. نمایش صفحهquerySelector, matches and closest prepare their selector once and keep it for the next call: querySelector 61 -> 11 ms in a test page, closest 19.5 -> 7 ms.
  3. نمایش صفحهWalking siblings with nextSibling / previousSibling is one step per node instead of a scan of the parent's children; a 5,000-item list walks in 0.8 ms instead of 14.6.
  4. نمایش صفحهparentNode, firstChild, siblings, nodeName, tagName, id and className are read straight from the document.
  5. نمایش صفحهIn pages without a doctype, class and id selectors match without regard to letter case, in style sheets and in queries, as in the reference browser.

در مرورگر خودتان امتحان کنید

هر آزمون همین حالا در مرورگری که با آن می‌خوانید اجرا می‌شود. چیزی به جایی فرستاده نمی‌شود.

بررسیمرورگر شماFloati
querySelector finds the first match of a listدر حال بررسیبله
closest walks up through a selector listدر حال بررسیبله
A nextSibling walk visits every node onceدر حال بررسیبله
:root rules style the root elementدر حال بررسیبله
Attribute rules style only elements carrying itدر حال بررسیبله
:where(.x) rules style .x elementsدر حال بررسیبله
Standards-mode class names keep their caseدر حال بررسیبله
قبول 7 / 7
همه چیز از v0.1.353 به بعد در یک جا

نسخه‌ها

v0.1.0 - 0.1.9 · 10 ژوئیه 2026418v0.1.427 · 25 نوامبر 2026

نوامبر2026 · 1 نسخه

اکتبر2026 · 7 نسخه

سپتامبر2026 · 3 نسخه

اوت2026 · 18 نسخه

14614 اوتWebAssembly modules can call JavaScriptv0.1.146 · نمایش صفحه 14414 اوتExact tiling: percentage columns never leave a seamv0.1.144 · JavaScript و JIT 13514 اوتDevTools automation: the methods a real driver reaches forv0.1.135 · APIهای وب و DOM 12413 اوتPuppeteer queries elements end to end - the first floor moves the overallv0.1.124 · نمایش صفحه 12213 اوتTime-travel scrubbing: jump to any pause on the timelinev0.1.122 · ابزارهای توسعه‌دهنده 12113 اوتTime-travel debugging: step BACK - a debugger the reference browser does not havev0.1.121 · زبانه‌ها و رابط 12013 اوتDevTools: a WebSocket transport, so external tools can attachv0.1.120 · ابزارهای توسعه‌دهنده 11913 اوتDevTools: a Sources panel with a clickable line gutterv0.1.119 · زبانه‌ها و رابط 11811 اوتDevTools debugger: step over, into and outv0.1.118 · JavaScript و JIT 1177 اوتDevTools breakpoints snap to the nearest real linev0.1.117 · ابزارهای توسعه‌دهنده 1167 اوتDevTools debugger: source-line breakpointsv0.1.116 · ابزارهای توسعه‌دهنده 1157 اوتDevTools debugger: evaluate expressions at the breakpointv0.1.115 · ابزارهای توسعه‌دهنده 1147 اوتDevTools debugger: pause on exceptionsv0.1.114 · ابزارهای توسعه‌دهنده 1137 اوتVisual DevTools: a live Console REPL and a Debugger panelv0.1.113 · زبانه‌ها و رابط 1127 اوتDevTools Debugger: real `debugger;` breakpoints at the VMv0.1.112 · ابزارهای توسعه‌دهنده 1006 اوتThe browser can be driven, not just watched: a DevTools Protocol that mutates the real pagev0.1.100 · ابزارهای توسعه‌دهنده 986 اوتThe engine speaks the DevTools Protocolv0.1.98 · ابزارهای توسعه‌دهنده 704 اوتOne press, and you are on the new versionv0.1.70 · زبانه‌ها و رابط

ژوئیه2026 · 3 نسخه