tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

will-change-inherit-dynamic.html (1026B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: will-change: style changes are properly propagated to children if needed</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      5 <link rel="author" title="Mozilla" href="https://mozilla.org">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1499991">
      7 <link rel="help" href="https://drafts.csswg.org/css-will-change/#will-change">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <div id="outer">
     11  <div id="inner" style="will-change: inherit"></div>
     12 </div>
     13 <script>
     14  test(function() {
     15    assert_equals(getComputedStyle(outer).willChange, "auto");
     16    assert_equals(getComputedStyle(inner).willChange, "auto");
     17    outer.style.willChange = "color";
     18    assert_equals(getComputedStyle(outer).willChange, "color");
     19    assert_equals(getComputedStyle(inner).willChange, "color");
     20  }, "will-change change is properly propagated to children if needed");
     21 </script>