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

Why CSSProperty.FontSize.inherited() is false? #107

Open
krawa opened this issue Feb 13, 2020 · 1 comment
Open

Why CSSProperty.FontSize.inherited() is false? #107

krawa opened this issue Feb 13, 2020 · 1 comment

Comments

@krawa
Copy link

krawa commented Feb 13, 2020

font-size property must be inherited
https://www.w3schools.com/cssref/pr_font_font-size.asp

@radkovo
Copy link
Owner

radkovo commented Feb 14, 2020

That's a good point. font-size should be intherited but actually, the computed value should be inherited (not the specified value). E.g. if there is font-size: 75% specified, the computed result (point value) should be inherited by the child elements; evaluating 75 % in child elements may produce a different result. Unfortunately, jStyleParser does not have the information about the computed value. I will think about possible solutions but at the moment, the application should take care of the font size computation.

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