Page MenuHomePhabricator

Print media: Remove link underlining on images
Closed, ResolvedPublic

Description

Seems that the print/PDF styling didn't consider linked inline images, and draws a nice underline across the image

For example: https://en.wikipedia.org/wiki/Wing_configuration


Screenshot 2019-06-05 at 15.40.10.png (1,000×338 px, 70 KB)

Developer notes

Problematic rule is:

@media print
a {
    border-bottom: 1px solid #aaa;
}

An a.image rule should override it.

Details

Event Timeline

Jdlrobson renamed this task from Inline images get link underlining to Print media: Remove link underlining on images.Jul 2 2019, 4:58 PM
Jdlrobson added a project: patch-welcome.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task from Incoming to Triaged but Future on the Web-Team-Backlog-Archived board.
Jdlrobson lowered the priority of this task from Medium to Low.Jul 31 2019, 7:00 PM

Change 543132 had a related patch set uploaded (by TheDJ; owner: TheDJ):
[mediawiki/skins/Vector@master] Print: Remove underline for image links

https://gerrit.wikimedia.org/r/543132

PS. i'm pretty sure the usage of border-bottom over text-decoration: underline is intentional here, but it's not documented in the CSS sourcecode.....

Change 543132 merged by jenkins-bot:
[mediawiki/skins/Vector@master] Print: Remove underline for image links

https://gerrit.wikimedia.org/r/543132

TheDJ claimed this task.