mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +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
15
layout/reftests/css-valid/select/reftest-stylo.list
Normal file
15
layout/reftests/css-valid/select/reftest-stylo.list
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
|
||||
fuzzy-if(skiaContent,2,7) needs-focus == select-valid.html select-valid.html
|
||||
fails fuzzy-if(skiaContent,2,5) needs-focus == select-invalid.html select-invalid.html
|
||||
needs-focus == select-disabled.html select-disabled.html
|
||||
fuzzy-if(skiaContent,1,5) needs-focus == select-dyn-disabled.html select-dyn-disabled.html
|
||||
fails fuzzy-if(skiaContent,2,5) needs-focus == select-dyn-not-disabled.html select-dyn-not-disabled.html
|
||||
needs-focus == select-required-invalid.html select-required-invalid.html
|
||||
needs-focus == select-required-valid.html select-required-valid.html
|
||||
needs-focus == select-required-multiple-invalid.html select-required-multiple-invalid.html
|
||||
fuzzy-if(skiaContent,1,250) needs-focus == select-required-multiple-valid.html select-required-multiple-valid.html
|
||||
fails-if(Android||B2G||Mulet) needs-focus == select-disabled-fieldset-1.html select-disabled-fieldset-1.html
|
||||
# Initial mulet triage: parity with B2G/B2G Desktop
|
||||
fails-if(Android||B2G||Mulet) fuzzy-if(skiaContent,1,3) needs-focus == select-disabled-fieldset-2.html select-disabled-fieldset-2.html
|
||||
# Initial mulet triage: parity with B2G/B2G Desktop
|
||||
needs-focus == select-fieldset-legend.html select-fieldset-legend.html
|
||||
12
layout/reftests/css-valid/select/reftest.list
Normal file
12
layout/reftests/css-valid/select/reftest.list
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
fuzzy-if(skiaContent,2,7) needs-focus == select-valid.html select-ref.html
|
||||
fuzzy-if(skiaContent,2,5) needs-focus == select-invalid.html select-ref.html
|
||||
needs-focus == select-disabled.html select-disabled-ref.html
|
||||
fuzzy-if(skiaContent,1,5) needs-focus == select-dyn-disabled.html select-disabled-ref.html
|
||||
fuzzy-if(skiaContent,2,5) needs-focus == select-dyn-not-disabled.html select-ref.html
|
||||
needs-focus == select-required-invalid.html select-required-ref.html
|
||||
needs-focus == select-required-valid.html select-required-ref.html
|
||||
needs-focus == select-required-multiple-invalid.html select-required-multiple-ref.html
|
||||
fuzzy-if(skiaContent,1,250) needs-focus == select-required-multiple-valid.html select-required-multiple-ref.html
|
||||
fails-if(Android) needs-focus == select-disabled-fieldset-1.html select-fieldset-ref.html
|
||||
fails-if(Android) fuzzy-if(skiaContent&&!Android,1,3) needs-focus == select-disabled-fieldset-2.html select-fieldset-ref.html
|
||||
needs-focus == select-fieldset-legend.html select-fieldset-legend-ref.html
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select 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>
|
||||
<select class='notvalid'></select>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if select 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>
|
||||
<select class='notvalid'></select>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<select disabled style="background-color: green;"></select>
|
||||
</body>
|
||||
</html>
|
||||
9
layout/reftests/css-valid/select/select-disabled.html
Normal file
9
layout/reftests/css-valid/select/select-disabled.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select 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>
|
||||
<select class='notvalid' disabled></select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if select 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('s').disabled='true'; document.documentElement.className='';">
|
||||
<select class='notvalid' id='s'></select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if select 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('s').removeAttribute('disabled'); document.documentElement.className='';">
|
||||
<select class='valid' id='s' disabled></select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<select style="background-color: green;"></select>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
14
layout/reftests/css-valid/select/select-fieldset-legend.html
Normal file
14
layout/reftests/css-valid/select/select-fieldset-legend.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select 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>
|
||||
<select class='valid'></select>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
10
layout/reftests/css-valid/select/select-fieldset-ref.html
Normal file
10
layout/reftests/css-valid/select/select-fieldset-ref.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset>
|
||||
<fieldset>
|
||||
<select disabled style="background-color: green;"></select>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
9
layout/reftests/css-valid/select/select-invalid.html
Normal file
9
layout/reftests/css-valid/select/select-invalid.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- Test: if select 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('s').setCustomValidity('foo'); document.documentElement.className='';">
|
||||
<select class='notvalid' id='s'></select>
|
||||
</body>
|
||||
</html>
|
||||
6
layout/reftests/css-valid/select/select-ref.html
Normal file
6
layout/reftests/css-valid/select/select-ref.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<select style="background-color: green;"></select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select is required and has a select option which has an empty
|
||||
string value, :valid should not apply. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<select class='notvalid' required>
|
||||
<option selected value="">foo</option>
|
||||
</select>
|
||||
</body>
|
||||
</html></html>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select is required and has all selected option value set to the
|
||||
string string, :valid should not apply. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<select class='notvalid' required multiple>
|
||||
<option selected></option>
|
||||
<option selected value="">foo</option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<select multiple style="background-color: green;">
|
||||
<option selected></option>
|
||||
<option selected value="">foo</option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select is required and has a selected option which has value
|
||||
different from the empty string, :valid should apply. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<select class='valid' required multiple>
|
||||
<option selected></option>
|
||||
<option selected>foo</option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<select style="background-color: green;">
|
||||
<option selected value="">foo</option>
|
||||
</selecT>
|
||||
</body>
|
||||
</html>
|
||||
11
layout/reftests/css-valid/select/select-required-valid.html
Normal file
11
layout/reftests/css-valid/select/select-required-valid.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select is required and has a select option which has value
|
||||
different from the empty string, :valid should apply. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<select class='valid' required>
|
||||
<option selected>foo</option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
9
layout/reftests/css-valid/select/select-valid.html
Normal file
9
layout/reftests/css-valid/select/select-valid.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- Test: if select 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>
|
||||
<select class='valid'></select>
|
||||
</body>
|
||||
</html>
|
||||
18
layout/reftests/css-valid/select/style.css
Normal file
18
layout/reftests/css-valid/select/style.css
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* Override default style */
|
||||
select:invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
select.notvalid {
|
||||
background-color: green;
|
||||
}
|
||||
select.notvalid:valid {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
select.valid {
|
||||
background-color: red;
|
||||
}
|
||||
select.valid:valid {
|
||||
background-color: green;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue