Contact emailsfuth...@chromium.org

ExplainerNone

Specificationhttps://www.w3.org/TR/css-values-4/#lh

Summary

Support for expressing CSS lengths relative to the line-height

Motivation

There is a wish/need to use the lh unit to size textareas to fit a given
number of lines of text. See [1]. [1]
https://github.com/w3c/csswg-drafts/issues/7542


Blink componentBlink>CSS
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3ECSS>
TAG review statusNot applicable

Risks


Interoperability and Compatibility



*Gecko*: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1310170)

*WebKit*: In development (https://bugs.webkit.org/show_bug.cgi?id=195180)
Implemented behind a flag

*Web developers*: No signals

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?



Debuggability

The new unit should be automatically supported by devtools. No need for any
changes.


Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes

https://wpt.fyi/css/css-values/lh-rlh-on-root-001.html
https://wpt.fyi/css/css-values/lh-unit-001.html
https://wpt.fyi/css/css-values/lh-unit-002.html
https://wpt.fyi/css/css-values/lh-unit-003.html
https://wpt.fyi/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssUnitValue.html
https://wpt.fyi/css/css-properties-values-api/unit-cycles.html
https://wpt.fyi/css/css-values/animations/line-height-lh-transition.html
https://wpt.fyi/css/css-properties-values-api/registered-property-computation.html
https://wpt.fyi/css/css-contain/container-queries/font-relative-units-dynamic.html
https://wpt.fyi/css/css-contain/container-queries/font-relative-units.html

Flag name#enable-experimental-web-platform-features / CSSLhUnit (Blink)

Requires code in //chrome?False

Tracking bughttps://crbug.com/937104

Estimated milestones
DevTrial on desktop 108
DevTrial on Android 108

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/4998371945742336

Links to previous Intent discussionsIntent to prototype:
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSsKWD6%3DEvmbzVe7f1o4cniTDcRzXEqWnvHLAbCRxnfgQ%40mail.gmail.com
<https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSsKWD6=evmbzve7f1o4cnitdcrzxeqwnvhlabcrxn...@mail.gmail.com>


This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
Rune Lillesveen

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeRke__t9Piz-JRuy0qW_RNNao8CNS32F0XM_%3DcRYj6FYw%40mail.gmail.com.

Reply via email to