Bug wrapping after <sub>

Dominique Meeùs <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
By the way, while adjusting the width of my window in Amaya, with an 
example about another bug, I see the dot in CO2. (where 2 is a 
subscript) going alone to the next line. Punctuation should stay 
attached to the word. See code and screen capture attached.

There is a CSS clause in the subscript. I could cut the CSS class, save 
the file and still keep the wrong wrapping. But the rendering in Amaya 
is quite unstable. Before I could capture the screen, a change in the 
height of the window (!!!), without changing the width, made the 
wrapping change. OK, I just closed Amaya and opened the example again 
and there it is: the noCSS capture.
wrappingsub.png (image/png, 37.2 KB) - not displayed
exposant.html (text/html, 939 B)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>exposant</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
  <style type="text/css">
/*<![CDATA[*/
  .exposant {vertical-align: top;}
  .indice {vertical-align: bottom;}
  .pourcent {font-size: 70%;}
  /*]]>*/
  </style>
</head>

<body>
<p>On devrait alors y mettre vertical-align: bottom, comme à propos des
problèmes écologiques liés aux rejets de CO<sub>2</sub>. Quand on pense aux
millions de tonnes de carbone qu’un tout petit peu de combustible fissile
peut remplacer, on se demande si les écologistes, pour combattre le
réchauffement, ne feraient
pas mieux de défendre le nucléaire.</p>
</body>
</html>
wrapnoCSS.png (image/png, 39.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.