mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
Implements the `currentCSSZoom` readonly attribute on the Element interface as [spec](https://drafts.csswg.org/cssom-view/#dom-element-currentcsszoom). - Adds a new layout query (`CurrentCSSZoomQuery`) that traverses from the target element up through its ancestors - Accumulates the product of all `zoom` CSS property values to compute the effective zoom - Returns 1.0 for elements that are not being rendered (display: none or no layout data) Testing: Updated WPT (removed 4 FAIL expectations from `idlharness.html.ini`). Behavior tests in Element-currentCSSZoom.html remain as expected FAIL because the underlying CSS `zoom` property implementation in Servo does not yet apply zoom values to layout (the zoom property is parsed but computed values remain 1.0). Fixes: #40256 Signed-off-by: WaterWhisperer <waterwhisperer24@qq.com>
5.6 KiB
5.6 KiB