Bug 1679107 [wpt PR 26632] - Fieldset NG: block-size of the anonymous content box should not be larger than the max-block-size of the FIELDSET, a=testonly

Automatic update from web-platform-tests
Fieldset NG: block-size of the anonymous content box should not be
larger than the max-block-size of the FIELDSET

If the intrinsic block size of the anonymous content box is larger than
the max-block-size, the block size should be shrunk to the
max-block-size.

Bug: 1151858
Change-Id: I3132d16d835dffc4ca0ab732ca1b5b3c566013e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556877
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831327}

--

wpt-commits: 096343c501df79c190278a0bf06e94d34a27806f
wpt-pr: 26632
This commit is contained in:
Kent Tamura 2020-11-26 21:32:55 +00:00 коммит произвёл moz-wptsync-bot
Родитель 8562314f32
Коммит 6bdd7b3934
2 изменённых файлов: 70 добавлений и 0 удалений

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

@ -0,0 +1,34 @@
<!DOCTYPE html>
<style>
.fieldset {
border: 2px solid gray;
margin: 1em;
padding: 0;
width: 20em;
}
.f1 {
overflow: auto;
max-height: 3em;
}
.f2 {
max-height: 0;
}
</style>
<div class="fieldset f1">
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
</div>
<div class="fieldset f1">
<div>foo</div>
</div>
<div class="fieldset f2">
<div>foo</div>
</div>

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

@ -0,0 +1,36 @@
<!DOCTYPE html>
<link rel="help" href="http://crbug.com/1151858">
<link rel="match" href="fieldset-max-block-size-ref.html">
<style>
fieldset {
border: 2px solid gray;
margin: 1em;
padding: 0;
width: 20em;
}
.f1 {
overflow: auto;
max-height: 3em;
}
.f2 {
max-height: 0;
}
</style>
<fieldset class="f1">
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
</fieldset>
<fieldset class="f1">
<div>foo</div>
</fieldset>
<fieldset class="f2">
<div>foo</div>
</fieldset>