@Test
public void resolveVerticalAlign() throws IOException {

    assertEquals(0, c.getTextRise(), 0);
    t.getCSS().put("vertical-align", "5pt");
    c = applier.apply(c, t);
    assertEquals(5, c.getTextRise(), 0);
    t.getCSS().put("vertical-align", "sub");
    c = applier.apply(c, t);
    assertEquals(12, c.getFont().getSize(), 0);
    assertEquals(-c.getFont().getSize() / 2, c.getTextRise(), 0);
    t.getCSS().put("vertical-align", "super");
    c = applier.apply(c, t);
    assertEquals(12, c.getFont().getSize(), 0);
    assertEquals(c.getFont().getSize() / 2 + 0.5, c.getTextRise(), 0);
}