textarea 的 auto-height 在 iPhone 上是怎么计算高度的?文字的 line-height 我设定的 40rpx,在我的手机上(iPhone 16 pro)像素是 402 / 750 * 40 = 21.44px,那么 textarea 在一行的时候应该是 21 或者 22px 才是合理的吧。
下面的代码在 WebView 渲染引擎下,真机调试的 <text> 的高度是 22px,<textarea> 的高度是 18px;在 Skyline 渲染引擎下,真机调试的 <text> 和 <textarea> 的高度均为 21px。
<text class="text">1</text>
<textarea
class="text"
placeholder="测试"
placeholder-class="text text__placeholder"
auto-height
disable-default-padding
></textarea>
复现方式:填入 AppId,真机调试,渲染方式使用 WebView 渲染。
