Skip to content

Commit db19612

Browse files
Merge pull request #3888 from dholbert/master
[resize-observer-1] Fix some observedBox terminology issues
2 parents 340ab9a + fd80903 commit db19612

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resize-observer-1/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ interface ResizeObserverEntry {
261261
2. Set |this|.{{ResizeObserverEntry/target}} slot to |target|.
262262

263263
3. Set |this|.{{ResizeObserverEntry/borderBoxSize}} slot to result of <a href="#calculate-box-size">
264-
computing size given |target| and specificSize of "border-box"</a>.
264+
computing size given |target| and observedBox of "border-box"</a>.
265265

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

269269
5. Set |this|.{{ResizeObserverEntry/contentRect}} to logical |this|.{{ResizeObserverEntry/contentBoxSize}}.
270270

@@ -478,14 +478,14 @@ To <dfn>calculate depth for node</dfn>, given a |node|, run these steps:
478478

479479
2. Return number of nodes in |p|.
480480

481-
<h4 id="calculate-box-size">Calculate box size, given target and specific size</h4>
481+
<h4 id="calculate-box-size">Calculate box size, given target and observed box</h4>
482482

483-
This algorithm computes |target| {{Element}}'s specific size. Type of size is
483+
This algorithm computes |target| {{Element}}'s observed box size. Type of box is
484484
described by {{ResizeObserverBoxOptions}}.
485485
SVG Elements are an exception. SVG size is always its bounding box size, because SVG
486486
elements do not use standard CSS box model.
487487

488-
To <dfn>calculate box size</dfn>, given |target| and |specificSize|, run these steps:
488+
To <dfn>calculate box size</dfn>, given |target| and |observedBox|, run these steps:
489489

490490
1. If |target| is an {{SVGGraphicsElement}}
491491

@@ -495,13 +495,13 @@ To <dfn>calculate box size</dfn>, given |target| and |specificSize|, run these s
495495

496496
2. If |target| is not an {{SVGGraphicsElement}}
497497

498-
1. If |specificSize| is "bounding-box"
498+
1. If |observedBox| is "border-box"
499499

500500
1. Set |computedSize|.inlineSize to target's <a>border area</a> inline length.
501501

502502
2. Set |computedSize|.blockSize to target's <a>border area</a> block length.
503503

504-
2. If |specificSize| is "content-box"
504+
2. If |observedBox| is "content-box"
505505

506506
1. Set |computedSize|.inlineSize to target's <a>content area</a> inline length.
507507

0 commit comments

Comments
 (0)