Bug 1654093 [wpt PR 24670] - [css-sizing-3] Add tests for input/textarea max-content sizing., a=testonly

Automatic update from web-platform-tests
[css-sizing-3] Add tests for input/textarea max-content sizing. https://github.com/w3c/csswg-drafts/issues/2141 and https://github.com/w3c/csswg-drafts/issues/2663

--

wpt-commits: 8c40993032c2ba6256d79b064d5f22b73c3e0b5d
wpt-pr: 24670
This commit is contained in:
fantasai 2020-07-22 20:03:58 +00:00 коммит произвёл moz-wptsync-bot
Родитель 9c23b8f8cc
Коммит 0596305bc9
2 изменённых файлов: 45 добавлений и 0 удалений

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

@ -0,0 +1,22 @@
<!DOCTYPE html>
<title>Reference: max-content sizes of INPUT and TEXTAREA</title>
<style>
input, textarea { font: 20px monospace; white-space: pre; }
</style>
<p><input value="sample text">
<p><textarea class="h" rows=7 cols=12>sample text 1 sample text 1
sample text 2 sample text 2
sample text 3 sample text 3
sample text 4 sample text 4
sample text 5 sample text 5
sample text 6 sample text 6
sample text 7 sample text 7</textarea>
<p><input value="sample text" style="width: 11ch">
<p><textarea class="h" rows=3 cols=27>sample text 1 sample text 1
sample text 2 sample text 2
sample text 3 sample text 3</textarea>

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

@ -0,0 +1,23 @@
<!DOCTYPE html>
<title>Test: max-content sizes of INPUT and TEXTAREA</title>
<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#intrinsic-sizes">
<link rel="match" href="max-content-input-001-ref.html">
<style>
input, textarea { font: 20px monospace; white-space: pre; }
</style>
<p><input style="height: max-content" value="sample text">
<p><textarea style="height: max-content" rows=3 cols=12>sample text 1 sample text 1
sample text 2 sample text 2
sample text 3 sample text 3
sample text 4 sample text 4
sample text 5 sample text 5
sample text 6 sample text 6
sample text 7 sample text 7</textarea>
<p><input value="sample text" style="width: max-content">
<p><textarea class="h" rows=3 cols=12 style="width: max-content">sample text 1 sample text 1
sample text 2 sample text 2
sample text 3 sample text 3</textarea>