Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/text-overflow-string-in-textarea-field-sizing-content.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>text-overflow: <string> in a textarea with field-sizing: content and max-width</title>
<link rel="author" title="Minseong Kim" href="jja08111@gmail.com">
<link rel="mismatch" href="text-overflow-string-in-textarea-field-sizing-content-notref.html">
<meta name="assert" content="A textarea sized by field-sizing: content whose intrinsic width is clamped by max-width truncates the overflowing line with the text-overflow string.">
<style>
textarea {
field-sizing: content;
max-width: 100px;
white-space: nowrap;
text-overflow: "[...]";
}
</style>
<textarea>aaaaaaaaaaaaaaaa</textarea>