Skip to content

Commit d7338fb

Browse files
authored
Merge pull request w3c#5069 from sahirv/patch-1
[resize-observer-1] device-pixel-content-box should be in integral device pixels for SVG w3c#5014
2 parents df29597 + 0f1e224 commit d7338fb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

resize-observer-1/Overview.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,18 @@ elements do not use standard CSS box model.
529529
To <dfn>calculate box size</dfn>, given |target| and |observedBox|, run these steps:
530530

531531
1. If |target| is an {{SVGGraphicsElement}}
532+
533+
1. If |observedBox| is "border-box" or "content-box"
532534

533-
1. Set |computedSize|.inlineSize to |target|'s <a>bounding box</a> inline length.
535+
1. Set |computedSize|.inlineSize to |target|'s <a>bounding box</a> inline length.
534536

535-
2. Set |computedSize|.blockSize to |target|'s <a>bounding box</a> block length.
537+
2. Set |computedSize|.blockSize to |target|'s <a>bounding box</a> block length.
538+
539+
2. 1. If |observedBox| is "device-pixel-content-box"
540+
541+
1. Set |computedSize|.inlineSize to |target|'s <a>bounding box</a> inline length, in integral device pixels.
542+
543+
2. Set |computedSize|.blockSize to |target|'s <a>bounding box</a> block length, in integral device pixels.
536544

537545
2. If |target| is not an {{SVGGraphicsElement}}
538546

0 commit comments

Comments
 (0)