Skip to content

Commit

Permalink
Bug 1666717 [wpt PR 25694] - Update math-level depth to match the new…
Browse files Browse the repository at this point in the history
… 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
marco-c committed Sep 28, 2020
1 parent 16b670b commit 94bed49
Show file tree
Hide file tree
Showing 14 changed files with 1,648 additions and 270 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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
>
Loading

0 comments on commit 94bed49

Please sign in to comment.