یادداشتهای انتشار به انگلیسی نوشته شدهاند.
Every computed style, real stylesheet objects and full 3D geometry, each checked against the reference browser
Scripts that read styles, stylesheets and geometry now get the answers the reference browser gives. getComputedStyle has a value for every CSS property (470 of 475 on a plain element, up from 90), the stylesheet of every style element is a real object that scripts can edit, and the geometry types behind canvas and CSS transforms are full 3D matrices instead of a 2D stand-in. Each one is compared with the reference browser answer by answer, and the matrices are also proven on thousands of generated cases, including against the engine's own CSS transforms. Two engine bugs that could break libraries quietly are fixed on the way.
Every computed style
getComputedStyle is how scripts read the final style of an element: animation libraries, design tools and accessibility checkers all depend on it. Floati used to answer only the properties a page had set, so most reads came back empty. It now answers every property with the reference browser's own value, worked out from what each one depends on (the element's colour, its font, its box), and the work happens once per page, not on every call.
Matrices you can trust
DOMMatrix, DOMPoint and DOMQuad are the maths types behind canvas transforms, CSS transforms and drag and zoom code. Floati's matrix was 2D only and knew four operations; it is now the full 4x4 type with every method, CSS transform strings, 3D rotation and inversion. On every build, 2,200 generated cases check that inverting really inverts, that composing equals applying one after the other, that every matrix survives being written out and read back exactly, and that a transform string gives the same matrix as the engine's own CSS, so what scripts compute and what the page paints cannot drift apart.
چه چیزی تغییر کرد
12 تغییر- APIهای وب و DOMgetComputedStyle answers every CSS property with the reference browser's value: 470 of 475 on a plain element, up from 90. Each property's default comes from the reference browser itself, tagged with what it depends on, so a border colour follows the element's text colour and logical sides follow the physical ones. 2,448 of 2,464 checks match; the other 16 are form-control borders, where the reference browser reports a style it does not draw.
- نمایش صفحهStill to come: listing a computed style by index (its length and numbered entries) counts the properties a page set rather than all 475 as the reference browser does. Every value can already be read by name.
- APIهای وب و DOMThe work behind getComputedStyle happens once per page instead of on every call: a first version made each call 70% slower, the shipped one costs nothing extra on real pages.
- رسانهA style element's sheet is a real CSSStyleSheet: the same object every time, null while the element is not in a page, a new one when its text changes, with ownerNode, media, title and disabled. Adding, removing and editing rules restyles the page without touching the element's text, which is how emotion and styled-components style production sites.
- رسانهLinked stylesheets are readable: once a stylesheet link has loaded, its sheet lists every rule, with the full address, media and title, and it appears in document.styleSheets in page order, as in the reference browser.
- JavaScript و JITdocument.styleSheets is a live StyleSheetList, the same object on every read, that you can index, loop over and pass to Array.from.
- نمایش صفحهElement.pseudo() and CSSPseudoElement give scripts an object for ::before, ::after and the other pseudo-elements, matching the reference browser on 19 of 19 checks.
- JavaScript و JITDOMMatrix and DOMMatrixReadOnly are full 4x4 matrices: translate, scale, rotate (also in 3D and about any axis), skew, flip, multiply, inverse, transformPoint, Float32 and Float64 arrays, JSON, and CSS transform strings with every absolute unit and angle unit. Rotations by right angles are exact, as in the reference browser. WebKitCSSMatrix is the same constructor. 118 of 118 checks match the reference browser.
- APIهای وب و DOMDOMPoint, DOMPointReadOnly and DOMQuad arrive, with quads whose corners are live points and bounds that follow them.
- APIهای وب و DOMProven on every build: 2,200 generated matrices and transform strings check inversion, composition, exact round trips, and agreement between DOMMatrix and the engine's own CSS transforms. Three deliberately broken versions of the maths were each caught.
- JavaScript و JITFixed: wrapping an object that can be looped over in a Proxy wrapped a copy of its items instead, so the proxy claimed to be an array and lost its prototype. Libraries that make reactive collections with Proxy hit this.
- JavaScript و JITFixed: replacing a global with Object.defineProperty(window, name, ...) changed window.name but not the bare name, so a polyfill that installed itself this way never took effect.
در مرورگر خودتان امتحان کنید
هر آزمون همین حالا در مرورگری که با آن میخوانید اجرا میشود. چیزی به جایی فرستاده نمیشود.









































