-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1666717 [wpt PR 25694] - Update math-level depth to match the new…
… syntax, a=testonly Automatic update from web-platform-tests Update math-level depth to match the new syntax (#25694) 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 -- wpt-commits: 9614b05463a96ce2cd496dc322ea558c3a3c7909 wpt-pr: 25694 UltraBlame original commit: d32ea8a9512bde0359e35f69fe08d3d8d89f79dd
- Loading branch information
Showing
14 changed files
with
1,648 additions
and
270 deletions.
There are no files selected for viewing
711 changes: 711 additions & 0 deletions
711
...tests/css/css-fonts/math-script-level-and-math-style/math-script-level-001.tentative.html
Large diffs are not rendered by default.
Oops, something went wrong.
347 changes: 221 additions & 126 deletions
347
...tests/css/css-fonts/math-script-level-and-math-style/math-script-level-002.tentative.html
Large diffs are not rendered by default.
Oops, something went wrong.
185 changes: 185 additions & 0 deletions
185
...s/css/css-fonts/math-script-level-and-math-style/math-script-level-003.tentative-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
html | ||
> | ||
< | ||
head | ||
> | ||
< | ||
title | ||
> | ||
math | ||
- | ||
depth | ||
< | ||
/ | ||
title | ||
> | ||
< | ||
meta | ||
charset | ||
= | ||
" | ||
utf | ||
- | ||
8 | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
stylesheet | ||
" | ||
type | ||
= | ||
" | ||
text | ||
/ | ||
css | ||
" | ||
href | ||
= | ||
" | ||
/ | ||
fonts | ||
/ | ||
ahem | ||
. | ||
css | ||
" | ||
/ | ||
> | ||
< | ||
style | ||
> | ||
. | ||
container | ||
{ | ||
/ | ||
* | ||
Ahem | ||
font | ||
does | ||
not | ||
have | ||
a | ||
MATH | ||
table | ||
so | ||
the | ||
font | ||
- | ||
size | ||
scale | ||
factor | ||
is | ||
always | ||
0 | ||
. | ||
71 | ||
^ | ||
{ | ||
computed | ||
- | ||
inherited | ||
math | ||
script | ||
level | ||
} | ||
* | ||
/ | ||
font | ||
: | ||
100px | ||
/ | ||
1 | ||
Ahem | ||
; | ||
} | ||
< | ||
/ | ||
style | ||
> | ||
< | ||
/ | ||
head | ||
> | ||
< | ||
body | ||
> | ||
< | ||
p | ||
> | ||
Test | ||
passes | ||
if | ||
you | ||
see | ||
two | ||
squares | ||
of | ||
side | ||
100px | ||
. | ||
< | ||
/ | ||
p | ||
> | ||
< | ||
div | ||
class | ||
= | ||
" | ||
container | ||
" | ||
> | ||
< | ||
div | ||
> | ||
X | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
br | ||
/ | ||
> | ||
< | ||
div | ||
class | ||
= | ||
" | ||
container | ||
" | ||
> | ||
< | ||
div | ||
> | ||
X | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
/ | ||
body | ||
> | ||
< | ||
/ | ||
html | ||
> |
Oops, something went wrong.