Skip to content

Commit 9c86fc9

Browse files
author
Greg Whitworth
committed
[Resize-Observer] Added definition links for boxes, removed snap box for now to understand use cases further before adding it in.
1 parent 137cedd commit 9c86fc9

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

resize-observer-1/Overview.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,17 @@ It is modeled after {{MutationObserver}} and <a>IntersectionObserver</a>.
128128

129129
<pre class="idl">
130130
enum ResizeObserverSizeOptions {
131-
"border-box", "content-box", "scroll-box", "pixel-snapped-box"
131+
"border-box", "content-box", "scroll-box"
132132
};
133133
</pre>
134134

135+
In order to enable flexibility for authors to observe
136+
more boxes than solely the {{content-box}} ResizeObserver takes one or more of the following enums to observe
137+
138+
* {{border-box}} : the {{border-box}} as defined in CSS2
139+
* {{content-box}} : the {{content-box}} as defined in CSS2
140+
* {{content-box}} : the {{scrollport}} of the {{scroll container}}
141+
135142
<p class="issue">Is 'pixel-snapped-box' the best name?</p>
136143

137144
<pre class="idl">

0 commit comments

Comments
 (0)