Skip to content

Commit c6d5391

Browse files
author
Greg Whitworth
committed
[resize-observer] Renamed contentSize to contentBoxSize
1 parent f39d774 commit c6d5391

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

resize-observer-1/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ interface ResizeObserverEntry {
234234
readonly attribute Element target;
235235
readonly attribute DOMRectReadOnly contentRect;
236236
readonly attribute ResizeObserverSize borderBoxSize;
237-
readonly attribute ResizeObserverSize contentSize;
237+
readonly attribute ResizeObserverSize contentBoxSize;
238238
};
239239
</pre>
240240

@@ -251,7 +251,7 @@ interface ResizeObserverEntry {
251251
: <dfn>borderBoxSize</dfn>
252252
::
253253
{{Element}}'s <a>border box</a> size when {{ResizeObserverCallback}} is invoked.
254-
: <dfn>contentSize</dfn>
254+
: <dfn>contentBoxSize</dfn>
255255
::
256256
{{Element}}'s <a>content rect</a> size when {{ResizeObserverCallback}} is invoked.
257257
</div>
@@ -266,10 +266,10 @@ interface ResizeObserverEntry {
266266
3. Set |this|.{{ResizeObserverEntry/borderBoxSize}} slot to result of <a href="#calculate-box-size">
267267
computing size given |target| and specificSize of "border-box"</a>.
268268

269-
4. Set |this|.{{ResizeObserverEntry/contentSize}} slot to result of <a href="#calculate-box-size">
269+
4. Set |this|.{{ResizeObserverEntry/contentBoxSize}} slot to result of <a href="#calculate-box-size">
270270
computing size given |target| and specificSize of "content-box"</a>.
271271

272-
5. Set |this|.{{ResizeObserverEntry/contentRect}} to logical |this|.{{ResizeObserverEntry/contentSize}}.
272+
5. Set |this|.{{ResizeObserverEntry/contentRect}} to logical |this|.{{ResizeObserverEntry/contentBoxSize}}.
273273

274274
6. If |target| is not an SVG element do these steps:
275275

@@ -453,7 +453,7 @@ run these steps:
453453

454454
1. Matching size is |entry|.{{ResizeObserverEntry/borderBoxSize}} if |observation|.{{ResizeObservation/observedBox}} is "border-box"
455455

456-
2. Matching size is |entry|.{{ResizeObserverEntry/contentSize}} if |observation|.{{ResizeObservation/observedBox}} is "content-box"
456+
2. Matching size is |entry|.{{ResizeObserverEntry/contentBoxSize}} if |observation|.{{ResizeObservation/observedBox}} is "content-box"
457457

458458
4. Set |targetDepth| to the result of <a>calculate depth for node</a> for |observation|.{{ResizeObservation/target}}.
459459

0 commit comments

Comments
 (0)