Import wpt@00d0131bfcd2f99e6f8e4a9696c797f7500c4c2d

Using wpt-import in Chromium e24b7ee2d3a4dde81ef2fdf9d6d78e1c80958c16.
With Chromium commits locally applied on WPT:
14c111075b "Implement `Sec-CH-Lang`"
af3b056c72 "[WPT] [wasm] Add JS-API tests for wasm threads"
df760ab0b2 "Don't skip past auto-height flexboxes in quirks mode."


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

NOAUTOREVERT=true
TBR=kyleju

No-Export: true
Change-Id: Ie8af06c3f3c5321cfab6f20ebd65da7df4448c1f
Reviewed-on: https://chromium-review.googlesource.com/c/1468595
Reviewed-by: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#631515}
diff --git a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_5.json b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_5.json
index 0a00b25..a26293a 100644
--- a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_5.json
+++ b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_5.json
@@ -202995,6 +202995,12 @@
      {}
     ]
    ],
+   "animation-worklet/animate-multiple-effects-on-different-targets-via-main-thread.https.html": [
+    [
+     "/animation-worklet/animate-multiple-effects-on-different-targets-via-main-thread.https.html",
+     {}
+    ]
+   ],
    "animation-worklet/animation-worklet-inside-iframe.https.html": [
     [
      "/animation-worklet/animation-worklet-inside-iframe.https.html",
@@ -203017,6 +203023,12 @@
      {}
     ]
    ],
+   "animation-worklet/multiple-effects-on-same-target-driven-by-individual-local-time.https.html": [
+    [
+     "/animation-worklet/multiple-effects-on-same-target-driven-by-individual-local-time.https.html",
+     {}
+    ]
+   ],
    "animation-worklet/playback-rate.https.html": [
     [
      "/animation-worklet/playback-rate.https.html",
@@ -219793,6 +219805,12 @@
      {}
     ]
    ],
+   "css/css-values/calc-angle-values.html": [
+    [
+     "/css/css-values/calc-angle-values.html",
+     {}
+    ]
+   ],
    "css/css-values/calc-in-color-001.html": [
     [
      "/css/css-values/calc-in-color-001.html",
@@ -219835,6 +219853,12 @@
      {}
     ]
    ],
