Skip to content

Commit a07e0a2

Browse files
committed
[css-sizing] Add the <textarea> auto-sizing behavior, per resolution in #2141. Closes #2141.
1 parent 6f526ed commit a07e0a2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

css-sizing-3/Overview.bs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -785,13 +785,15 @@ Intrinsic Sizes</h3>
785785
replacing the CSS2 “definition”,
786786
such as it is.
787787

788-
Note: The intrinsic sizing keywords might be re-used
789-
in a future level of this module
790-
to specify content-based sizes for replaced elements
791-
such as <{textarea}> and <{iframe}>
792-
whose ''height/auto'' size and intrinsic size contributions
793-
are currently arbitrarily fixed.
794-
See <a href="https://github.com/w3c/csswg-drafts/issues/1771">discussion</a>.
788+
When specified on the HTML <{textarea}> element,
789+
the ''width/min-content'' and ''width/max-content'' keywords
790+
are calculated as normal for a non-replaced [=block container=],
791+
treating its <l spec=html>[=raw value=]</l> as child [=CSS/text nodes=].
792+
793+
Note: See <a href="https://github.com/w3c/csswg-drafts/issues/1771">discussion about this functionality</a>.
794+
This might be extended to <{iframe}> or other content-containing replaced elements,
795+
but <{textarea}> is the major use-case
796+
and has the least additional complications.
795797

796798
<h3 id="intrinsic-contribution">
797799
Intrinsic Contributions</h3>

0 commit comments

Comments
 (0)