import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type=range value=100 max=100>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type=range value=75>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type=range value=75 style="-moz-appearance:none">
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="range" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<!-- Test: that range with value=70 is different to the default value=50. -->
<body>
<input type='range' style="-moz-appearance:none;" value=90 min=20 max=120>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type='range' value=30 style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<!-- Test: that direction:rtl behaves correctly -->
<body>
<input type='range' value=70 style="-moz-appearance:none; direction:rtl;">
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="checkbox" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when switching to another type, the input element should look
like that type (not like an input range element) -->
<script type="text/javascript">
function setToCheckbox()
{
document.getElementById('i').type='checkbox';
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setToCheckbox);
</script>
<body>
<input type='range' id='i' style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'max' IDL property, the thumb of the range
should be moved to the appropriate position. This test also
sets the max to less than the current value which checks that the
rendering code handles repositioning correctly in the case that
sanitization of the value is needed for a non-value change. -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').max = "10";
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
setTimeout(setValue, 2000); // useful when not running under reftest suite
</script>
<body>
<input type=range id='i' max=100>
</body>
</html>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>Test ::-moz-range-progress</title>
<style>
div {
margin: 0;
padding: 0;
}
.range {
display: inline-block;
position: relative;
width: 200px;
height: 20px;
background-color: blue;
}
.range-progress {
display: inline-block;
position: absolute;
top: 5px;
width: 50px;
height: 10px;
background-color: lime;
}
</style>
</head>
<body>
<div class="range">
<div class="range-progress"></div>
</div>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Test ::-moz-range-progress</title>
<style>
input[type=range] {
width: 200px;
height: 20px;
margin: 0;
padding: 0;
background-color: blue;
}
input[type=range]::-moz-range-progress {
height: 10px;
background-color: lime;
}
input[type=range]::-moz-range-track,
input[type=range]::-moz-range-thumb {
visibility: hidden;
}
</style>
</head>
<body>
<input type=range value=25>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Test ::-moz-range-progress</title>
<style>
input[type=range] {
width: 200px;
height: 20px;
margin: 0;
padding: 0;
background-color: blue;
}
input[type=range]::-moz-range-track {
border: 0;
height: 10px;
background-color: lime;
}
input[type=range]::-moz-range-thumb {
width: 10px;
height: 10px;
border: 0;
border-radius: 0;
background-image: none;
background-color: yellow;
}
</style>
</head>
<body>
<input type=range value=0>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Test ::-moz-range-progress</title>
<style>
input[type=range] {
width: 200px;
height: 20px;
margin: 0;
padding: 0;
background-color: blue;
}
input[type=range]::-moz-range-track {
border: 0;
height: 10px;
background-color: lime;
}
input[type=range]::-moz-range-progress {
height: 10px;
background-color: red;
}
input[type=range]::-moz-range-thumb {
width: 10px;
height: 10px;
border: 0;
border-radius: 0;
background-image: none;
background-color: yellow;
}
</style>
</head>
<body>
<input type=range value=0>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Test ::-moz-range-progress</title>
<style>
input[type=range] {
width: 200px;
height: 20px;
margin: 0;
padding: 0;
background-color: blue;
}
input[type=range]::-moz-range-track {
border: 0;
height: 10px;
background-color: lime;
}
input[type=range]::-moz-range-thumb {
width: 10px;
height: 10px;
border: 0;
border-radius: 0;
background-image: none;
background-color: yellow;
}
</style>
</head>
<body>
<input type=range value=100>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Test ::-moz-range-progress</title>
<style>
input[type=range] {
width: 200px;
height: 20px;
margin: 0;
padding: 0;
background-color: blue;
}
input[type=range]::-moz-range-track {
border: 0;
height: 10px;
background-color: red;
}
input[type=range]::-moz-range-progress {
height: 10px;
background-color: lime;
}
input[type=range]::-moz-range-thumb {
width: 10px;
height: 10px;
border: 0;
border-radius: 0;
background-image: none;
background-color: yellow;
}
</style>
</head>
<body>
<input type=range value=100>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="range" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="text" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="text" value="50" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="checkbox" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range orient=block max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range orient=horizontal max=100 value=70 dir=rtl>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range orient=horizontal max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range orient=inline max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range orient=vertical max=100 value=70 dir=rtl>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range orient=vertical max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-lr" orient=block max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-lr" orient=horizontal max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-lr" orient=inline max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-lr" orient=vertical max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-lr" max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-rl" orient=block max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-rl" orient=horizontal max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-rl" orient=inline max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-rl" orient=vertical max=100 value=70>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<input type=range style="writing-mode:vertical-rl" max=100 value=70>

