mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48: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
21
layout/reftests/forms/input/text/baseline-1-ref.html
Normal file
21
layout/reftests/forms/input/text/baseline-1-ref.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Text baseline positioning reference</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: "MarkA";
|
||||
src: url(../fonts/markA.ttf);
|
||||
}
|
||||
input {
|
||||
font-family: "MarkA", sans-serif;
|
||||
font-size: 32px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input size="2" value="AAAAAAAA">
|
||||
</body>
|
||||
</html>
|
||||
31
layout/reftests/forms/input/text/baseline-1.html
Normal file
31
layout/reftests/forms/input/text/baseline-1.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Text baseline positioning test</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<!--
|
||||
The primary font MarkA has a small line height. The fallback font
|
||||
(used for the character '1') will probably have a maximum ascent
|
||||
greater than the ascent plus half leading of MarkA, but this
|
||||
should not adversly affect the positioning of characters from the
|
||||
primary font. Currently the maximum ascent of the fallback font
|
||||
has no effect on the position, but if a future implementation
|
||||
considers the fallback font in the position, this test may need to
|
||||
be modified to accommodate.
|
||||
-->
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: "MarkA";
|
||||
src: url(../fonts/markA.ttf);
|
||||
}
|
||||
input {
|
||||
font-family: "MarkA", sans-serif;
|
||||
font-size: 32px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input size="2" value="AAAAAAAA1">
|
||||
</body>
|
||||
</html>
|
||||
11
layout/reftests/forms/input/text/bounds-1-ref.html
Normal file
11
layout/reftests/forms/input/text/bounds-1-ref.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference for bug 806583 test</title>
|
||||
<style>
|
||||
body { background: blue }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
22
layout/reftests/forms/input/text/bounds-1.html
Normal file
22
layout/reftests/forms/input/text/bounds-1.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test for bug 806583</title>
|
||||
<style>
|
||||
body, div { background: blue }
|
||||
div { position: fixed; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input id="input">
|
||||
<div id="cover"/>
|
||||
<script>
|
||||
var rect = document.getElementById("input").getBoundingClientRect();
|
||||
var cover = document.getElementById("cover");
|
||||
cover.style.left = rect.left + "px";
|
||||
cover.style.top = rect.top + "px";
|
||||
cover.style.width = rect.width + "px";
|
||||
cover.style.height = rect.height + "px";
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
28
layout/reftests/forms/input/text/centering-1-ref.xul
Normal file
28
layout/reftests/forms/input/text/centering-1-ref.xul
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0"?>
|
||||
<window title="Text input text centering reference"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<html:style type="text/css">
|
||||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(../fonts/Ahem.ttf);
|
||||
}
|
||||
hbox {
|
||||
height: 128px;
|
||||
background-color: white;
|
||||
}
|
||||
input {
|
||||
height: 64px;
|
||||
background-color: white;
|
||||
border: none;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-family: "Ahem", sans-serif;
|
||||
font-size: 32px;
|
||||
}
|
||||
</html:style>
|
||||
|
||||
<hbox align="center">
|
||||
<html:input value="Ahem"/>
|
||||
</hbox>
|
||||
</window>
|
||||
39
layout/reftests/forms/input/text/centering-1.xul
Normal file
39
layout/reftests/forms/input/text/centering-1.xul
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0"?>
|
||||
<window title="Text input text centering test"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<!--
|
||||
|
||||
There is no spec that says where text within an html text input element
|
||||
should be placed, but some sort of centering reduces the likelihood or
|
||||
extent of clipping.
|
||||
|
||||
This test uses a font where every character used has an ascent and
|
||||
descent equal to typographical ascent of the font. This makes it
|
||||
unlikely that using a different concept of centering will change the
|
||||
results of this test.
|
||||
|
||||
-->
|
||||
<html:style type="text/css">
|
||||
@font-face {
|
||||
font-family: "Ahem";
|
||||
src: url(../fonts/Ahem.ttf);
|
||||
}
|
||||
hbox {
|
||||
height: 128px;
|
||||
background-color: white;
|
||||
}
|
||||
input {
|
||||
background-color: white;
|
||||
border: none;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-family: "Ahem", sans-serif;
|
||||
font-size: 32px;
|
||||
}
|
||||
</html:style>
|
||||
|
||||
<hbox align="stretch">
|
||||
<html:input value="Ahem"/>
|
||||
</hbox>
|
||||
</window>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/"?>
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<hbox align="stretch">
|
||||
<box style="height: 5em"/>
|
||||
<html:input value="YO"/>
|
||||
</hbox>
|
||||
</window>
|
||||
23
layout/reftests/forms/input/text/dynamic-height-1.xul
Normal file
23
layout/reftests/forms/input/text/dynamic-height-1.xul
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/"?>
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
onload="onLoad();">
|
||||
<script type="application/javascript">
|
||||
<![CDATA[
|
||||
function onLoad()
|
||||
{
|
||||
var adjust = document.getElementById("adjust");
|
||||
flush();
|
||||
adjust.style.height = "5em";
|
||||
}
|
||||
|
||||
function flush() { document.documentElement.getBoundingClientRect(); }
|
||||
|
||||
]]>
|
||||
</script>
|
||||
<hbox align="stretch">
|
||||
<box id="adjust"/>
|
||||
<html:input id="input" value="YO"/>
|
||||
</hbox>
|
||||
</window>
|
||||
12
layout/reftests/forms/input/text/intrinsic-size-ref.html
Normal file
12
layout/reftests/forms/input/text/intrinsic-size-ref.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Intrinsic Size Test Reference</title>
|
||||
<style>input, textarea { border-radius:0; background:none; border:none; }</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<span style="border:2px solid black; padding-left:200px"><input style="background-color:transparent; border:none; font-family:monospace"/></span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
12
layout/reftests/forms/input/text/intrinsic-size.html
Normal file
12
layout/reftests/forms/input/text/intrinsic-size.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Intrinsic Size Test</title>
|
||||
<style>input, textarea { border-radius:0; background:none; border:none; }</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<span style="border:2px solid black"><input style="background-color:transparent; border:none; font-family:monospace; padding-left:201px"/></span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
7
layout/reftests/forms/input/text/line-height-0.5.html
Normal file
7
layout/reftests/forms/input/text/line-height-0.5.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
|
||||
input { line-height: 0.5 }
|
||||
|
||||
</style>
|
||||
<input type="text" value="text input" size="20">
|
||||
7
layout/reftests/forms/input/text/line-height-1.0.html
Normal file
7
layout/reftests/forms/input/text/line-height-1.0.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
|
||||
input { line-height: 1.0 }
|
||||
|
||||
</style>
|
||||
<input type="text" value="text input" size="20">
|
||||
7
layout/reftests/forms/input/text/line-height-1.5.html
Normal file
7
layout/reftests/forms/input/text/line-height-1.5.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
|
||||
input { line-height: 1.5 }
|
||||
|
||||
</style>
|
||||
<input type="text" value="text input" size="20">
|
||||
16
layout/reftests/forms/input/text/reftest-stylo.list
Normal file
16
layout/reftests/forms/input/text/reftest-stylo.list
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
|
||||
== bounds-1.html bounds-1.html
|
||||
fuzzy-if(asyncPan&&!layersGPUAccelerated,121,84) == size-1.html size-1.html
|
||||
skip-if(B2G||Mulet) == size-2.html size-2.html
|
||||
# Initial mulet triage: parity with B2G/B2G Desktop
|
||||
HTTP(..) == baseline-1.html baseline-1.html
|
||||
skip-if((B2G&&browserIsRemote)||Mulet) HTTP(..) == centering-1.xul centering-1.xul
|
||||
# bug 974780
|
||||
# Initial mulet triage: parity with B2G/B2G Desktop
|
||||
skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-height-1.xul dynamic-height-1.xul
|
||||
# bug 974780
|
||||
# Initial mulet triage: parity with B2G/B2G Desktop
|
||||
fuzzy-if(skiaContent,1,500) needs-focus == select.html select.html
|
||||
== intrinsic-size.html intrinsic-size.html
|
||||
== line-height-0.5.html line-height-0.5.html
|
||||
== line-height-1.5.html line-height-1.5.html
|
||||
10
layout/reftests/forms/input/text/reftest.list
Normal file
10
layout/reftests/forms/input/text/reftest.list
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
== bounds-1.html bounds-1-ref.html
|
||||
fuzzy-if(asyncPan&&!layersGPUAccelerated,140,111) == size-1.html size-1-ref.html
|
||||
== size-2.html size-2-ref.html
|
||||
HTTP(..) == baseline-1.html baseline-1-ref.html
|
||||
HTTP(..) == centering-1.xul centering-1-ref.xul
|
||||
== dynamic-height-1.xul dynamic-height-1-ref.xul
|
||||
fuzzy-if(skiaContent,1,500) needs-focus == select.html select-ref.html
|
||||
== intrinsic-size.html intrinsic-size-ref.html
|
||||
== line-height-0.5.html line-height-1.0.html
|
||||
!= line-height-1.5.html line-height-1.0.html
|
||||
18
layout/reftests/forms/input/text/select-ref.html
Normal file
18
layout/reftests/forms/input/text/select-ref.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
function finishTest() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
function runTest() {
|
||||
var field = document.getElementById('field');
|
||||
field.focus();
|
||||
field.select();
|
||||
setTimeout(finishTest, 0);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="runTest()">
|
||||
<input id="field" type="text" value="1234">
|
||||
</body>
|
||||
</html>
|
||||
21
layout/reftests/forms/input/text/select.html
Normal file
21
layout/reftests/forms/input/text/select.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
function finishTest() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
function runTest() {
|
||||
var field = document.getElementById('field');
|
||||
field.focus();
|
||||
field.disabled = true;
|
||||
field.setSelectionRange(0, 4);
|
||||
field.disabled = false;
|
||||
field.select();
|
||||
setTimeout(finishTest, 0);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="runTest()">
|
||||
<input id="field" type="text" value="1234">
|
||||
</body>
|
||||
</html>
|
||||
3
layout/reftests/forms/input/text/size-1-ref.html
Normal file
3
layout/reftests/forms/input/text/size-1-ref.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<html lang="en">
|
||||
<input size="4" value="1234" style="font-family: monospace">
|
||||
</html>
|
||||
3
layout/reftests/forms/input/text/size-1.html
Normal file
3
layout/reftests/forms/input/text/size-1.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<html lang="en">
|
||||
<input size="4" value="1234|6" style="font-family: monospace">
|
||||
</html>
|
||||
5
layout/reftests/forms/input/text/size-2-ref.html
Normal file
5
layout/reftests/forms/input/text/size-2-ref.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<html lang="en">
|
||||
<body style="background-color:white;">
|
||||
<input size="40" value="1234" style="background-color:white; color:black; font-family: monospace; border: none">
|
||||
</body>
|
||||
</html>
|
||||
5
layout/reftests/forms/input/text/size-2.html
Normal file
5
layout/reftests/forms/input/text/size-2.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<html lang="en">
|
||||
<body style="background-color:white;">
|
||||
<input size="4" value="1234" style="background-color:white; color:black; font-family: monospace; border: none">
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue