Bug 1264533 - Correct the universal selector for summary to include all namespaces. draft
authorTing-Yu Lin <tlin@mozilla.com>
Thu, 14 Apr 2016 14:27:52 +0800
changeset 350706 96e70c08090197cbf14bfb087645921d422b5c06
parent 350581 8630367f5e3f750e23cd04f309a1b279ff07e4a2
child 518384 c618894e98205de49058a7af8dc715a36b7ca912
push id15395
push usertlin@mozilla.com
push dateThu, 14 Apr 2016 06:34:04 +0000
bugs1264533
milestone48.0a1
Bug 1264533 - Correct the universal selector for summary to include all namespaces. 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;