зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1134849 - Reftest for orthogonal inline elements. r=dbaron
This commit is contained in:
Родитель
9b8fde7ace
Коммит
cd845df31d
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Test for bug 1134849</title>
|
||||
<style>
|
||||
div { display: inline-block; vertical-align: top;
|
||||
inline-size: 12em; block-size: 15em;
|
||||
border: solid silver; margin: 10px; }
|
||||
p { margin: 5px; }
|
||||
.h { writing-mode: horizontal-tb; }
|
||||
.v-lr { writing-mode: vertical-lr; }
|
||||
.v-rl { writing-mode: vertical-rl; }
|
||||
p > span, p > b { display: inline-block; }
|
||||
p > span > b { display: inline; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="h">
|
||||
<p>The <span class="v-lr">quick <b>brown</b> fox</span> jumps over<br>the <b class="v-rl">lazy</b> dog.</p>
|
||||
</div>
|
||||
<div class="v-lr">
|
||||
<p>The <span class="h">quick <b>brown</b> fox</span> jumps over<br>the <b class="h">lazy</b> dog.</p>
|
||||
</div>
|
||||
<div class="v-rl">
|
||||
<p>The <span class="h">quick <b>brown</b> fox</span> jumps over<br>the <b class="h">lazy</b> dog.</p>
|
||||
</div>
|
||||
<br>
|
||||
inline-block
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Test for bug 1134849</title>
|
||||
<style>
|
||||
div { display: inline-block; vertical-align: top;
|
||||
inline-size: 12em; block-size: 15em;
|
||||
border: solid silver; margin: 10px; }
|
||||
p { margin: 5px; }
|
||||
.h { writing-mode: horizontal-tb; }
|
||||
.v-lr { writing-mode: vertical-lr; }
|
||||
.v-rl { writing-mode: vertical-rl; }
|
||||
span, b { display: inline; } /* but because they're orthogonal, this will compute to inline-block */
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="h">
|
||||
<p>The <span class="v-lr" id="test">quick <b>brown</b> fox</span> jumps over<br>the <b class="v-rl">lazy</b> dog.</p>
|
||||
</div>
|
||||
<div class="v-lr">
|
||||
<p>The <span class="h">quick <b>brown</b> fox</span> jumps over<br>the <b class="h">lazy</b> dog.</p>
|
||||
</div>
|
||||
<div class="v-rl">
|
||||
<p>The <span class="h">quick <b>brown</b> fox</span> jumps over<br>the <b class="h">lazy</b> dog.</p>
|
||||
</div>
|
||||
<br>
|
||||
<script>
|
||||
/* this should append "inline-block" to the document, not "inline" */
|
||||
document.write(window.getComputedStyle(document.querySelector("#test")).display);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -105,6 +105,7 @@ HTTP(..) == 1127488-align-left-vertical-lr-ltr.html 1127488-align-top-left-ref.h
|
|||
HTTP(..) == 1127488-align-right-vertical-lr-ltr.html 1127488-align-bottom-left-ref.html
|
||||
== 1131013-vertical-bidi.html 1131013-vertical-bidi-ref.html
|
||||
== 1134744-radio-checkbox-baseline-1.html 1134744-radio-checkbox-baseline-1-ref.html
|
||||
== 1134849-orthogonal-inline.html 1134849-orthogonal-inline-ref.html
|
||||
fails-if(B2G||Mulet) == 1135361-ruby-justify-1.html 1135361-ruby-justify-1-ref.html # bug 1136067 # Initial mulet triage: parity with B2G/B2G Desktop
|
||||
== 1136557-1-nested-spans.html 1136557-1-nested-spans-ref.html
|
||||
fuzzy-if(winWidget,255,69) == 1136557-2-nested-spans.html 1136557-2-nested-spans-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче