Bug 66287: Proper caption styling
authorGabriel Wicke <gwicke@wikimedia.org>
Sat, 7 Jun 2014 05:10:49 +0000 (22:10 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Sat, 7 Jun 2014 05:10:49 +0000 (22:10 -0700)
commit7086dadc1874da59d31c742d49c8ead2e5328f7c
tree64113c0f2c39352fb941f11d93b4444d86ac3090
parent24e07fe434a58bb23c25381a2f4aa8419b4bbc8b
Bug 66287: Proper caption styling

* Make sure borders render properly even in Chrome & with zoom on high-dpi
  devices. overflow: auto is important for this.

* Set borders & background on imagecaption

* Enable border-collapsing; we are rendering this as a table & want the
  caption & figure to show a single border

* Add appropriate margin on the image to create some padding inside the figure
  despite border-collapsing

Tested in Chrome & Firefox.

Change-Id: Ibb46b682138ac703bea364efaeefc376e60c2d5f
resources/src/mediawiki.skinning/content.parsoid.less