Bug 1264533 - Correct the universal selector for summary to include all namespaces. r=bz
authorTing-Yu Lin <tlin@mozilla.com>
Thu, 14 Apr 2016 14:27:52 +0800
changeset 331198 9ae44c5b57ac724c8b88bbd19c72464efc9822d6
parent 331197 c6677278a2820bd6b97885b9690426094ab58764
child 331199 70ec09a1709462a12629036ea16b934db182ad96
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1264533
milestone48.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 1264533 - Correct the universal selector for summary to include all namespaces. r=bz MozReview-Commit-ID: 7jtNayMA1CY
layout/reftests/details-summary/details-in-ol-ref.html
layout/reftests/details-summary/details-in-ol.html
layout/style/res/html.css
--- a/layout/reftests/details-summary/details-in-ol-ref.html
+++ b/layout/reftests/details-summary/details-in-ol-ref.html
@@ -13,16 +13,24 @@
               <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>
           <li>First item in details</li>
           <li>Second item in details</li>
         </div>
       </li>
       <li>Second item</li>
     </ol>
--- a/layout/reftests/details-summary/details-in-ol.html
+++ b/layout/reftests/details-summary/details-in-ol.html
@@ -20,16 +20,24 @@
               <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>
--- a/layout/style/res/html.css
+++ b/layout/style/res/html.css
@@ -779,17 +779,17 @@ video > .caption-box {
     list-style: disclosure-closed inside;
   }
 
   details[open] > summary:first-of-type,
   details[open] > summary:-moz-native-anonymous {
     list-style-type: disclosure-open;
   }
 
-  details > summary:first-of-type > * {
+  details > summary:first-of-type > *|* {
     /* Cancel "list-style-position: inside" inherited from summary. */
     list-style-position: initial;
   }
 }
 
 /* emulation of non-standard HTML <marquee> tag */
 marquee {
   inline-size: -moz-available;