Bug 1595682: Add 'reftest-wait' class to WPT reftest contain-size-select-002.html, to avoid race condition between dynamic change & test snapshot. r=jgraham
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 12 Nov 2019 20:16:14 +0000
changeset 501648 6e6f8d21a333a212fe779b47a966f1e489ce3d5f
parent 501647 5205263485b69a2a9661a8a3a8572c829053df31
child 501649 03ab38bbbd2e4be75170cdca08fcc7bd519e47c2
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1595682
milestone72.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 1595682: Add 'reftest-wait' class to WPT reftest contain-size-select-002.html, to avoid race condition between dynamic change & test snapshot. r=jgraham Differential Revision: https://phabricator.services.mozilla.com/D52724
testing/web-platform/tests/css/css-contain/contain-size-select-002.html
--- a/testing/web-platform/tests/css/css-contain/contain-size-select-002.html
+++ b/testing/web-platform/tests/css/css-contain/contain-size-select-002.html
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
+<html class="reftest-wait">
 <meta charset="utf-8">
 <title>CSS Containment Test: Size containment on select</title>
 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
 <link rel="match" href="reference/contain-size-select-001-ref.html">
 <meta name=assert content="Check that setting 'contain: size' on a <select> elements causes it to be sized as having no contents.">
 <style>
 select {
@@ -14,10 +15,12 @@ select {
 <p>Test passes if it has the same output than the reference.</p>
 <select id="target">
   <option>AVeryLongOption</option>
   <option>Another Option</option>
 </select>
 <script>
   window.requestAnimationFrame( () => {
     target.style.contain = "size";
+    document.documentElement.removeAttribute("class");
   });
 </script>
+</html>