ELSGestion / els-sie-xsl-lib

A set of XSL libraries
5 stars 1 forks source link

html2cals : improve valign/align support #25

Closed mricaud closed 3 years ago

mricaud commented 3 years ago

valign default value in cals is "top" in CALS and "middle" in HTML.

To solve this, html2cals set valign "middle" on thead/tbody/tfoot (valign is not allowed on table/tgroup) if none is specified, fine. In this case, every cells that has a valign="middle" don't actually need it : we can get rid of it to make the cals lighter

There are also things to correct about valign, for example :

mricaud commented 3 years ago

New strategy 1) convert every attribute and css style in cals align/valign anywhere 2) calculate each entry explicit align/valign, delete other align/valign 3) optimize align/valign declaration based on default values :

mricaud commented 3 years ago

done