Risks
Interoperability and Compatibility
There should be no compatibility risk for parsing, as only previously invalid code would become allowed.
Serialization will need to be defined for 'x', as currently the CSS Typed OM spec only specifies 'dppx' and leaves out 'x'. According to CSS Values 4, 'x' should be the canonical type, but since 'dppx' is currently the canonical type for resolutions, matching this might result in breaking serialization per other browsers that haven't implemented the 'x' unit. This change proposes leaving serialization as-is for now.
Edge: No signals
Firefox: No signals
Safari: No signals
Web developers: No signals
Ergonomics
n/a
Activation
n/a
Debuggability
No changes to DevTools should be needed.
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?
No, but tests will be added through this change (currently only through media queries, but tests with the 'sizes' attribute can be added).
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5150549246738432
Requesting approval to ship?
Yes.
--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXZydeyZLBd851meeg40S9jRDcmXcHy8cUsqX0FwuBxBbfXMA%40mail.gmail.com.
Have you tried contacting the other vendors? Intent to ship usually asks for that...
The non-compliant serialization sounds problematic, you should probably have a conclusion about that, especially since the CSS Typed OM seems to be on its way to ship.
--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXZydcwWwXUHRkcirjMBfoFVG9wgXZe3VTxMHS9VHd6kJ55%2Bg%40mail.gmail.com.
On Tue, Jan 30, 2018 at 1:18 AM, PhistucK <phis...@gmail.com> wrote:Have you tried contacting the other vendors? Intent to ship usually asks for that...I was planning on filing bugs with the other browsers today, but this is a mostly minor bit of syntax (I believe the only places that Chrome takes a <resolution> type are in media queries and the sizes attribute, with webkit-image-set to follow).
The non-compliant serialization sounds problematic, you should probably have a conclusion about that, especially since the CSS Typed OM seems to be on its way to ship.I filed https://github.com/w3c/csswg-drafts/issues/2241 for that.
--
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+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXZydcwWwXUHRkcirjMBfoFVG9wgXZe3VTxMHS9VHd6kJ55%2Bg%40mail.gmail.com.
Thanks for working on this. Unprefixing image-set would be really great! :)On Tue, Jan 30, 2018 at 12:56 PM Chris Nardi <cna...@chromium.org> wrote:On Tue, Jan 30, 2018 at 1:18 AM, PhistucK <phis...@gmail.com> wrote:Have you tried contacting the other vendors? Intent to ship usually asks for that...I was planning on filing bugs with the other browsers today, but this is a mostly minor bit of syntax (I believe the only places that Chrome takes a <resolution> type are in media queries and the sizes attribute, with webkit-image-set to follow).Could you enumerate those places so that we can better assess the compatibility impact here?One example where I can think this can have a negative compatibility impact is for current content which contains e.g. `@media screen and (min-resolution: 2x) `.This MQ right now doesn't apply anywhere, but supporting the `x` resolution will make it applicable in Chromium, creating a potentially visible difference between different browsers for existing content.One way to tackle this is to enumerate all the places where we'd support such a unit and use HTTPArchive data to see if such content currently exists.Another possibility is to start wiring support for the unit, but only use that parsing support for UseCounters, to make sure this will have no impact at the moment.
On Fri, Feb 2, 2018 at 5:55 AM, Yoav Weiss <yo...@yoav.ws> wrote:Thanks for working on this. Unprefixing image-set would be really great! :)On Tue, Jan 30, 2018 at 12:56 PM Chris Nardi <cna...@chromium.org> wrote:On Tue, Jan 30, 2018 at 1:18 AM, PhistucK <phis...@gmail.com> wrote:Have you tried contacting the other vendors? Intent to ship usually asks for that...I was planning on filing bugs with the other browsers today, but this is a mostly minor bit of syntax (I believe the only places that Chrome takes a <resolution> type are in media queries and the sizes attribute, with webkit-image-set to follow).Could you enumerate those places so that we can better assess the compatibility impact here?One example where I can think this can have a negative compatibility impact is for current content which contains e.g. `@media screen and (min-resolution: 2x) `.This MQ right now doesn't apply anywhere, but supporting the `x` resolution will make it applicable in Chromium, creating a potentially visible difference between different browsers for existing content.One way to tackle this is to enumerate all the places where we'd support such a unit and use HTTPArchive data to see if such content currently exists.Another possibility is to start wiring support for the unit, but only use that parsing support for UseCounters, to make sure this will have no impact at the moment.The 3 places resolutions are accepted in media queries are for resolution, min-resolution, and max-resolution. The HTML sizes attribute would also be affected, as media query expressions are parsed within it.
--
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/CACj%3DBEgp%3DgV-PfVZcTwo4q_vOQ_f8EMy97zp2Ghq2Fs4mtmK%3Dw%40mail.gmail.com.
Hmm, sounds like resolving that before shipping this is important. What do you think the behavior should be? +Tab Atkins, WDYT?On Thu, Feb 22, 2018 at 1:55 AM Chris Nardi <cna...@chromium.org> wrote:Your interpretation is correct. If we were to be able to do HTTPArchive research, I expect that few authors would have specified 'x' as a unit of resolution, as no other browsers currently support this (and 'dppx' would have the exact same meaning).
The reasoning behind adding 'x' in the first place is because that's
how Safari shipped the resolution part of image-set() (rather than
using one of the existing resolution units, or asking us to add a new
pixel-focused one). For reasons I don't fully remember, the CSSWG
decided to add dppx instead of x, and I've been trying to make this
less awkward ever since.
Alternately, we could just drop this effort entirely, and accept that
x is just a weird legacy unit accepted solely in image-set(), and have
it serialize/reify as dppx.
We didn't remember to get it on the agenda for the f2f, but I'm opening an
issue in the GH repo right now.
The reason I set `x` as the "canonical unit" was because I figured
image-set() was the main place authors would see the values, and it made
the most sense to preserve the `x` there, as that's what Safari's current
behavior is anyway (since, in -webkit-image-set(), the `x` isn't a
<resolution>, it's just a random unit that is interpreted identically to
dppx...).
Do we have any actual compat concern with serializing computed-value
resolutions to `x` (rather than `dppx`), or is this just a defensive move
due to other browsers not yet supporting `x` in MQs either?
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/CACj%3DBEismi4Z2cKsO9S%3DNPuRkcYLHKBF5LZRkhuGgKV-6zrCtA%40mail.gmail.com.