mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-12 15:55:19 +00:00
7d2de31fd9
I played around with a lot of options, and settled with: * When there is nothing but text, but the text is all whitespace, don't show it. * Make sure an <img> with no text is still shown. This is done by checking for child elements. A possible future enhancement could be to check the visible width of the element as well. Unfortunately this fails in tests. Everything is 0 in tests. Bug: T240543 Depends-On: I2929a86b6a09f3b72e5e2f4151cb13f52446897d Change-Id: I94ed575abcd69241c82480ade07017e61cc26c9c |
||
---|---|---|
.. | ||
mediawiki.test.js | ||
page.test.js | ||
reference.test.js | ||
rest.test.js |