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 290233 e302d8d2af8bea5303ff1797f52668b8874918b5
parent 290232 3bc41b7615d29d92e21f36ca06d9911a03ade569
child 290234 2912de2754baafcc07201c4ecda7c975622e6df5
push id30117
push userryanvm@gmail.com
push dateFri, 25 Mar 2016 15:36:00 +0000
treeherdermozilla-central@b45ee3e065b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1258177
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 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 */