mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles
Arlo Breault b1d39a5425 Media border option applies to the media element, not the wrapper
Reported in,
https://it.wikipedia.org/w/index.php?title=Wikipedia%3ABar%2FDiscussioni%2FAggiornamento_del_parser_per_le_immagini%3A_vogliamo_testarlo%3F&type=revision&diff=130240855&oldid=130214646

The default styling in core looks like,

.mw-image-border {
	> a:first-child,
	> span:first-child {
		> *:first-child:not( .mw-broken-media ) {
			border: @border-thumbborder-screen;
		}
	}
}

The simplification here recognizes that the border option doesn't apply
to thumbs, so descendent selectors can be dispensed with, there's no
nesting in figcaptions to worry about.  That's important because
lazy-loading adds a noscript before the img tag, which would make the
selectors with first-child not apply anyways.

An img tag is used instead of the universal selector.  That seems like a
safe assumption for now and can be revisited with T314097 / T318433

Bug: T318300
Change-Id: I25f45ee794300d2ba2a38a0ab6e3741a6b1a18f2
2022-11-02 12:34:00 -04:00
..
content Media border option applies to the media element, not the wrapper 2022-11-02 12:34:00 -04:00
print Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
anonTalkMessage.less Do not use the SkinMinervaReplaceNotificationsBadge hook to add Echo 2022-05-27 18:14:47 +00:00
common.less Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
footer.less Change footer logo from a heading element to a div 2021-09-27 15:04:55 -06:00
header.less Search icon should be part of search form for grade C browsers 2022-02-22 08:40:55 -08:00
LastModifiedBar.less Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
pageactions.less Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
reset.less Dev: Prep for storybook 2019-08-21 12:20:26 -07:00
skin.less Refactor Minerva header and overlay headers to use flexbox 2021-11-04 15:50:00 -05:00
ui.less Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
userMenu.less Remove user navigation min width and width 2022-03-03 09:52:56 -08:00