mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Make native selection over reference nodes visible
Bug: T241880 Change-Id: Ie712d4edc2ef49dd3b1f4ca186b2e2d539ab8659
This commit is contained in:
parent
166f8ef565
commit
52646d1a7c
|
@ -15,11 +15,18 @@
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Use zero font size to hide the default rendering, rather than display:none, to
|
||||
* work around T123608 (cursoring bug in Chromium). See that bug for a discussion
|
||||
* of the effect this has on bidi text. */
|
||||
/* Use transparency to hide the default rendering, rather than display:none.
|
||||
* This allows the browser to paint the native selection background over it.
|
||||
*
|
||||
* The real content is displayed using the :after pseudo-element, but browsers
|
||||
* do not allow them to be selected, which makes for a poor editing experience.
|
||||
*
|
||||
* Previously this was also required to work around a cursoring bug in Chromium
|
||||
* (T123608), but as of 2020 that bug seems to be fixed in the browser.
|
||||
*/
|
||||
.ve-ce-mwReferenceNode span.mw-reflink-text {
|
||||
font-size: 0;
|
||||
color: transparent;
|
||||
position: absolute;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue