Forum Bugs

Sub/Sup Displays Incorrectly

daneren2005
<sub> and <sup> font sizes are very wrong. Looking in html.css I see:

sub { vertical-align: sub }
sup { vertical-align: super }

sub, sup { font-size: 0.83em }


I changed it to more what I see in FF/Chrome's default styles:

sub { bottom: -0.25em; }
sup { top: -0.5em; }

sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}


Really it appeared fine as soon as I changed just the font-size from em to %, but copying all of the different styles appears to work correctly as well so I think I am going to stick with that for accuracy's sake. Can you update the defaults to be correct since anything more complicated sets of font-sizes is going to be wrong with the old approach.
dauwhe
The Prince user agent stylesheet matches the W3C recommendations for CSS 2.2 and HTML5. Current Firefox uses (from devtools, where you can view their entire user agent stylesheet)

sub {
  vertical-align: sub;
  font-size: smaller;
  line-height: normal;
}

sup {
  vertical-align: super;
  font-size: smaller;
  line-height: normal;
}


Chrome seems to have (from devtools)

sup {
    vertical-align: super;
    font-size: smaller;
}


So I'm not finding evidence that Prince is "very wrong." And in many situations (such as the print work we do with Prince) setting a negative bottom margin in em units would cause significant problems for us.

Dave

daneren2005
You are right, it must be something different with something I am importing. Ignore this.