Fix heading selecting over-select
authorgolopot <golopot@gmail.com>
Mon, 18 Dec 2017 07:01:30 +0000 (15:01 +0800)
committergolopot <golopot@gmail.com>
Mon, 18 Dec 2017 07:35:57 +0000 (15:35 +0800)
In Chrome, multiple clicking selecting a heading cause a bug that the
first character in the next paragrpah is also selected.

Change-Id: Ib52662c39720dcd36ea0b60c9884530895dd9e6a

resources/src/mediawiki.legacy/shared.css

index 9f48204..19b51eb 100644 (file)
@@ -760,11 +760,6 @@ table.floatleft {
        vertical-align: baseline;
        /* Reset line-height; headings tend to have it set to larger values */
        line-height: 1em;
-       /* As .mw-editsection is a <span> (inline element), it is treated as part */
-       /* of the heading content when selecting text by multiple clicks and thus */
-       /* selected together with heading content, despite the user-select: none; */
-       /* rule set above. This enforces non-selection without changing the look. */
-       display: inline-block;
 }
 
 /* Correct directionality when page dir is different from site/user dir */