Open Espigah opened 10 years ago
Thanks for the tip. Vertical-align is not fully implemented, this is one of the trickiest features to implement from CSS 2.1
FYI, the current implementation can be found here : https://github.com/silexlabs/Cocktail/blob/master/cocktail/core/linebox/LineBox.hx#LC712
(Y) ok I forgot to tell you where I changed > DefaultCSSStyleSheet
Pure as3: (worked fine) var cssRules:String = "sub, sup {vertical-align: baseline; position: relative; font-size: 70%;} sub {bottom: -0.6em;} sup { top: -1.0em; }"; var myStyle:CSSStyleSheet = new CSSStyleSheet(cssRules, PropertyOriginValue.USER_AGENT); document.addStyleSheet(myStyle);
(didn't work for me) sub { vertical-align: sub } sup { vertical-align: super }
(solution) sub, sup {vertical-align: baseline; position: relative; font-size: 70%;} sub {bottom: -0.6em;} sup {top: -1.0em;}