mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Update web-platform-tests to revision ef44bff0adaa07f2e420a0cbc1bc493cd5786656
This commit is contained in:
parent
61cadfa9a6
commit
67592a2228
61 changed files with 981 additions and 481 deletions
|
@ -45,7 +45,7 @@
|
|||
.level5 { math-script-level: 5; }
|
||||
</style>
|
||||
<script>
|
||||
const big = 2000;
|
||||
const big = 3000;
|
||||
const small = 150;
|
||||
setup({ explicit_done: true });
|
||||
window.addEventListener("load", function() {
|
||||
|
@ -94,11 +94,12 @@
|
|||
}, "scriptPercentScaleDown=80, scriptScriptPercentScaleDown=40");
|
||||
|
||||
test(function() {
|
||||
var scriptPercentScaleDown = .71;
|
||||
CheckFontSizes("scale0-40-scaledown", {
|
||||
"-3": big,
|
||||
"-1": big * .71 * .71,
|
||||
"0": big * .71 * .71 * .71,
|
||||
"1": big * .71 * .71 * .71 * .71,
|
||||
"1": big * .71 * .71 * .71 * scriptPercentScaleDown,
|
||||
"2": big * .71 * .71 * .71 * .4,
|
||||
"3": big * .71 * .71 * .71 * .4 * .71,
|
||||
"5": big * .71 * .71 * .71 * .4 * .71 * .71 * .71
|
||||
|
@ -107,7 +108,7 @@
|
|||
"5": small,
|
||||
"3": small / (.71 * .71),
|
||||
"2": small / (.71 * .71 * .71),
|
||||
"1": small / (.71 * .71 * .71 * (.4 / .71)),
|
||||
"1": small / (.71 * .71 * .71 * (.4 / scriptPercentScaleDown)),
|
||||
"0": small / (.71 * .71 * .71 * .4),
|
||||
"-1": small / (.71 * .71 * .71 * .4 * .71),
|
||||
"-3": small / (.71 * .71 * .71 * .4 * .71 * .71 * .71)
|
||||
|
@ -115,23 +116,24 @@
|
|||
}, "scriptPercentScaleDown=0, scriptScriptPercentScaleDown=40");
|
||||
|
||||
test(function() {
|
||||
var scriptScriptPercentScaleDown = 0.5041;
|
||||
CheckFontSizes("scale80-0-scaledown", {
|
||||
"-3": big,
|
||||
"-1": big * .71 * .71,
|
||||
"0": big * .71 * .71 * .71,
|
||||
"1": big * .71 * .71 * .71 * .8,
|
||||
"2": big * .71 * .71 * .71 * .71 * .71,
|
||||
"3": big * .71 * .71 * .71 * .71 * .71 * .71,
|
||||
"5": big * .71 * .71 * .71 * .71 * .71 * .71 * .71 * .71
|
||||
"2": big * .71 * .71 * .71 * scriptScriptPercentScaleDown,
|
||||
"3": big * .71 * .71 * .71 * scriptScriptPercentScaleDown * .71,
|
||||
"5": big * .71 * .71 * .71 * scriptScriptPercentScaleDown * .71 * .71 * .71
|
||||
});
|
||||
CheckFontSizes("scale80-0-scaleup", {
|
||||
"5": small,
|
||||
"3": small / (.71 * .71),
|
||||
"2": small / (.71 * .71 * .71),
|
||||
"1": small / (.71 * .71 * .71 * (.71 / .8)),
|
||||
"0": small / (.71 * .71 * .71 * .71),
|
||||
"-1": small / (.71 * .71 * .71 * .71 * .71),
|
||||
"-3": small / (.71 * .71 * .71 * .71 * .71 * .71 * .71)
|
||||
"1": small / (.71 * .71 * .71 * (scriptScriptPercentScaleDown / .8)),
|
||||
"0": small / (.71 * .71 * .71 * scriptScriptPercentScaleDown),
|
||||
"-1": small / (.71 * .71 * .71 * scriptScriptPercentScaleDown * .71),
|
||||
"-3": small / (.71 * .71 * .71 * scriptScriptPercentScaleDown * .71 * .71 * .71)
|
||||
});
|
||||
}, "scriptPercentScaleDown=80, scriptScriptPercentScaleDown=0");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue