Skip to content

Commit f242ebd

Browse files
author
Aleks Totic
committed
Merge branch 'master' of github.com:atotic/csswg-drafts
2 parents ec3f2aa + 5ea5dc4 commit f242ebd

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

resize-observer-1/Overview.bs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,36 @@ interface ResizeObservation {
344344

345345
3. Return false.
346346

347+
: <dfn method lt="computeSize(size)">computeSize(size)</dfn>
348+
::
349+
1. If |target| is not an SVG element
350+
351+
1. If |size| is "bounding-box"
352+
353+
1. Set |computedSize|.inlineSize to target's border-box inline size.
354+
355+
2. Set |computedSize|.blockSize to target's border-box block size.
356+
357+
2. If |size| is "content-box"
358+
359+
1. Set |computedSize|.inlineSize to target's content-box inline size.
360+
361+
2. Set |computedSize|.blockSize to target's content-box block size.
362+
363+
3. If |size| is "scoll-box"
364+
365+
1. Set |computedSize|.inlineSize to target's scrollport inline size.
366+
367+
2. Set |computedSize|.blockSize to target's scrollport block size.
368+
369+
2. If |target| is an SVG element
370+
371+
1. Set |computedSize|.inlineSize to target's bounding box inline size.
372+
373+
2. Set |computedSize|.blockSize to target's bounding box block size.
374+
375+
3. return |computedSize|
376+
347377
</div>
348378

349379
<h2 id="processing-model">Processing Model</h2>

0 commit comments

Comments
 (0)