tor-browser

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

object-image-display-none-loading-for-print.html (895B)


      1 <!DOCTYPE html>
      2 <title>Test loading of 'display: none' image for print</title>
      3 
      4 <link rel="help" href="https://crbug.com/41477900">
      5 <link rel="help" href="https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element">
      6 <!--
      7  Based on step 2 of the spec algorithm:
      8  "... if the element is not being rendered,
      9  then jump to the step below labeled fallback."
     10 -->
     11 
     12 <link rel="match" href="object-image-display-none-loading-for-print-ref.html">
     13 
     14 <style>
     15  #target {
     16    display: none;
     17  }
     18 </style>
     19 
     20 <script>
     21  function obj_onload() {
     22    const p = document.createElement('p');
     23    p.innerHTML = `FAIL: Object image was loaded.`;
     24    p.style.color = 'red';
     25    document.body.appendChild(p);
     26  }
     27 </script>
     28 
     29 <p>
     30  Object image not displayed should not load.
     31 </p>
     32 
     33 <div>
     34 <object
     35  data="/images/red.png"
     36  id="target"
     37  onload="obj_onload();"
     38  type="image/png"
     39 ></object>
     40 </div>