-
Notifications
You must be signed in to change notification settings - Fork 675
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
[css-fonts] Add font-size: math, math-depth and math-style #5536
Conversation
This imports the proposal from MathML Core to manage font scaling in math formulas using a new 'math-level' property. This mechanism involves a new 'math-style' property that describes compactness of formulas as well as a new 'math' keyword to specify relative font-size change using the a scale factor calculated from the 'math-level' changes. w3c#5389 w3c#5387
This probably needs improvements, feedback welcome ;-) Current test/implementation status is: Tests: css/css-fonts/math-script-level-and-math-style/ as well as indirect effect on MathML in mathml/ Chrome: Firefox: Safari: |
Hi @fred-wang ! I think we could use a bit of discussion about where exactly all this goes, but I do suspect it fits better into the MathML Core spec rather than the css-fonts-4 spec. The core processing of this all is fitted to the MathML layout model, and not particularly relevant generally to CSS, is why I'm thinking this. (Note: for the |
@@ -838,7 +838,7 @@ Font size: the 'font-size' property</h3> | |||
|
|||
<pre class="propdef"> | |||
Name: font-size | |||
Value: <<absolute-size>> | <<relative-size>> | <<length-percentage>> | |||
Value: <<absolute-size>> | <<relative-size>> | <<length-percentage>> | math |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is a mistake, it must be reverted
Closing this per #5536 (comment)
|
This imports the proposal from MathML Core to manage font scaling in math
formulas using a new 'math-depth' property. This mechanism involves a new
'math-style' property that describes compactness of formulas as well as
a new 'math' keyword to specify relative font-size change using the a
scale factor calculated from the 'math-depth' changes.
#5389
#5387
#5389 (comment)
#5387 (comment)