View file

@ -0,0 +1,54 @@
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
# sanity checks:
skip == not-other-type-unthemed-1.html not-other-type-unthemed-1.html
skip == not-other-type-unthemed-1.html not-other-type-unthemed-1.html
skip == not-other-type-unthemed-1.html not-other-type-unthemed-1.html
# dynamic type changes:
fuzzy-if(skiaContent,1,40) == to-range-from-other-type-unthemed-1.html to-range-from-other-type-unthemed-1.html
== from-range-to-other-type-unthemed-1.html from-range-to-other-type-unthemed-1.html
# for different values:
== different-fraction-of-range-unthemed-1.html different-fraction-of-range-unthemed-1.html
== same-fraction-of-range-unthemed-1.html same-fraction-of-range-unthemed-1.html
# dynamic value changes:
fails fuzzy-if(skiaContent,1,40) == value-prop-unthemed.html value-prop-unthemed.html
== value-prop.html value-prop.html
fails fuzzy-if(skiaContent,1,40) == valueAsNumber-prop-unthemed.html valueAsNumber-prop-unthemed.html
== valueAsNumber-prop.html valueAsNumber-prop.html
fails fuzzy-if(B2G,2,1) fuzzy-if(skiaContent,1,40) == stepDown-unthemed.html stepDown-unthemed.html
fuzzy-if(B2G,2,1) == stepDown.html stepDown.html
fails fuzzy-if(skiaContent,1,40) == stepUp-unthemed.html stepUp-unthemed.html
== stepUp.html stepUp.html
fuzzy-if(B2G,2,1) == max-prop.html max-prop.html
skip == reset-value.html reset-value.html
# 'direction' property:
== direction-unthemed-1.html direction-unthemed-1.html
# ::-moz-range-progress pseudo-element:
fails-if(B2G||Mulet||Android) == moz-range-progress-1.html moz-range-progress-1.html
# Initial mulet triage: parity with B2G/B2G Desktop
== moz-range-progress-2.html moz-range-progress-2.html
== moz-range-progress-3.html moz-range-progress-3.html
# Tests for block and inline orientation in combination with writing-mode
# XXX Remove default-preferences setting here after bug 1138384 makes
# it the default for all channels
== range-orient-horizontal.html range-orient-horizontal.html
== range-orient-horizontal.html range-orient-horizontal.html
== range-orient-block.html range-orient-block.html
== range-orient-inline.html range-orient-inline.html
== range-vlr.html range-vlr.html
== range-vlr-orient-block.html range-vlr-orient-block.html
== range-vlr-orient-inline.html range-vlr-orient-inline.html
== range-vlr-orient-horizontal.html range-vlr-orient-horizontal.html
== range-vlr-orient-vertical.html range-vlr-orient-vertical.html
== range-vrl.html range-vrl.html
== range-vrl-orient-block.html range-vrl-orient-block.html
== range-vrl-orient-inline.html range-vrl-orient-inline.html
== range-vrl-orient-horizontal.html range-vrl-orient-horizontal.html
== range-vrl-orient-vertical.html range-vrl-orient-vertical.html

View file

