зеркало из https://github.com/mozilla/pjs.git
display:block legends should still shrink-wrap. Bug 428423, tests by dholbert,
r=dholbert, sr=dbaron, a=beltzner
This commit is contained in:
Родитель
8720277f4b
Коммит
39af4ec835
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<head><style>
|
||||
.float { float: left } /* Just using for shrink-wrapping */
|
||||
.orange { background: orange }
|
||||
</style></head>
|
||||
<body>
|
||||
The orange box should only be as wide as its text.
|
||||
<div class="float orange">foo</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head><style>
|
||||
fieldset, legend { margin: 0px; padding: 0px; }
|
||||
fieldset {
|
||||
width: 20em;
|
||||
text-align: right;
|
||||
border: 0px;
|
||||
}
|
||||
legend { display: block; }
|
||||
.orange { background: orange }
|
||||
</style></head>
|
||||
<body>
|
||||
The orange box should only be as wide as its text.
|
||||
<fieldset>
|
||||
<legend class="orange">foo</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head><style>
|
||||
fieldset, legend { margin: 0px; padding: 0px; }
|
||||
fieldset {
|
||||
width: 20em;
|
||||
text-align: right;
|
||||
border: 0px;
|
||||
}
|
||||
.orange { background: orange }
|
||||
</style></head>
|
||||
<body>
|
||||
The orange box should only be as wide as its text.
|
||||
<fieldset>
|
||||
<legend class="orange">foo</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -805,4 +805,5 @@ fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 424074-1-ref2.xul 424074-1-ref3.xul
|
|||
== 427129-table-caption.html 427129-table-caption-ref.html
|
||||
== 427370-1.html 427370-1-ref.html
|
||||
== 427730-1.html 427730-1-ref.html
|
||||
|
||||
== 428423-1a.html 428423-1-ref.html
|
||||
== 428423-1b.html 428423-1-ref.html
|
||||
|
|
|
@ -55,7 +55,7 @@ legend {
|
|||
border: none;
|
||||
position: static ! important;
|
||||
float: none ! important;
|
||||
width: auto ! important;
|
||||
width: -moz-fit-content ! important;
|
||||
min-width: 0 ! important;
|
||||
max-width: none ! important;
|
||||
height: auto ! important;
|
||||
|
|
Загрузка…
Ссылка в новой задаче