Bug 1604484 [wpt PR 20812] - Use LayoutUnit for SVGImage's "container size", a=testonly
authorFredrik Söderquist <fs@opera.com>
Fri, 20 Dec 2019 11:34:34 +0000
changeset 508190 85ce5b369e8e8c8b4c24474d0fb280705572a5fa
parent 508189 124533e992c5ed01b2c08b93ed67bae9e4661ccb
child 508191 e93f402b06e272ac255afe46b6b5a48f9a3818f7
push id36943
push useropoprus@mozilla.com
push dateMon, 23 Dec 2019 16:27:52 +0000
treeherdermozilla-central@6d2e33d632e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1604484, 20812, 812239, 1969672, 725556
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1604484 [wpt PR 20812] - Use LayoutUnit for SVGImage's "container size", a=testonly Automatic update from web-platform-tests Use LayoutUnit for SVGImage's "container size" Impedance-wise this is slightly better since we generally start out as float, and thus we won't lose as much precision. This means that viewBox transform computations and similar will be more accurate. Make the (recently added) test wpt/svg/embedded/image-fractional-width-vertical-fidelity.svg slightly more conservative. Bug: 812239 Change-Id: I231f596f854ef37ae4e0d2dc3b705e546ee187d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1969672 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#725556} -- wpt-commits: 6d8d8ba820f382566dcb14fc0c5af60eb2bf954b wpt-pr: 20812
testing/web-platform/tests/svg/embedded/image-fractional-width-vertical-fidelity.svg
--- a/testing/web-platform/tests/svg/embedded/image-fractional-width-vertical-fidelity.svg
+++ b/testing/web-platform/tests/svg/embedded/image-fractional-width-vertical-fidelity.svg
@@ -1,14 +1,15 @@
 <svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml">
   <title>Vertical fidelity of &#x3c;image&#x3e; element with fractional width</title>
   <h:link rel="help" href="https://svgwg.org/svg2-draft/embedded.html#ImageElement"/>
   <h:link rel="match" href="reference/green-rect-100x100.svg"/>
-  <rect width="100" height="100" fill="red"/>
+  <rect x="95" width="5" height="100" fill="green"/>
+  <rect width="95" height="100" fill="red"/>
   <g clip-path="url(#c)">
     <clipPath id="c">
-      <rect width="100" height="100"/>
+      <rect width="95" height="100"/>
     </clipPath>
     <image href="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMinYMin'%3e
                  %3crect width='100' height='100' fill='green'/%3e%3c/svg%3e"
                  width="101.2" height="100"/>
   </g>
 </svg>