Last modified: 2014-08-07 12:23:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71157, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69157 - Images: image thumbnail without caption lacks a bottom border
Images: image thumbnail without caption lacks a bottom border
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-05 21:19 UTC by spage
Modified: 2014-08-07 12:23 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-08-05 21:19:48 UTC
Visit http://parsoid.wmflabs.org/_wikitext/
Enter
  [[File:Rainbow3580Colours.png|thumb]]
and submit. Then zoom in.

Result: the "frame" around the thumbnail image is missing its bottom edge.

This is intentional, resources/src/mediawiki.skinning/content.parsoid.less has
  figure[typeof~='mw:Image/Thumb'] ...
       border-bottom: 0; // No border to caption
and if you add a caption to the image, e.g.
  [[File:Rainbow3580Colours.png|thumb|Hello]]
then the HTML has a nested <figcaption> and this is styled with matching borders its right, left, and bottom to complete the frame.

It seems it would be better to put a border around the entire <figure> and when there's a caption place a borderless figcaption within it. CSS is hard :)

Note that in regular wikitext the bottom edge of a thumbnail looks different because it always has a thumbcaption div containing a magnify icon.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links