+   "css/css-values/calc-time-values.html": [
+    [
+     "/css/css-values/calc-time-values.html",
+     {}
+    ]
+   ],
    "css/css-values/calc-unit-analysis.html": [
     [
      "/css/css-values/calc-unit-analysis.html",
@@ -308064,6 +308088,10 @@
    "c6918965843779e02522af1abf48acda8d0a128b",
    "support"
   ],
+  "animation-worklet/animate-multiple-effects-on-different-targets-via-main-thread.https.html": [
+   "d22ed4cd251a20de43c4425e54abdc984b41976a",
+   "testharness"
+  ],
   "animation-worklet/animation-worklet-inside-iframe.https.html": [
    "b02186309dc2cf8df05559ef9fb9bcacdf535112",
    "testharness"
@@ -308088,6 +308116,10 @@
    "f73208c2a3c700d03ea1d39322a3e061b5caa5f7",
    "support"
   ],
+  "animation-worklet/multiple-effects-on-same-target-driven-by-individual-local-time.https.html": [
+   "edf8488deda79eeb8eec071bf24305543d2f6627",
+   "testharness"
+  ],
   "animation-worklet/playback-rate.https.html": [
    "9c975814f1ed09b3e78493df177c3c0eddf74cdd",
    "testharness"
@@ -375392,6 +375424,10 @@
    "ec96924a6805bc6157a3845c12b630aed9e52fa8",
    "reftest"
   ],
+  "css/css-values/calc-angle-values.html": [
+   "e41beaff211b87dd74dd6fee6f05d894ba03988d",
+   "testharness"
+  ],
   "css/css-values/calc-ch-ex-lang-ref.html": [
    "e0ac1ead1e5247c7c1d5fb2dffdf9ee0b08dd497",
    "support"
@@ -375480,6 +375516,10 @@
    "f92de7338d3f05a6623f3aa882e21a724f1344e5",
    "testharness"
   ],
+  "css/css-values/calc-time-values.html": [
+   "60bcdcba594d8300091120100dfe8d878f8ff708",
+   "testharness"
+  ],
   "css/css-values/calc-unit-analysis.html": [
    "7508a3924162b87454a180f75f17c572192c3776",
    "testharness"
diff --git a/third_party/blink/web_tests/external/wpt/css/css-values/calc-angle-values.html b/third_party/blink/web_tests/external/wpt/css/css-values/calc-angle-values.html
new file mode 100644
index 0000000..e41beaf
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/css-values/calc-angle-values.html
@@ -0,0 +1,295 @@
+<!DOCTYPE html>
+
+  <meta charset="UTF-8">
+
+  <title>CSS Values and Units Test: calc() function with angle values</title>
+
+  <!--
+
+  Original test is:
+
+  https://chromium.googlesource.com/chromium/src/+/c825d655f6aaf73484f9d56e9012793f5b9668cc/third_party/WebKit/LayoutTests/css3/calc/calc-with-time-angle-and-frequency-values.html
+
+  Issue 917718: [css-values] calc-with-time-angle-and-frequency-values
+  test is highly unreliable, transition-delay testing causes side effects
+  https://bugs.chromium.org/p/chromium/issues/detail?id=917718
+
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+  <link rel="help" href="https://www.w3.org/TR/css-values-3/#calc-computed-value">
+  <link rel="help" href="https://www.w3.org/TR/css-values-3/#angles">
+
+  <meta content="This test checks that additions, substractions, multiplications and divisions in calc() function when applied to angle units." name="assert">
+
+  <script src="/resources/testharness.js"></script>
+
+  <script src="/resources/testharnessreport.js"></script>
+
+  <div id="log"></div>
+
+  <div id="target"></div>
+
+  <script>
+  function startTesting()
+  {
+
+    var targetElement = document.getElementById("target");
+
+    function compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)
+    {
+
+    test(function()
+      {
+
+      targetElement.style.setProperty(property_name, "initial");
+
+      /*
+      Since we are running many consecutive tests on the same
+      element, then it is necessary to reset its property
+      to an initial value before actually re-testing it.
+      */
+
+      targetElement.style.setProperty(property_name, calcValue);
+
+      var computedCalcValue = getComputedStyle(targetElement)[property_name];
+
+      /*
+      We first strip out the word "matrix" with the
+      opening parenthesis "(" and the closing
+      parenthesis ")"
+      */
+
+      computedCalcValue = computedCalcValue.replace("matrix(", "").replace(")", "");
+
+      /*
+      Then, we split the string at each comma ","
+      and store the resulting 6 sub-strings into
+      tableSplitComputedCalcValue
+      */
+
+      var tableSplitCalcValue = computedCalcValue.split(",");
+
+      /*
+      We convert the 6 sub-strings into numerical floating values
+      so that mathematical operations (substraction, absolute value,
+      comparison) can be performed.
+      */
+
+      tableSplitCalcValue[0] = parseFloat(tableSplitCalcValue[0]);
+      tableSplitCalcValue[1] = parseFloat(tableSplitCalcValue[1]);
+      tableSplitCalcValue[2] = parseFloat(tableSplitCalcValue[2]);
+      tableSplitCalcValue[3] = parseFloat(tableSplitCalcValue[3]);
+      tableSplitCalcValue[4] = parseFloat(tableSplitCalcValue[4]);
+      tableSplitCalcValue[5] = parseFloat(tableSplitCalcValue[5]);
+
+      /*
+      Now, we execute the same steps with the expectedValue
+      */
+
+      targetElement.style.setProperty(property_name, expectedValue);
+
+      var computedExpectedValue = getComputedStyle(targetElement)[property_name];
+
+      /*
+      We first strip out the word "matrix" with the
+      opening parenthesis "(" and the closing
+      parenthesis ")"
+      */
+
+      computedExpectedValue = computedExpectedValue.replace("matrix(", "").replace(")", "");
+
+      /*
+      Then, we split the string at each comma ","
+      and store the resulting 6 sub-strings into
+      tableSplitComputedCalcValue
+      */
+
+      var tableSplitExpectedValue = computedExpectedValue.split(",");
+
+      /*
+      We convert the 6 sub-strings into numerical floating values
+      so that mathematical operations (substraction, absolute value,
+      comparison) can be performed.
+      */
+
+      tableSplitExpectedValue[0] = parseFloat(tableSplitExpectedValue[0]);
+      tableSplitExpectedValue[1] = parseFloat(tableSplitExpectedValue[1]);
+      tableSplitExpectedValue[2] = parseFloat(tableSplitExpectedValue[2]);
+      tableSplitExpectedValue[3] = parseFloat(tableSplitExpectedValue[3]);
+      tableSplitExpectedValue[4] = parseFloat(tableSplitExpectedValue[4]);
+      tableSplitExpectedValue[5] = parseFloat(tableSplitExpectedValue[5]);
+
+      assert_array_approx_equals(tableSplitCalcValue, tableSplitExpectedValue, epsilon);
+
+      /*
+      In this mega-test of 27 sub-tests, we intentionally
+      set the tolerance precision (epsilon) to a rather big
+      value (0.0001 === 100 millionths). The reason for this
+      is we want to verify if browsers and CSS-capable
+      applications do the right calculations. We do not want
+      to penalize browsers and CSS-capable applications that
+      have modest precision (not capable of a 1 millionth
+      level precision).
+     */
+
+    } , description);
+
+  }
+
+    /*
+
+    deg
+       Degrees. There are 360 degrees in a full circle.
+
+    grad
+       Gradians, also known as "gons" or "grades". There are 400 gradians in a full circle.
+
+    rad
+       Radians. There are 2π radians in a full circle.
+
+    1rad == 57.295779513°
+    https://www.rapidtables.com/convert/number/radians-to-degrees.html
+
+    π == Math.PI == 3.141592653589793
+
+    turn
+       Turns. There is 1 turn in a full circle.
+
+   */
+
+
+   /* Addition of angle units */
+
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+    compareValueCloseTo("transform", "rotate(calc(45deg + 45deg))", 0.0001, "rotate(90deg)", "addition of 2 angle units: deg plus deg");
+
+    compareValueCloseTo("transform", "rotate(calc(45deg + 1rad))", 0.0001, "rotate(102.29578deg)", "addition of 2 angle units: deg plus rad");
+    /*
+    1 radian == 57.295779513 degrees
+    The original test was using the slightly imprecise rotate(102.3deg)
+    */
+
+    compareValueCloseTo("transform", "rotate(calc(20deg + 200grad))", 0.0001, "rotate(200deg)", "addition of 2 angle units: deg plus grad");
+
+    compareValueCloseTo("transform", "rotate(calc(200deg + 0.5turn))", 0.0001, "rotate(380deg)", "addition of 2 angle units: deg plus turn");
+
+    compareValueCloseTo("transform", "rotate(calc(45rad + 45rad))", 0.0001, "rotate(90rad)", "addition of 2 angle units: rad plus rad");
+
+    compareValueCloseTo("transform", "rotate(calc(1rad + 40grad))", 0.0001, "rotate(93.29578deg)", "addition of 2 angle units: rad plus grad");
+
+    /*
+    1 radian == 57.295779513 degrees; 40 gradians is 36 degrees.
+    */
+
+    compareValueCloseTo("transform", "rotate(calc(1rad + 0.5turn))", 0.0001, "rotate(237.29578deg)", "addition of 2 angle units: rad plus turn");
+
+    compareValueCloseTo("transform", "rotate(calc(45grad + 45grad))", 0.0001, "rotate(90grad)", "addition of 2 angle units: grad plus grad");
+
+    compareValueCloseTo("transform", "rotate(calc(10grad + 0.5turn))", 0.0001, "rotate(189deg)", "addition of 2 angle units: grad plus turn");
+
+    /*
+    10 gradians is 9 degrees.
+    */
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+
+   /* Substraction of angle unit */
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+    compareValueCloseTo("transform", "rotate(calc(45deg - 15deg))", 0.0001, "rotate(30deg)", "substraction of angle unit: deg minus deg");
+
+    compareValueCloseTo("transform", "rotate(calc(90deg - 1rad))", 0.0001, "rotate(32.70422deg)", "substraction of angle unit: deg minus rad");
+
+    /*
+    1 radian == 57.295779513 degrees
+    */
+
+    compareValueCloseTo("transform", "rotate(calc(38deg - 20grad))", 0.0001, "rotate(20deg)", "substraction of angle unit: deg minus grad");
+
+    compareValueCloseTo("transform", "rotate(calc(360deg - 0.5turn))", 0.0001, "rotate(180deg)", "substraction of angle unit: deg minus turn");
+
+    compareValueCloseTo("transform", "rotate(calc(45rad - 15rad))", 0.0001, "rotate(30rad)", "substraction of angle unit: rad minus rad");
+
+    compareValueCloseTo("transform", "rotate(calc(30rad - 10grad))", 0.0001, "rotate(1709.87339deg)", "substraction of angle unit: rad minus grad");
+
+    /*
+    30 radians is 1718.8733854 degrees ; 10 gradians is 9 degrees.
+    */
+
+    compareValueCloseTo("transform", "rotate(calc(4rad - 0.1turn))", 0.0001, "rotate(193.18312deg)", "substraction of angle unit: rad minus turn");
+
+    /*
+    4 radians is 229.183118052 degrees ; 0.1 turn is 36 degrees.
+    */
+
+    compareValueCloseTo("transform", "rotate(calc(45grad - 15grad))", 0.0001, "rotate(30grad)", "substraction of angle unit: grad minus grad");
+
+    compareValueCloseTo("transform", "rotate(calc(100grad - 0.25turn))", 0.0001, "rotate(0deg)", "substraction of angle unit: grad minus turn");
+
+
+   /* Multiplication of angle unit */
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+    compareValueCloseTo("transform", "rotate(calc(45deg * 2))", 0.0001, "rotate(90deg)", "multiplication of angle unit: deg multiplied by int");
+
+    compareValueCloseTo("transform", "rotate(calc(2 * 45rad))", 0.0001, "rotate(90rad)", "multiplication of angle unit: int multiplied by rad");
+
+    compareValueCloseTo("transform", "rotate(calc(45grad * 2))", 0.0001, "rotate(90grad)", "multiplication of angle unit: grad multiplied by int");
+
+    compareValueCloseTo("transform", "rotate(calc(2 * 45turn))", 0.0001, "rotate(90turn)", "multiplication of angle unit: int multiplied by turn");
+
+
+   /* Division of angle unit */
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+    compareValueCloseTo("transform", "rotate(calc(90deg / 2))", 0.0001, "rotate(45deg)", "division of angle unit: deg divided by int");
+
+    compareValueCloseTo("transform", "rotate(calc(90rad / 2))", 0.0001, "rotate(45rad)", "division of angle unit: rad divided by int");
+
+    compareValueCloseTo("transform", "rotate(calc(90grad / 2))", 0.0001, "rotate(45grad)", "division of angle unit: grad divided by int");
+
+    compareValueCloseTo("transform", "rotate(calc(90turn / 2))", 0.0001, "rotate(45turn)", "division of angle unit: turn divided by int");
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+    /*
+
+    deg
+       Degrees. There are 360 degrees in a full circle.
+
+    grad
+       Gradians, also known as "gons" or "grades". There are 400 gradians in a full circle.
+
+    rad
+       Radians. There are 2π radians in a full circle.
+
+    1rad == 57.295779513°
+    https://www.rapidtables.com/convert/number/radians-to-degrees.html
+
+    π == Math.PI == 3.141592653589793
+
+    turn
+       Turns. There is 1 turn in a full circle.
+
+   */
+
+
+
+  /* Testing conversion of angle unit  */
+
+ /* compareValueCloseTo(property_name, calcValue, epsilon, expectedValue, description)  */
+
+    compareValueCloseTo("transform", "rotate(calc(50grad)", 0.0001, "rotate(45deg)", "conversion of angle unit: grad into deg");
+
+  }
+
+  startTesting();
+
+  </script>
diff --git a/third_party/blink/web_tests/external/wpt/css/css-values/calc-time-values.html b/third_party/blink/web_tests/external/wpt/css/css-values/calc-time-values.html
new file mode 100644
index 0000000..60bcdcb
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/css-values/calc-time-values.html
@@ -0,0 +1,104 @@
+<!DOCTYPE html>
+
+  <meta charset="UTF-8">
+
+  <title>CSS Values and Units Test: calc() function with time values</title>
+
+  <!--
+
+  Original test is:
+
+  https://chromium.googlesource.com/chromium/src/+/c825d655f6aaf73484f9d56e9012793f5b9668cc/third_party/WebKit/LayoutTests/css3/calc/calc-with-time-angle-and-frequency-values.html
+
+  Issue 917718: [css-values] calc-with-time-angle-and-frequency-values
+  test is highly unreliable, transition-delay testing causes side effects
+  https://bugs.chromium.org/p/chromium/issues/detail?id=917718
+
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+  <link rel="help" href="https://www.w3.org/TR/css-values-3/#calc-computed-value">
+  <link rel="help" href="https://www.w3.org/TR/css-values-3/#time">
+
+  <meta content="This test checks that additions, substractions, multiplications and divisions in calc() function when applied to time units." name="assert">
+
+  <script src="/resources/testharness.js"></script>
+
+  <script src="/resources/testharnessreport.js"></script>
+
+  <div id="log"></div>
+
+  <div id="target"></div>
+
+  <script>
+  function startTesting()
+  {
+
+    var targetElement = document.getElementById("target");
+
+    function compareValue(property_name, calcValue, expectedValue, description)
+    {
+
+    test(function()
+      {
+
+      targetElement.style.setProperty(property_name, "inherit");
+
+      /*
+      Since we are running many consecutive tests on the same
+      element, then it is necessary to 'reset' its property
+      to an initial value before actually re-testing it.
+      */
+
+      targetElement.style.setProperty(property_name, calcValue);
+
+      var computedCalcValue = getComputedStyle(targetElement)[property_name];
+
+      targetElement.style.setProperty(property_name, expectedValue);
+
+      var computedExpectedValue = getComputedStyle(targetElement)[property_name];
+
+      assert_equals(computedCalcValue, computedExpectedValue);
+
+      }, description);
+
+    }
+
+
+    /* Testing time units  */
+
+ /* compareValue(property_name, calcValue, expectedValue, description)  */
+
+    compareValue("transition-delay", "calc(4s + 1s)", "5s", "addition of 2 time units: s plus s");
+
+    compareValue("transition-delay", "calc(4s + 1ms)", "4.001s", "addition of 2 time units: s plus ms");
+
+    compareValue("transition-delay", "calc(4ms + 1ms)", "0.005s", "addition of 2 time units: ms plus ms");
+
+    compareValue("transition-delay", "calc(4s - 1s)", "3s", "substraction of time unit: s minus s");
+
+    compareValue("transition-delay", "calc(4s - 1ms)", "3.999s", "substraction of time unit: s minus ms");
+
+    compareValue("transition-delay", "calc(4 * 1s)", "4s", "multiplication of integer with a time unit: int multiplied by s");
+
+    compareValue("transition-delay", "calc(4 * 1ms)", "0.004s", "multiplication of integer with a time unit: int multiplied by ms");
+
+    compareValue("transition-delay", "calc(4s / 2)", "2s", "division of time unit with integer: s divided by int");
+
+    compareValue("transition-delay", "calc(4ms / 2)", "0.002s", "division of time unit with integer: ms divided by int");
+
+ /* compareValue(property_name, calcValue, expectedValue, description)  */
+
+
+
+  /* Testing conversion of time unit  */
+
+ /* compareValue(property_name, calcValue, expectedValue, description)  */
+
+    compareValue("transition-delay", "calc(4000ms)", "4s", "conversion of time unit: ms into s");
+
+  }
+
+  startTesting();
+
+  </script>