You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resize-observer-1/Overview.bs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -305,7 +305,7 @@ A future version of this spec will extend the returned {{FrozenArray}} to contai
305
305
included here in order to help provide clarity during the processing model. It effectively holds observation information for a single {{Element}}. This
306
306
interface is not visible to Javascript.</p>
307
307
308
-
<pre class="idl exclude">
308
+
<pre class="idl extract">
309
309
interface ResizeObservation {
310
310
constructor(Element target);
311
311
readonly attribute Element target;
@@ -530,15 +530,15 @@ elements do not use standard CSS box model.
530
530
To <dfn>calculate box size</dfn>, given |target| and |observedBox|, run these steps:
531
531
532
532
1. If |target| is an {{SVGGraphicsElement}}
533
-
533
+
534
534
1. If |observedBox| is "border-box" or "content-box"
535
535
536
536
1. Set |computedSize|.inlineSize to |target|'s <a>bounding box</a> inline length.
537
537
538
538
2. Set |computedSize|.blockSize to |target|'s <a>bounding box</a> block length.
539
-
539
+
540
540
2. 1. If |observedBox| is "device-pixel-content-box"
541
-
541
+
542
542
1. Set |computedSize|.inlineSize to |target|'s <a>bounding box</a> inline length, in integral device pixels.
543
543
544
544
2. Set |computedSize|.blockSize to |target|'s <a>bounding box</a> block length, in integral device pixels.
0 commit comments