Skip to content

Commit e462f14

Browse files
authored
[css-viewport] Define the viewport property in window (#10548)
In preparation to add the segments property we need to make sure that the viewport property is properly specified. This patch already adds the zoom property to the viewport interface as it was already defined.
1 parent 358bb68 commit e462f14

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

css-viewport/Overview.bs

+21-2
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,27 @@ only the value previously set to it.
362362
}
363363
</pre>
364364

365-
<h2 id='zoom-property'>
366-
The 'zoom' property
365+
<h2 id=extensions-to-the-window-interface>Extensions to the {{Window}} Interface</h2>
366+
367+
<pre class=idl>
368+
partial interface Window {
369+
[SameObject, Replaceable] readonly attribute Viewport? viewport;
370+
};
371+
</pre>
372+
373+
<h2 id=viewport>Viewport</h2>
374+
375+
<h3 id="the-viewport-interface">The {{Viewport}} Interface</h3>
376+
377+
<pre class=idl>
378+
[Exposed=Window]
379+
interface Viewport : EventTarget {
380+
readonly attribute double zoom;
381+
};
382+
</pre>
383+
384+
<h2 id='zoom'>
385+
The <dfn attribute for=Viewport>zoom</dfn> property
367386
</h2>
368387

369388
An element becomes zoomed when the 'zoom' property has a positive computed value different than 1

0 commit comments

Comments
 (0)