Skip to content

Commit b02ed87

Browse files
chrishtremilio
authored andcommitted
Add clarification that viewport propagated properties are not divided by CSS zoom
1 parent b2df82e commit b02ed87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css-viewport/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,14 @@ The <dfn export>unscaled</dfn> value of a CSS length relative to an element is t
515515
and {{IntersectionObserver}} APIs must return rects with [=scaled=]
516516
lengths.
517517

518-
All other APIs related to element geometries must return [=unscaled=] lengths.
518+
All other APIs related to element geometries must return [=unscaled=] lengths
519+
(except as detailed below).
519520
This is explained in detail in [[cssom-view#extensions-to-the-htmlelement-interface]].
520521

522+
In cases where properties (such as {{Element/scrollTop}}) are propagated to the viewport,
523+
APIs for these lengths must be in viewport units,
524+
and not be divided by the zoom of the element.
525+
521526
The {{Window/devicePixelRatio}} of a frame is multiplied by the [=effective zoom=] inherited by its parent frame.
522527
</h3>
523528

0 commit comments

Comments
 (0)