mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests Make input element display-inside always flow-root Signed-off-by: Kenzie Raditya Tirtarahardja <[email protected]> -- wpt-commits: aa0081aeb91d3890fbc8e21ccda3ab61ccd099fa wpt-pr: 51376
20 lines
761 B
HTML
20 lines
761 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>text control with `display: inline` must not have 0 client width</title>
|
|
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#form-controls">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
|
|
<input id="input" style="display: inline;">
|
|
<textarea id="textarea" style="display: inline;"></textarea>
|
|
|
|
<script>
|
|
test(() => {
|
|
assert_greater_than(document.querySelector("#input").clientWidth, 0);
|
|
}, "Input with `display: inline` should have positive client width");
|
|
|
|
test(() => {
|
|
assert_greater_than(document.querySelector("#textarea").clientWidth, 0);
|
|
}, "Textarea with `display: inline` should have positive client width");
|
|
</script>
|