Bug 1571100 [wpt PR 18263] - Update the expected results of the calc() serialization in motion-1, a=testonly
authorBoris <boris.chiou@gmail.com>
Tue, 06 Aug 2019 17:27:35 +0000
changeset 547440 1868bf0db564ee8d928ae60adb4e00d2146de74d
parent 547439 1ce90bb70885ef4ef02716372558cc1e81d14b1f
child 547441 f104939c0e128a6ff8654aad6c9dc5347d9cf135
push id11848
push userffxbld-merge
push dateMon, 26 Aug 2019 19:26:25 +0000
treeherdermozilla-beta@9b31bfdfac10 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1571100, 18263
milestone70.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 1571100 [wpt PR 18263] - Update the expected results of the calc() serialization in motion-1, a=testonly Automatic update from web-platform-tests Update the expected results of calc() serialization in motion-1. (#18263) Per the current discussion of https://github.com/w3c/csswg-drafts/issues/3335, it'd be better to update the serialization of calc() for [motion-1]. At least for now, Firefox matches this behavior. -- wpt-commits: 661ea3afb17775fdbc71620e8a695416aec99130 wpt-pr: 18263
testing/web-platform/tests/css/motion/offset-supports-calc.html
--- a/testing/web-platform/tests/css/motion/offset-supports-calc.html
+++ b/testing/web-platform/tests/css/motion/offset-supports-calc.html
@@ -17,34 +17,34 @@
 </head>
 <body>
 <div id="target"></div>
 <script>
 'use strict';
 
 test(function(){
   target.style = 'offset-position: calc(30px + 20%) calc(-200px + 8em + 100%);';
-  assert_equals(getComputedStyle(target).offsetPosition, 'calc(20% + 30px) calc(100% + -40px)');
+  assert_equals(getComputedStyle(target).offsetPosition, 'calc(20% + 30px) calc(100% - 40px)');
 }, 'offset-position supports calc');
 
 test(function(){
   target.style = 'offset-path: ray(calc(1turn - 100grad) closest-side);';
   assert_equals(getComputedStyle(target).offsetPath, 'ray(270deg closest-side)');
 }, 'offset-path supports calc');
 
 test(function(){
   target.style = 'offset-distance: calc(-100px + 50%);';
-  assert_equals(getComputedStyle(target).offsetDistance, 'calc(50% + -100px)');
+  assert_equals(getComputedStyle(target).offsetDistance, 'calc(50% - 100px)');
 }, 'offset-distance supports calc');
 
 test(function(){
   target.style = 'offset-rotate: auto calc(1turn - 100grad);';
   assert_equals(getComputedStyle(target).offsetRotate, 'auto 270deg');
 }, 'offset-rotate supports calc');
 
 test(function(){
   target.style = 'offset-anchor: calc(30px + 20%) calc(-200px + 8em + 100%);';
-  assert_equals(getComputedStyle(target).offsetAnchor, 'calc(20% + 30px) calc(100% + -40px)');
+  assert_equals(getComputedStyle(target).offsetAnchor, 'calc(20% + 30px) calc(100% - 40px)');
 }, 'offset-anchor supports calc');
 
 </script>
 </body>
 </html>