layout/reftests/details-summary/details-in-ol.html
author Ting-Yu Lin <tlin@mozilla.com>
Thu, 14 Apr 2016 14:27:52 +0800
changeset 331198 9ae44c5b57ac724c8b88bbd19c72464efc9822d6
parent 330870 c9894253461b30b2d6b7ca05d4c44b148e51c6ef
child 524725 b5c4a873d52ccbc8e7d063e608421ad80a3365e5
permissions -rw-r--r--
Bug 1264533 - Correct the universal selector for summary to include all namespaces. r=bz MozReview-Commit-ID: 7jtNayMA1CY

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->

<html>
  <style>
  summary::-moz-list-bullet {
    /* Hide the triangle for comparing with div in reftest. */
    list-style-type: none;
  }
  </style>
  <body>
    <!-- Test <ol> numbering is not affected by <details>. -->
    <ol>
      <li>First item
        <details open>
          <summary>Summary
            <ul>
              <li>First unordered item in summary</li>
              <li>Second unordered item in summary</li>
            </ul>
            <div>
              <ol>
                <li>First item in summary</li>
                <li>Second item in summary</li>
              </ol>
            </div>
            <svg>
              <foreignObject width="300" height="300">
                <ol>
                  <li>First item in foreignObject</li>
                  <li>Second item in foreignObject</li>
                </ol>
              </foreignObject>
            </svg>
          </summary>
          <p>This is the details.</p>
          <!-- Although html spec does not allow <li> inside <details>, we
               deliberately omit the <ol> to test the renumbering isn't affected
               by the summary. -->
          <li>First item in details</li>
          <li>Second item in details</li>
        </details>
      </li>
      <li>Second item</li>
    </ol>
  </body>
</html>