版本说明以英文撰写。
Scripts that only compile when it pays, cards that line up, and bold that stays bold
Pages run their scripts faster: the engine now compiles code to machine instructions only once that pays for itself, so busy pages spend far less time waiting on compilation, and a page's scripts are read in parallel before they run. Large objects find their properties faster, web-component pages restyle in half the time, and container-query pages restyle only what can change. Layout follows the reference browser more closely: a row of cards is as tall as its tallest card, bold and regular text no longer trade letters, inline flex and grid boxes sit on the baseline, boxes split across columns, and overlays fill the box they cover.
Compile only when it pays
Code that runs often is turned into machine instructions, and that used to happen after a fixed number of runs. On real pages most functions run a few times and stop, so the engine spent more time compiling than it saved: up to a tenth of a second per page. Now each function keeps a running bill of what interpreting it has cost, and it is compiled only once that bill reaches what compiling would cost, the classic rent-or-buy rule. A function that runs a few times never pays for a compile; a hot loop earns one within a fraction of a millisecond.
Scripts read in parallel
Every script a page loads used to be read (parsed) on the main thread, one at a time, just before it ran. When a page brings a lot of script, they are now all read at once on up to six worker threads while the main thread runs them in order as soon as each is ready. Nothing a page can observe changes: errors are still reported where the script is reached.
A row of cards is as tall as its tallest card




Flex items stretch to fill their line by default, which is how a row of cards gets equal heights. When the row had no height of its own, its items were stretched to a first estimate of one line of text, and the cards with less content stayed short. The line now takes the height its tallest item really has, and every stretched item fills it.
three cards in a flex row
Bold and regular text no longer trade letters




The regular and bold faces of a family are often stored in one font file. The cache that keeps each drawn letter told them apart by the file, so whichever weight drew a letter first at a size was used for that letter everywhere after it: bold headings lost letters to the regular text, and body text picked up stray bold ones. Each face is now told apart by its own outlines.
bold headings over regular text in one family
改动内容
14 项改动- JavaScript 与 JITFunctions are compiled to machine code only once interpreting them has cost as much as compiling would (rent-or-buy), on entry and inside running loops; real pages spend 12% less time in script, and compile time on the busiest pages falls from about a tenth of a second to about one millisecond.
- 渲染A page's scripts are parsed on up to six worker threads before they run, when the page brings more than 64 KB of script; the main thread runs them in order as before.
- JavaScript 与 JITCompiled code reads a variable from an enclosing function straight from its slot while that function's frame keeps its layout, instead of looking it up by name.
- JavaScript 与 JITObjects with many properties, and object shapes that many others grow from, find a property or the next shape through a hash index: building the DOM 26% faster, class methods 16% faster, JSON objects 18% faster.
- 渲染A single-line flex row with no height of its own is as tall as its tallest item, and every stretched item fills it with its margin box, so cards in a row match.
- 渲染The regular and bold faces of one font file no longer share drawn letters, so bold and regular text keep their own weight.
- 渲染Inline flex and grid boxes sit on the baseline of their first item, empty boxes and controls hang their descent the way the reference browser does, and stretched nested rows align their own items.
- 渲染Multi-column text splits an empty box with a height across columns, and a box split across columns reports the union of its pieces.
- 渲染An absolutely positioned box with insets (such as inset: 0) inside a flex or grid container fills its containing block, and an absolutely positioned span or inline-table computes as a block or table.
- 渲染color-mix() mixes premultiplied, so mixing a colour with transparent keeps the colour and only lowers its opacity.
- Web API 与 DOMAn empty document (every child positioned) still paints the body background over the whole page, and images in inline frames and table captions are measured once and on the table's border box.
- 渲染Pages built from web components restyle in about half the time, container-query pages restyle only the subtrees inside their containers, and :has() rules restyle only what they can match.
- 渲染A page's polling timer keeps running while a later one-shot timer is still waiting, so content that fades in once a page settles appears.
- JavaScript 与 JITlet and const are in their dead zone in every compiled tier as in the interpreter, and unary minus gives -0 where it should, fixing five long-standing differences.
在你的浏览器中试试
每项检查都在你正在阅读的浏览器中实时运行。不会发送任何内容。

