@ -0,0 +1,49 @@
# sanity checks:
!= not-other-type-unthemed-1.html not-other-type-unthemed-1a-notref.html
!= not-other-type-unthemed-1.html not-other-type-unthemed-1b-notref.html
!= not-other-type-unthemed-1.html not-other-type-unthemed-1c-notref.html
# dynamic type changes:
fuzzy-if(skiaContent,1,40) == to-range-from-other-type-unthemed-1.html to-range-from-other-type-unthemed-1-ref.html
== from-range-to-other-type-unthemed-1.html from-range-to-other-type-unthemed-1-ref.html
# for different values:
!= different-fraction-of-range-unthemed-1.html different-fraction-of-range-unthemed-1-notref.html
== same-fraction-of-range-unthemed-1.html same-fraction-of-range-unthemed-1-ref.html
# dynamic value changes:
fuzzy-if(skiaContent,1,40) == value-prop-unthemed.html 75pct-unthemed-common-ref.html
== value-prop.html 75pct-common-ref.html
fuzzy-if(skiaContent,1,40) == valueAsNumber-prop-unthemed.html 75pct-unthemed-common-ref.html
== valueAsNumber-prop.html 75pct-common-ref.html
fuzzy-if(skiaContent,1,40) == stepDown-unthemed.html 75pct-unthemed-common-ref.html
== stepDown.html 75pct-common-ref.html
fuzzy-if(skiaContent,1,40) == stepUp-unthemed.html 75pct-unthemed-common-ref.html
== stepUp.html 75pct-common-ref.html
== max-prop.html 100pct-common-ref.html
== reset-value.html reset-value-ref.html
# 'direction' property:
== direction-unthemed-1.html direction-unthemed-1-ref.html
# ::-moz-range-progress pseudo-element:
fails-if(Android) == moz-range-progress-1.html moz-range-progress-1-ref.html
== moz-range-progress-2.html moz-range-progress-2-ref.html
== moz-range-progress-3.html moz-range-progress-3-ref.html
# Tests for block and inline orientation in combination with writing-mode
!= range-orient-horizontal.html range-orient-vertical.html
!= range-orient-horizontal.html range-orient-horizontal-rtl.html
== range-orient-block.html range-orient-vertical.html
== range-orient-inline.html range-orient-horizontal.html
== range-vlr.html range-orient-vertical.html
== range-vlr-orient-block.html range-orient-horizontal.html
== range-vlr-orient-inline.html range-orient-vertical.html
== range-vlr-orient-horizontal.html range-orient-horizontal.html
== range-vlr-orient-vertical.html range-orient-vertical.html
== range-vrl.html range-orient-vertical-rtl.html
== range-vrl-orient-block.html range-orient-horizontal-rtl.html
== range-vrl-orient-inline.html range-orient-vertical-rtl.html
== range-vrl-orient-horizontal.html range-orient-horizontal-rtl.html
== range-vrl-orient-vertical.html range-orient-vertical-rtl.html

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>1080352</title>
</head>
<body>
<form id="form">
<input id='inputRange' type='range' step='10' min='0' max='50' value='20'><br>
<input id='inputNumber' type='number' step='10' min='0' max='500' value='30'><br>
<input type='reset'><br>
</form>
</body>
</html>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>1080352</title>
</head>
<body onload="inputRange.value=40;inputNumber.value=40; form.reset()">
<form id="form">
<input id='inputRange' type='range' step='10' min='0' max='50' value='20'><br>
<input id='inputNumber' type='number' step='10' min='0' max='500' value='30'><br>
<input type='reset'><br>
</form>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="range" value=70 style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<!-- Test: that range with value=90,min=90,max=120 looks the same as range
with value=70 (also tests that it doesn't look like type=text, since the
text displayed would be different in the type=text case). -->
<body>
<input type='range' style="-moz-appearance:none;" value=90 min=20 max=120>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').stepDown();
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
</script>
<body>
<input type=range id='i' value=100 step=25 style='-moz-appearance:none'>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').stepDown();
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
</script>
<body>
<input type=range id='i' value=100 step=25>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').stepUp();
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
</script>
<body>
<input type=range id='i' value=50 step=25 style='-moz-appearance:none'>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').stepUp();
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
</script>
<body>
<input type=range id='i' value=50 step=25>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<input type="range" style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: input element changed to range state doesn't look like checkbox state -->
<script type="text/javascript">
function setToRange()
{
document.getElementById('i').type='range';
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setToRange);
</script>
<body>
<input type='checkbox' id='i' style="-moz-appearance:none;">
</body>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').value = "75";
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
setTimeout(setValue, 2000); // useful when not running under reftest suite
</script>
<body>
<input type=range id='i' value=50 step=25 style='-moz-appearance:none'>
</body>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').value = "75";
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
setTimeout(setValue, 2000); // useful when not running under reftest suite
</script>
<body>
<input type=range id='i' value=50 step=25>
</body>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').valueAsNumber = 75;
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
setTimeout(setValue, 2000); // useful when not running under reftest suite
</script>
<body>
<input type=range id='i' value=50 step=25 style='-moz-appearance:none'>
</body>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when changing the 'value' IDL property, the thumb of the range
should be moved to the appropriate position -->
<script type="text/javascript">
function setValue()
{
document.getElementById('i').valueAsNumber = 75;
document.documentElement.className = '';
}
document.addEventListener("MozReftestInvalidate", setValue);
setTimeout(setValue, 2000); // useful when not running under reftest suite
</script>
<body>
<input type=range id='i' value=50 step=25>
</body>
</html>