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

What attribute wins when we have both display and displaystyle on math #203

Closed
rwlbuis opened this issue Mar 23, 2020 · 4 comments
Closed
Labels
css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification

Comments

@rwlbuis
Copy link

rwlbuis commented Mar 23, 2020

What attribute wins when we have both display and displaystyle on math? Both will map internally to math-style.

@rwlbuis
Copy link
Author

rwlbuis commented Mar 23, 2020

In firefox displaystyle seems to win.

@fred-wang
Copy link

I think displaystyle should win because display specify both centering/block + math-style while displaystyle allows to refine the math-style.

Currently, the spec says the math-style for math@display is implemented in the UA sheet: https://mathml-refresh.github.io/mathml-core/#user-agent-stylesheet while displaystyle is mapped to math-style (in the code). So I guess the latter is stronger than the former.

@fred-wang
Copy link

I think there are some tests mixing display and displaystyle.

@fred-wang fred-wang added css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification need specification update Issues requiring specification changes labels May 22, 2020
@fred-wang
Copy link

@rwlbuis This is tested by https://w3c-test.org/mathml/relations/css-styling/displaystyle-1.html (and even https://w3c-test.org/mathml/relations/css-styling/displaystyle-015.html)

Closing since this is a particular case of issue #215 :

displaystyle attribute is author-level zero-specificity
display attribute is implemented with UA sheet rules

so displaystyle wins over display.

@fred-wang fred-wang removed the need specification update Issues requiring specification changes label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification
Projects
None yet
Development

No branches or pull requests

2 participants