Intent to Deprecate and Remove: -webkit-box-flex-group, -webkit-box-lines, % values of -webkit-line-clamp

已查看 147 次
跳至第一个未读帖子

ikilp...@chromium.org

未读,
2018年3月5日 下午4:48:522018/3/5
收件人 blink-dev

Primary eng (and PM) emails

ikilp...@chromium.org


Summary

This intent to remove covers 3 different properties from the -webkit-box display type.


-webkit-box-flex-group - This property has virtually zero usage based on the UseCounter on stable. There is still -webkit-box-flex which is used widely.


% values of -webkit-line-clamp - Fun fact! Most people use -webkit-line-clamp with a single number, this has relatively high usage. It can actually accept % values as well. There is interest in finding a standards based solution to the number values usecase, but we haven’t seen demand for the %-based values. Based on the UseCounter, this has virtually zero usage.


-webkit-box-lines - This property was never fully implemented. It was originally intended such that a “vertical”/”horizontal” -webkit-box can have multiple rows/columns. The only effect it has today is to switch to a broken intrinsic size calculation. (It will use the vertical intrinsic size calculation for a horizontal -webkit-box, ¯\_(ツ)_/¯). We think that this has slightly higher usage as people think it's necessary for using -webkit-line-clamp.


Motivation

We desire to eventually move the -webkit-box implementation over to the flex implementation with a few switches. This is what Firefox and Edge do today. Removing these properties allows us to incrementally move towards this.


Interoperability and Compatibility Risk

We think this has low interop and compat risk, due to the low usage.


Edge: Edge does have an implementation/flexbox-mapping of -webkit-box, but these properties/values aren’t supported.

Firefox: Firefox does have an implementation/flexbox-mapping of -webkit-box, but these properties/values aren’t supported.

Safari: Supported.


Please include links where possible.


Alternative implementation suggestion for web developers

Unlike -webkit-line-clamp which has high usage, these properties were never used widely by web developers.


Usage information from UseCounter

See above.


OWP launch tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=818691


Entry on the feature dashboard

No entry as this shouldn’t have any impact on web developers.


Requesting approval to remove too?

Yes - the plan is the remove immediately. We don’t think the deprecation will add value given the low usage of the properties.


Rick Byers

未读,
2018年3月5日 下午8:40:222018/3/5
收件人 Ian Kilpatrick、blink-dev
LGTM1

Is it worth adding negative test cases to WPT somewhere so that it will be clear WebKit is now an outlier in supporting these?

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/e324609a-f30d-4afd-b08f-5b19d0c6841c%40chromium.org.

PhistucK

未读,
2018年3月6日 上午2:55:272018/3/6
收件人 Ian Kilpatrick、blink-dev
Feature dashboard entries feed the beta blog posts, which mention removals, so I think it should have an entry.


PhistucK

--
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+unsubscribe@chromium.org.

Ojan Vafai

未读,
2018年3月6日 上午11:31:022018/3/6
收件人 PhistucK、Ian Kilpatrick、blink-dev
Lgtm2

Agree this should have chromestatus entry. 

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.

TAMURA, Kent

未读,
2018年3月8日 下午7:06:472018/3/8
收件人 Ojan Vafai、PhistucK、Ian Kilpatrick、blink-dev
LGTM3.


Lgtm2

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABc02_%2BUDOgurhFisu%3D5o4ta0Y-UCHM5RcxBti3xgyYpXNjDoA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.



--
TAMURA Kent
Software Engineer, Google


Florian Rivoal

未读,
2018年3月8日 下午7:58:292018/3/8
收件人 TAMURA, Kent、Ojan Vafai、PhistucK、Ian Kilpatrick、blink-dev
Hi,

No issue with this at all.

I just wanted to let you know that Fantasai and I just drafted a tentative solution for a standard version of (-webkit-)line-clamp. I guess this should be of interest to people working on this. 


Feedback about the design, as well as about web compat constraints very much welcome.

—Florian

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqHe%3DOHWaQq4o_U1bFq5wvun68gEGtpGy6iLOYRSLC1G7g%40mail.gmail.com.

Ian Kilpatrick

未读,
2018年3月8日 下午8:23:272018/3/8
收件人 Florian Rivoal、TAMURA, Kent、Ojan Vafai、PhistucK、blink-dev
回复全部
回复作者
转发
0 个新帖子