Bug 1147834: tests for overconstrained relative positioning, r=jfkthame

This commit is contained in:
Simon Montagu 2015-06-04 02:07:59 -07:00
Родитель 7f1b0db94c
Коммит 2e16faf502
11 изменённых файлов: 300 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
}
#inner1 {
position: relative;
left: 0px;
top: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
}
#inner1 {
position: relative;
left: 40px;
top: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
writing-mode: horizontal-tb;
direction: ltr;
}
#inner1 {
position: relative;
left: 40px;
right: 40px;
top: 20px;
bottom: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
writing-mode: horizontal-tb;
direction: rtl;
}
#inner1 {
position: relative;
left: 40px;
right: 40px;
top: 20px;
bottom: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
writing-mode: vertical-lr;
direction: ltr;
}
#inner1 {
position: relative;
left: 40px;
right: 40px;
top: 20px;
bottom: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
writing-mode: vertical-lr;
direction: rtl;
}
#inner1 {
position: relative;
left: 40px;
right: 40px;
top: 20px;
bottom: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
writing-mode: vertical-rl;
direction: ltr;
}
#inner1 {
position: relative;
left: 40px;
right: 40px;
top: 20px;
bottom: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
writing-mode: vertical-rl;
direction: rtl;
}
#inner1 {
position: relative;
left: 40px;
right: 40px;
top: 20px;
bottom: 20px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
}
#inner1 {
position: relative;
left: 0px;
top: 0px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Overconstrained relative positioning</title>
<style>
.test {
border: 1px solid black;
height: 200px;
width: 400px;
}
#inner1 {
position: relative;
left: 40px;
top: 0px;
height: 180px;
width: 360px;
background-color: teal;
}
</style>
</head>
<body>
<div class="test">
<div id="inner1"></div>
</div>
</body>
</html>

Просмотреть файл

@ -127,6 +127,12 @@ test-pref(dom.meta-viewport.enabled,true) test-pref(font.size.inflation.emPerLin
== 1144501-1a-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-ref.html
== 1144501-1b-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-ref.html
== 1147834-relative-overconstrained-horizontal-tb-ltr.html 1147834-bottom-right-ref.html
== 1147834-relative-overconstrained-horizontal-tb-rtl.html 1147834-bottom-left-ref.html
== 1147834-relative-overconstrained-vertical-lr-ltr.html 1147834-bottom-right-ref.html
fails == 1147834-relative-overconstrained-vertical-lr-rtl.html 1147834-top-right-ref.html # bug 1131451
== 1147834-relative-overconstrained-vertical-rl-ltr.html 1147834-bottom-left-ref.html
fails == 1147834-relative-overconstrained-vertical-rl-rtl.html 1147834-top-left-ref.html # bug 1131451
== 1151993-1-orthogonal-block-size.html 1151993-1-orthogonal-block-size-ref.html
== 1152941-1-orthogonal-blocksize-overflow.html 1152941-1-orthogonal-blocksize-overflow-ref.html
== 1156021-text-indent-percent.html 1156021-text-indent-percent-ref.html