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

Update math-level depth to match the new syntax #25694

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Conversation

fred-wang
Copy link
Contributor

Discussed with the CSSWG at [1]. Syntax changes are

  • Split scriptlevel(...) into math-depth: ... and font-size: math.
  • Rename auto to auto-add

The old tests math-script-level-001 and math-script-level-003
are restored and adjusted to check the computed math-level in
various situations and that the math-level does not have any
effect when the specified font-size is not 'math'.

[1] w3c/csswg-drafts#5389

Discussed with the CSSWG at [1]. Syntax changes are
- Split scriptlevel(...) into math-depth: ... and font-size: math.
- Rename auto to auto-add

The old tests math-script-level-001 and math-script-level-003
are restored and adjusted to check the computed math-level in
various situations and that the math-level does not have any
effect when the specified font-size is not 'math'.

[1] w3c/csswg-drafts#5389
Copy link
Contributor

@rwlbuis rwlbuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@fred-wang fred-wang merged commit 9614b05 into master Sep 23, 2020
@fred-wang fred-wang deleted the math-depth branch September 23, 2020 09:30
blueboxd pushed a commit to blueboxd/chromium-legacy that referenced this pull request Sep 25, 2020
Experimental font-size: scriptlevel(...) syntax was implemented in [1].
This CL updates it to match what was agreed with the CSSWG [2] as well
as new WPT tests [3]:
- Split scriptlevel(...) into math-depth: ... and font-size: math.
- Rename auto to auto-add

This CL also updates the MathML UA stylesheet to use the new syntax.

To compute font-size, one need the inherited math-style and the
inherited/computed math-depth. So math-style does not need to be High
priority. Additionally Blink computes the High priority alphabetically,
so math-depth must be handled specially.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/2184131
[2] w3c/csswg-drafts#5389
[3] web-platform-tests/wpt#25694

Bug: 6606, 1023292
Change-Id: I8a5bf245fa6158633261ed167800fc5feb0c3564
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423843
Commit-Queue: Frédéric Wang <fwang@igalia.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Rob Buis <rbuis@igalia.com>
Cr-Commit-Position: refs/heads/master@{#810610}
mjfroman pushed a commit to mjfroman/moz-libwebrtc-third-party that referenced this pull request Oct 14, 2022
Experimental font-size: scriptlevel(...) syntax was implemented in [1].
This CL updates it to match what was agreed with the CSSWG [2] as well
as new WPT tests [3]:
- Split scriptlevel(...) into math-depth: ... and font-size: math.
- Rename auto to auto-add

This CL also updates the MathML UA stylesheet to use the new syntax.

To compute font-size, one need the inherited math-style and the
inherited/computed math-depth. So math-style does not need to be High
priority. Additionally Blink computes the High priority alphabetically,
so math-depth must be handled specially.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/2184131
[2] w3c/csswg-drafts#5389
[3] web-platform-tests/wpt#25694

Bug: 6606, 1023292
Change-Id: I8a5bf245fa6158633261ed167800fc5feb0c3564
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423843
Commit-Queue: Frédéric Wang <fwang@igalia.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Rob Buis <rbuis@igalia.com>
Cr-Commit-Position: refs/heads/master@{#810610}
GitOrigin-RevId: 0feb1d195c8a413c53e808ed95df7e1b78089703
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants