Primary eng email
Summary
The offset-rotate property, with syntax '[ auto | reverse ] || <angle>', will no longer accept unitless '0' literals as angle values.
Offset shorthand values 'path(...) 0' and 'path(...) auto 0' will no longer be ambiguous.
Motivation
Allowing unitless 0 for both lengths and angles led to an ambiguity in the offset shorthand. This has been resolved by CSS forbidding unitless 0 angles in general, with two exceptions due to legacy content (transform, linear-gradient).
Interoperability and Compatibility Risk
Edge: offset-rotate not supported
Firefox: offset-rotate not supported
Safari: offset-rotate not supported
The offset properties currently have low usage, so risk is minimal.
Note that Blink currently also supports unitless 0 angles in the hue-rotate function for the CSS filter property. A use counter has recently been added; when M60 reaches stable we will receive data for either a new deprecation and removal discussion, or for a proposal to the CSS Working Group to support unitless zero angles in filter's hue-rotate as a third exception.
Alternative implementation suggestion for web developers
Web developers can use '0deg' instead of '0' when specifying angles in CSS.
Usage information from UseCounter
The offset properties are only having an effect when offset-path is not 'auto' 0.000%
offset-rotate has low usage. offset-rotate 0.017%
Many of these pages may be explicitly setting all properties to their initial values.
Use counters for unitless zero angles were added in M60:
offset-rotate (no data yet)
filter hue-rotate (no data yet)
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=728027
Entry on the feature dashboard
No entry, this is a small change.
Requesting approval to remove too?
Intend to show a deprecation warning, with support to be removed in M62.
With M62 we will pass the web platform test
/css/motion-1/parsing/offset-rotate-parsing-invalid.html
--
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/c1fdd38e-2c1c-4245-bc3d-c6bf56ffa77b%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAyiQQM1MeuqvNnOc23Vqo%2BPZiCcQhjDr2rinabgJzgjxDd3UA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYfj4B7ROh4wgG%3D70i56K-K5p5J7Kw2qCmmapa6K38J27A%40mail.gmail.com.