Page MenuHomePhabricator

MinervaNeue skin incorrectly processes monospace tags
Closed, DuplicatePublic

Description

tt is written in the css reset rule and this rule shows it as plain text

html,body,div,span,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,ins,em,img,small,strike,strong,sub,sup,**tt**,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,input,textarea,button,select,audio,video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
    background: none
}
  1. css reset does not contain kbd and samp tags
  2. the skin does not contain general rules for monospaced tags
pre, code, tt, kbd, samp, .mw-code {
     font-family: monospace,monospace;
 }

defines monospace only for

code, pre {
    font-family: monospace,monospace;
    border: solid 1px #c8ccd1;
    white-space: pre-wrap;
}
  1. skin should not use tt in the css reset and leave it to the browser's discretion OR the skin must return a monospace for the tt tag. If tt tag is used - it is used specially and overwrite it in plain text - an error.

In the main Vector skin, the monospace tags has styles, and in the MinervaNeue skin the content looks different.