Bug 1258177 - Make the list-item markers non-selectable. r=bz
authorTing-Yu Lin <tlin@mozilla.com>
Sun, 20 Mar 2016 17:26:02 +0800
changeset 290292 e302d8d2af8bea5303ff1797f52668b8874918b5
parent 290291 3bc41b7615d29d92e21f36ca06d9911a03ade569
child 290293 2912de2754baafcc07201c4ecda7c975622e6df5
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1258177
milestone48.0a1
Bug 1258177 - Make the list-item markers non-selectable. r=bz MozReview-Commit-ID: GkkAknIA31t
layout/style/res/html.css
layout/style/res/ua.css
--- a/layout/style/res/html.css
+++ b/layout/style/res/html.css
@@ -769,18 +769,16 @@ video > .caption-box {
   position: relative;
   overflow: hidden;
 }
 
 /* details & summary */
 
 details > summary::-moz-list-bullet {
   list-style-type: disclosure-closed;
-  /* Prevent elements in summary being selected when clicking on the triangle. */
-  -moz-user-select: none;
 }
 
 details[open] > summary::-moz-list-bullet {
   list-style-type: disclosure-open;
 }
 
 /* emulation of non-standard HTML <marquee> tag */
 marquee {
--- a/layout/style/res/ua.css
+++ b/layout/style/res/ua.css
@@ -96,16 +96,18 @@
 }
 
 /* Lists */
 
 *|*::-moz-list-bullet, *|*::-moz-list-number {
   display: inline;
   vertical-align: baseline;
   font-variant-numeric: tabular-nums;
+  /* Prevent the element from being selected when clicking on the marker. */
+  -moz-user-select: none;
 }
 
 /* SVG documents don't always load this file but they do have links.
  * If you change the link rules, consider carefully whether to make
  * the same changes to svg.css.
  */
 
 /* Links */