https://bugzilla.wikimedia.org/show_bug.cgi?id=73016

--- Comment #5 from zhuyifei1999 <[email protected]> ---
Correction and expansion to my previous IRC comment:
In a css block (in previously unknown source) there is:
>div#content h1,
>div#content h2,
>div#content h3,
>div#content h4,
>div#content h5,
>div#content h6 {
>   line-height: inherit;
>    margin: 0;
>    padding-top: 0.5em;
>    padding-bottom: 0.17em;
>}
which sets "div#content h1" to have "padding-top: 0.5em" and "padding-bottom:
0.17em"

Another more specific css block in another unknown source (which I have not dug
further), there is:
>div#content #firstHeading {
>       font-size: 1.6em;
>       line-height: 1.2em;
>       margin-bottom: 0.1em;
>       padding-bottom: 0;
>}
which resets "padding-bottom: 0"

Previously in module "skins.vector.styles" there was another specific css
block:
>       .mw-body h1,
>       .mw-body h2,
>       .mw-body #firstHeading {
>         font-family: "Linux Libertine", Georgia, Times, serif;
>         line-height: 1.3;
>         margin-bottom: 0.25em;
>         padding: 0;
>       }
to reset all paddings to 0.
However, ".mw-body #firstHeading" was removed and ".mw-body h1" is not as
specific as "div#content h1", so it's overridden by  the first block to have a
final "padding-top: 0.5em", which is shown as the blank space on the top of the
title.

But further digging I just done shows that the first block comes from
ext.gadget.typographyrefreshoverride (In this case for FDMS, it's his glocal
css). So for  anyone who doesn't use this override, this bug just doesn't show. 
Thus there're two ways to fix this bug:
1. partly revert the git commit. 
2. fix all the typographyrefreshoverride gadgets and user css.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to