Skip to content

Commit e1c9e23

Browse files
tkent-googlemoz-wptsync-bot
authored andcommitted
Bug 1857373 [wpt PR 42379] - form-sizing: Change the keywords: auto|normal -> fixed|content, a=testonly
Automatic update from web-platform-tests form-sizing: Change the keywords: auto|normal -> fixed|content See w3c/csswg-drafts#7542 (comment) Bug: 1447058 Change-Id: I21226d8216ae42254d4dc50d17e173884afd4e87 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4918050 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1206161} -- wpt-commits: 8a78be2625618f180b71e6b79d540637ac5c3866 wpt-pr: 42379
1 parent 2b9243c commit e1c9e23

7 files changed

+18
-16
lines changed

testing/web-platform/tests/css/css-ui/parsing/form-sizing-computed.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<body>
99
<div id="target"></div>
1010
<script>
11-
test_computed_value('form-sizing', 'auto');
12-
test_computed_value('form-sizing', 'normal');
11+
test_computed_value('form-sizing', 'fixed');
12+
test_computed_value('form-sizing', 'content');
1313
</script>
1414
</body>

testing/web-platform/tests/css/css-ui/parsing/form-sizing-invalid.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<script>
1010
test_invalid_value('form-sizing', 'none');
1111
test_invalid_value('form-sizing', 'legacy');
12+
test_invalid_value('form-sizing', 'auto');
13+
test_invalid_value('form-sizing', 'normal');
1214
test_invalid_value('form-sizing', 'normal auto');
1315
test_invalid_value('form-sizing', '100%');
1416
test_invalid_value('form-sizing', '10px');

testing/web-platform/tests/css/css-ui/parsing/form-sizing-valid.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="/css/support/parsing-testcommon.js"></script>
88
<body>
99
<script>
10-
test_valid_value('form-sizing', 'auto');
11-
test_valid_value('form-sizing', 'normal');
10+
test_valid_value('form-sizing', 'fixed');
11+
test_valid_value('form-sizing', 'content');
1212
</script>
1313
</body>

testing/web-platform/tests/html/rendering/widgets/form-sizing-input-number.tentative.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<script src="/resources/testharnessreport.js"></script>
55
<style>
66
.disable-default {
7-
form-sizing: normal;
7+
form-sizing: content;
88
}
99

1010
.small-placeholder {
@@ -51,7 +51,7 @@
5151
test(() => {
5252
let pair = addElements(`<input type=${type}>`);
5353
// A text <input> has approximately 20ch width by default.
54-
// A text <input> with form-sizing:normal must be shorter than the default.
54+
// A text <input> with form-sizing:content must be shorter than the default.
5555
assert_less_than(pair.content.offsetWidth, pair.fixed.offsetWidth);
5656
assert_equals(pair.content.offsetHeight, pair.fixed.offsetHeight);
5757

testing/web-platform/tests/html/rendering/widgets/form-sizing-input-text.tentative.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<script src="/resources/testharnessreport.js"></script>
55
<style>
66
.disable-default {
7-
form-sizing: normal;
7+
form-sizing: content;
88
}
99

1010
.small-placeholder {
@@ -50,7 +50,7 @@
5050
test(() => {
5151
let pair = addElements(`<input type=${type}>`);
5252
// A text <input> has approximately 20ch width by default.
53-
// A text <input> with form-sizing:normal must be shorter than the default.
53+
// A text <input> with form-sizing:content must be shorter than the default.
5454
assert_less_than(pair.content.offsetWidth, pair.fixed.offsetWidth);
5555
assert_equals(pair.content.offsetHeight, pair.fixed.offsetHeight);
5656

testing/web-platform/tests/html/rendering/widgets/form-sizing-select.tentative.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<body>
66
<style>
77
.disable-default {
8-
form-sizing: normal;
8+
form-sizing: content;
99
}
1010
</style>
1111
<div id="container"></div>
@@ -18,7 +18,7 @@
1818
test(() => {
1919
const s = '<select>><option>1<option>quick brown<option>fox</select>';
2020
container.innerHTML = s + s;
21-
container.lastElementChild.style.formSizing = 'normal';
21+
container.lastElementChild.style.formSizing = 'content';
2222
const widthForContent1 = container.lastElementChild.offsetWidth;
2323
assert_greater_than(container.firstElementChild.offsetWidth,
2424
widthForContent1);
@@ -31,9 +31,9 @@
3131
container.innerHTML = '<select><option>foo<option>quick brown fox</select>';
3232
const select = container.firstElementChild;
3333
const initialWidth = select.offsetWidth;
34-
select.style.formSizing = 'normal';
34+
select.style.formSizing = 'content';
3535
assert_less_than(select.offsetWidth, initialWidth);
36-
select.style.formSizing = 'auto';
36+
select.style.formSizing = 'fixed';
3737
assert_equals(select.offsetWidth, initialWidth);
3838
}, 'dropdown: Change the form-sizing value dynamically');
3939

@@ -76,9 +76,9 @@
7676
container.innerHTML = '<select multiple><option>foo<option>quick brown fox</select>';
7777
const select = container.firstElementChild;
7878
const initialHeight = select.offsetHeight;
79-
select.style.formSizing = 'normal';
79+
select.style.formSizing = 'content';
8080
assert_less_than(select.offsetHeight, initialHeight);
81-
select.style.formSizing = 'auto';
81+
select.style.formSizing = 'fixed';
8282
assert_equals(select.offsetHeight, initialHeight);
8383
}, 'listbox: Change the form-sizing value dynamically');
8484

testing/web-platform/tests/html/rendering/widgets/form-sizing-textarea.tentative.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<script src="/resources/testharnessreport.js"></script>
55
<style>
66
.disable-default {
7-
form-sizing: normal;
7+
form-sizing: content;
88
}
99

1010
.small-placeholder {
@@ -49,7 +49,7 @@
4949
test(() => {
5050
let pair = addElements('<textarea></textarea>');
5151
// Historically a <textarea> has approximately 20ch x 2lh size by default.
52-
// A <textarea> with form-sizing:normal must be samller than the default.
52+
// A <textarea> with form-sizing:content must be samller than the default.
5353
assert_less_than(pair.content.offsetWidth, pair.fixed.offsetWidth);
5454
assert_less_than(pair.content.offsetHeight, pair.fixed.offsetHeight);
5555

0 commit comments

Comments
 (0)