Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUB and SUP #FIXED #398

Open
Espigah opened this issue Feb 26, 2014 · 3 comments
Open

SUB and SUP #FIXED #398

Espigah opened this issue Feb 26, 2014 · 3 comments

Comments

@Espigah
Copy link

Espigah commented Feb 26, 2014

(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;}

@yanhick
Copy link
Member

yanhick commented Feb 27, 2014

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

@Espigah
Copy link
Author

Espigah commented Feb 28, 2014

(Y) ok
I forgot to tell you where I changed > DefaultCSSStyleSheet

@Espigah
Copy link
Author

Espigah commented Mar 6, 2014

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants