Skip to content

Commit 9158148

Browse files
committed
[cssom-view] Add caniuse boxes
Part of #1194.
1 parent f15a4a8 commit 9158148

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

cssom-view/Overview.bs

+9-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Former Editor: Anne van Kesteren, Opera Software ASA http://www.opera.com, annev
2020
Abstract: The APIs introduced by this specification provide authors with a way to inspect and manipulate the visual view of a document. This includes getting the position of element layout boxes, obtaining the width of the viewport through script, and also scrolling an element.
2121
Ignored Terms: open(), EventTarget, EventListener, Event, EventInit, Element, Range, Node, Text
2222
Ignored Vars: rect, point, quad
23+
Include Can I Use Panels: true
24+
Can I Use URL: https://drafts.csswg.org/cssom-view/
25+
Can I Use URL: https://www.w3.org/TR/cssom-view-1/
2326
</pre>
2427

2528
<pre class='anchors'>
@@ -484,7 +487,7 @@ partial interface Window {
484487
};
485488
</pre>
486489

487-
When the <dfn method for=Window>matchMedia(<var>query</var>)</dfn> method is invoked these steps must be run:
490+
When the <dfn method for=Window caniuse=matchmedia>matchMedia(<var>query</var>)</dfn> method is invoked these steps must be run:
488491
<ol>
489492
<li>Let <var>parsed media query list</var> be the result of
490493
<a lt='parse a media query list'>parsing</a>
@@ -650,7 +653,7 @@ The <dfn attribute for=Window>outerHeight</dfn> attribute must return the height
650653
client window. If there is no client window this
651654
attribute must return zero. <!--fingerprint-->
652655

653-
The <dfn attribute for=Window>devicePixelRatio</dfn> attribute must return the result of the following algorithm:
656+
The <dfn attribute for=Window caniuse=devicepixelratio>devicePixelRatio</dfn> attribute must return the result of the following algorithm:
654657

655658
1. If there is no output device, return 1 and abort these steps.
656659
1. Let <var>CSS pixel size</var> be the size of a CSS pixel at the current <a>page zoom</a> scale factor and at a <a>pinch zoom</a> scale factor of 1.0.
@@ -954,7 +957,7 @@ partial interface Document {
954957
};
955958
</pre>
956959

957-
The <dfn method for=Document>elementFromPoint(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
960+
The <dfn method for=Document caniuse=element-from-point>elementFromPoint(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
958961

959962
1. If either argument is negative, <var>x</var> is greater than the <a>viewport</a> width excluding the size of a rendered scroll bar (if any), or
960963
<var>y</var> is greater than the <a>viewport</a> height excluding the size of a rendered scroll bar (if any), or there is no <a>viewport</a>
@@ -1122,7 +1125,7 @@ The <dfn method for=Element>getClientRects()</dfn> method, when invoked, must re
11221125
* If the element on which the method was invoked has a computed value for the 'display' property of ''table'' or ''inline-table'' include both the table box and the caption box, if any, but not the anonymous container box.
11231126
* Replace each <a>anonymous block box</a> with its child box(es) and repeat this until no anonymous block boxes are left in the final list.
11241127

1125-
The <dfn method for=Element>getBoundingClientRect()</dfn> method, when invoked, must return the result of the following
1128+
The <dfn method for=Element caniuse=getboundingclientrect>getBoundingClientRect()</dfn> method, when invoked, must return the result of the following
11261129
algorithm:
11271130

11281131
1. Let <var>list</var> be the result of invoking {{Element/getClientRects()}} on the same element this method was invoked on.
@@ -1143,7 +1146,7 @@ algorithm:
11431146
</pre>
11441147
</div>
11451148

1146-
The <dfn method for=Element>scrollIntoView(<var>arg</var>)</dfn> method must run these steps:
1149+
The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>)</dfn> method must run these steps:
11471150

11481151
<!-- scrollIntoView() means arg=true but scrollIntoView(undefined) means arg=false, to align with impls. -->
11491152

@@ -1740,7 +1743,7 @@ Smooth Scrolling: The 'scroll-behavior' Property {#smooth-scrolling}
17401743
--------------------------------------------------------------------
17411744

17421745
<pre class=propdef>
1743-
Name: <dfn>scroll-behavior</dfn>
1746+
Name: scroll-behavior
17441747
Value: auto | smooth
17451748
Initial: auto
17461749
Applies to: <a>scrolling boxes</a>

0 commit comments

Comments
 (0)