зеркало из https://github.com/mozilla/gecko-dev.git
Bug 839787 - Test the new <input type='file'> rendering. r=bz
This commit is contained in:
Родитель
728cc33e76
Коммит
cba34e54de
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="style.css" type="text/css"?>
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<vbox>
|
||||
<html:div dir='rtl'>
|
||||
<html:div class='file'>
|
||||
<html:input type='button' value='Browse…'/><label value="No file selected."/>
|
||||
</html:div>
|
||||
</html:div>
|
||||
<html:div dir='rtl'>
|
||||
<html:div class='file' dir='rtl'>
|
||||
<html:input type='button' value='Browse…'/><label value="No files selected."/>
|
||||
</html:div>
|
||||
</html:div>
|
||||
</vbox>
|
||||
</window>
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div dir='rtl'>
|
||||
<input type='file'>
|
||||
</div>
|
||||
<div dir='rtl'>
|
||||
<input type='file' multiple>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="style.css" type="text/css"?>
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<vbox>
|
||||
<html:div class='file'>
|
||||
<html:input type='button' value='Browse…'/><label value="No file selected."/>
|
||||
</html:div>
|
||||
<html:br/>
|
||||
<html:div class='file'>
|
||||
<html:input type='button' value='Browse…'/><label value="No files selected."/>
|
||||
</html:div>
|
||||
</vbox>
|
||||
</window>
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<input type='file'>
|
||||
<br>
|
||||
<input type='file' multiple>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- size should have no impact on <input type='file'>. -->
|
||||
<html>
|
||||
<body>
|
||||
<input type='file' size='5'>
|
||||
<br>
|
||||
<input type='file' multiple size='30'>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,3 @@
|
|||
fuzzy-if(OSX==10.6,8,128) == input-file-simple.html input-file-simple-ref.xul
|
||||
fuzzy-if(OSX==10.6,8,114) == input-file-rtl.html input-file-rtl-ref.xul
|
||||
fuzzy-if(OSX==10.6,8,128) == input-file-size.html input-file-simple-ref.xul
|
|
@ -0,0 +1,51 @@
|
|||
vbox {
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
.file {
|
||||
display: inline;
|
||||
-moz-appearance: none;
|
||||
padding: 0;
|
||||
border: 2px inset ThreeDFace;
|
||||
border-style: none;
|
||||
|
||||
background-color: -moz-Field;
|
||||
|
||||
color: -moz-FieldText;
|
||||
font: -moz-field;
|
||||
text-rendering: optimizeLegibility;
|
||||
line-height: normal !important;
|
||||
text-align: start;
|
||||
text-transform: none;
|
||||
word-spacing: normal;
|
||||
letter-spacing: normal;
|
||||
cursor: text;
|
||||
text-indent: 0;
|
||||
-moz-user-select: text;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.file > label {
|
||||
display: inline-block;
|
||||
width: 12em;
|
||||
-moz-padding-start: 5px;
|
||||
|
||||
border-color: inherit;
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
letter-spacing: inherit;
|
||||
}
|
||||
|
||||
.file > label.rtl {
|
||||
text-align: right;
|
||||
-moz-padding-start: 0px;
|
||||
padding-right: 1px;
|
||||
}
|
||||
|
||||
.file > input[type='button'] {
|
||||
height: inherit;
|
||||
font-size: inherit;
|
||||
letter-spacing: inherit;
|
||||
cursor: inherit;
|
||||
}
|
|
@ -2,5 +2,6 @@ include email/reftest.list
|
|||
include tel/reftest.list
|
||||
include search/reftest.list
|
||||
include url/reftest.list
|
||||
include file/reftest.list
|
||||
include range/reftest.list
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче