mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
9
layout/reftests/css-valid/button/button-button.html
Normal file
9
layout/reftests/css-valid/button/button-button.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if button is of the button type, it is barred from constraint
|
||||
validation and should not be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<button class='notvalid' type='button'></button>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if button has a disabled fieldset ancestor, it is barred from
|
||||
constraint validation and should not be affected by :valid
|
||||
pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<fieldset disabled>
|
||||
<fieldset>
|
||||
<button class='notvalid'></button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if button has a disabled fieldset ancestor, it is barred from
|
||||
constraint validation and should not be affected by :valid
|
||||
pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<script>
|
||||
function onloadHandler()
|
||||
{
|
||||
var fieldsets = document.getElementsByTagName("fieldset");
|
||||
fieldsets[1].disabled = true;
|
||||
fieldsets[0].disabled = false;
|
||||
document.documentElement.className='';
|
||||
}
|
||||
</script>
|
||||
<body onload="onloadHandler();">
|
||||
<fieldset disabled>
|
||||
<fieldset>
|
||||
<button class='notvalid'></button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<button style="background-color: green;" disabled></button>
|
||||
</body>
|
||||
</html>
|
||||
10
layout/reftests/css-valid/button/button-disabled.html
Normal file
10
layout/reftests/css-valid/button/button-disabled.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if button is disabled, it is barred from constraint validation
|
||||
and should not be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<button class='notvalid' disabled></button>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if button is disabled, it is barred from constraint validation
|
||||
and should not be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body onload="document.getElementById('b').disabled='true'; document.documentElement.className='';">
|
||||
<button class='notvalid' id='b'></button>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if button is not disabled, it is candidate for constraint validation
|
||||
and should be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body onload="document.getElementById('b').removeAttribute('disabled'); document.documentElement.className='';">
|
||||
<button class='valid' id='b' disabled></button>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<button style="background-color: green;"></button>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
14
layout/reftests/css-valid/button/button-fieldset-legend.html
Normal file
14
layout/reftests/css-valid/button/button-fieldset-legend.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if button has a disabled fieldset ancestor, but is in the first
|
||||
legend, it is not barred from constraint validation and should be
|
||||
affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<fieldset disabled>
|
||||
<legend>
|
||||
<button class='valid'></button>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
11
layout/reftests/css-valid/button/button-fieldset-ref.html
Normal file
11
layout/reftests/css-valid/button/button-fieldset-ref.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset>
|
||||
<fieldset disabled>
|
||||
<button style="background-color: green;"></button>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
9
layout/reftests/css-valid/button/button-invalid.html
Normal file
9
layout/reftests/css-valid/button/button-invalid.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if button has a custom error, it should not be affected by :valid
|
||||
pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body onload="document.getElementById('b').setCustomValidity('foo'); document.documentElement.className='';">
|
||||
<button class='notvalid' id='b'></button>
|
||||
</body>
|
||||
</html>
|
||||
6
layout/reftests/css-valid/button/button-ref.html
Normal file
6
layout/reftests/css-valid/button/button-ref.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<button style="background-color: green;"></button>
|
||||
</body>
|
||||
</html>
|
||||
9
layout/reftests/css-valid/button/button-reset.html
Normal file
9
layout/reftests/css-valid/button/button-reset.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if button is of the reset type, it is barred from constraint
|
||||
validation and should not be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<button class='notvalid' type='reset'></button>
|
||||
</body>
|
||||
</html>
|
||||
11
layout/reftests/css-valid/button/button-type-barred.html
Normal file
11
layout/reftests/css-valid/button/button-type-barred.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if a button has is candidate for constraint validation then change
|
||||
its type to be barred from constraint validation, it should not be
|
||||
affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body onload="document.getElementById('b').type='button'; document.documentElement.className='';">
|
||||
<button class='notvalid' type='submit' id='b'></button>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
19
layout/reftests/css-valid/button/button-type-invalid.html
Normal file
19
layout/reftests/css-valid/button/button-type-invalid.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if a button has a custom error when barred from constraint
|
||||
validation then move a type candidate for constraint validation,
|
||||
it should not be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<script>
|
||||
function onLoadHandler()
|
||||
{
|
||||
var b = document.getElementById('b');
|
||||
b.setCustomValidity('foo');
|
||||
b.type = 'submit';
|
||||
document.documentElement.className='';
|
||||
}
|
||||
</script>
|
||||
<body onload="onLoadHandler();">
|
||||
<button class='notvalid' type='button' id='b'></button>
|
||||
</body>
|
||||
</html>
|
||||
9
layout/reftests/css-valid/button/button-valid.html
Normal file
9
layout/reftests/css-valid/button/button-valid.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if button has no custom error and is not barred from constraint
|
||||
validation, it should be affected by :valid pseudo-class. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<button class='valid'></button>
|
||||
</body>
|
||||
</html>
|
||||
13
layout/reftests/css-valid/button/reftest-stylo.list
Normal file
13
layout/reftests/css-valid/button/reftest-stylo.list
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
|
||||
== button-valid.html button-valid.html
|
||||
fails fuzzy-if(skiaContent,1,3) == button-invalid.html button-invalid.html
|
||||
== button-disabled.html button-disabled.html
|
||||
== button-dyn-disabled.html button-dyn-disabled.html
|
||||
fails fuzzy-if(skiaContent,1,3) == button-dyn-not-disabled.html button-dyn-not-disabled.html
|
||||
fuzzy-if(skiaContent,1,3) == button-button.html button-button.html
|
||||
fails fuzzy-if(skiaContent,1,3) == button-reset.html button-reset.html
|
||||
fails fuzzy-if(skiaContent,1,3) == button-type-invalid.html button-type-invalid.html
|
||||
fails fuzzy-if(skiaContent,1,3) == button-type-barred.html button-type-barred.html
|
||||
== button-disabled-fieldset-1.html button-disabled-fieldset-1.html
|
||||
fuzzy-if(skiaContent,1,3) == button-disabled-fieldset-2.html button-disabled-fieldset-2.html
|
||||
== button-fieldset-legend.html button-fieldset-legend.html
|
||||
12
layout/reftests/css-valid/button/reftest.list
Normal file
12
layout/reftests/css-valid/button/reftest.list
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
== button-valid.html button-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-invalid.html button-ref.html
|
||||
== button-disabled.html button-disabled-ref.html
|
||||
== button-dyn-disabled.html button-disabled-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-dyn-not-disabled.html button-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-button.html button-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-reset.html button-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-type-invalid.html button-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-type-barred.html button-ref.html
|
||||
== button-disabled-fieldset-1.html button-fieldset-ref.html
|
||||
fuzzy-if(skiaContent,1,3) == button-disabled-fieldset-2.html button-fieldset-ref.html
|
||||
== button-fieldset-legend.html button-fieldset-legend-ref.html
|
||||
18
layout/reftests/css-valid/button/style.css
Normal file
18
layout/reftests/css-valid/button/style.css
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* Override default style */
|
||||
button:invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
button.notvalid {
|
||||
background-color: green;
|
||||
}
|
||||
button.notvalid:valid {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
button.valid {
|
||||
background-color: red;
|
||||
}
|
||||
button.valid:valid {
|
||||
background-color: green;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue