widget/reftests/progressbar-fallback-default-style-ref.html
author Milan Sreckovic <milan@mozilla.com>
Fri, 14 Jul 2017 14:13:54 -0400
changeset 369016 b08d78d02da1e1c78cb6935f4e570798cb088ddd
parent 360126 b1daab599fecafbadad7377f0ded446dd6ad7559
child 394742 d483a0d9ceb14009e2145eee6208962e1ef73db2
permissions -rw-r--r--
Bug 1381074: Have downloadable blocklist recognize advanced layers. r=dvander MozReview-Commit-ID: GlzDUQoAH6P

<!DOCTYPE html>
<html>
  <style>
    div.progress-element {
      /**
       * The purpose of this test is to not show the native style.
       * -moz-appearance: progressbar;
       */
      display: inline-block;
      height: 1em;
      width: 10em;
      vertical-align: -0.2em;

      /* Default style in case of there is -moz-appearance: none; */
      border: 2px solid;
      -moz-border-top-colors: ThreeDShadow #e6e6e6;
      -moz-border-right-colors: ThreeDHighlight #e6e6e6;
      -moz-border-bottom-colors: ThreeDHighlight #e6e6e6;
      -moz-border-left-colors: ThreeDShadow #e6e6e6;
      background-color: #e6e6e6;
    }

    div.progress-bar {
      /**
       * The purpose of this test is to not show the native style.
       * -moz-appearance: progresschunk;
       */

      height: 100%;
      width: 100%;

      box-sizing: border-box;

      /* Default style in case of there is -moz-appearance: none; */
      background-color: #0064b4;
    }

    div.progress-element { padding: 5px; }
    body > div:nth-child(1)  { -moz-appearance: none; }
    body > div:nth-child(2) > .progress-bar { -moz-appearance: none; }
    body > div:nth-child(3)  { background-color: red; }
    body > div:nth-child(4) > .progress-bar { background-color: red; }
    body > div:nth-child(5)  { border: 2px solid red; }
    body > div:nth-child(6) > .progress-bar { border: 5px solid red; }
  </style>
  <body>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
  </body>
</html>