Contact emails
becca...@chromium.org, mlam...@chromium.org
Spec
Summary
We are adding support for display cutouts in Blink through CSS environment variables and the viewport-fit meta tag. This is to add support for the display cutout API that is being released in Android P.
Link to “Intent to Implement” blink-dev discussion
Is this feature supported on all six Blink platforms?
Android only for display cutout. CSS env() is supported on all platforms.
Demo link
There is a demo page here, however it needs a device running Android P and simulating a display cutout.
Debuggability
CSS environment variables display correctly under the element styles tab in devtools. At the moment you cannot simulate a cutout using devtools but there is a bug filed for this in the future.
Risks
Interoperability and Compatibility
Edge: No signals
Firefox: No signals
Safari: Shipped (link)
Web developers: No signals
Activation
Developers can use the display cutout emulation feature in Android for testing. Widespread adoption of this feature is blocked by the release of Android P which has the Display Cutout API.
Is this feature fully tested by web-platform-tests?
This is not tested by web platform tests since it would require an internal API to simulate a display cutout.
Entry on the feature dashboard
--
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/CAFeLsEK09eFUtyHO7V2ss2dHLFZximh0a9j0y85AFuwnFzWDHw%40mail.gmail.com.
\o/
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
How env() works with CSS.supports() and CSSOM APIs for env() have not been spec'd yet and are out of scope for this launch.
We have a bunch of unit tests that provide coverage and these do test that fallbacks work correctly too.
Thanks,Becca
\o/
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Hi Becca,Yeah - totally understand it is frustrating not having a spec yet. However WPT are super important to make sure that we obtain interoperability with other browsers even in this state however.One way around this while waiting for the specification to be firmed up is to add a suite of tests marked with .tentative, see:Doing this will ensure that we have the same interoperability with Safari, and that when a third implementation appears (and the spec still potentially being in this state) the third implementation can match the behaviour. Having two/three private test suites can potentially lead to poor interoperability, and make developers being frustrated with us.On Thu, Jun 21, 2018 at 11:05 AM Becca Hughes <becca...@chromium.org> wrote:How env() works with CSS.supports() and CSSOM APIs for env() have not been spec'd yet and are out of scope for this launch.Unless I'm reading the implementation incorrectly it seems like these APIs will just work(tm), and should be in a test suite?(e.g. a similar WPT test for @supports for var()).
We have a bunch of unit tests that provide coverage and these do test that fallbacks work correctly too.Yeah the unit tests look great, but not having any WPT for other APIs which use this machinery (via. getComputedStyle, or element.style.setProperty, etc) can be problematic.
Thanks,Becca
\o/
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Thanks,Becca
\o/
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
+ TabThis focus of this launch is Display Cutout and we want to launch part of CSS env() to provide backwards compatability in terms of what Safari has already shipped for the iPhone X.
The full spec for CSS env() has a lot more functionality that is still being worked out and that is out of scope for this 'lite' launch of env().
In terms of a list of all the variable names there is an issue here that is working on defining a list: https://github.com/w3c/csswg-drafts/issues/2630
On Fri, Jun 22, 2018 at 5:54 AM <becca...@chromium.org> wrote:+ TabThis focus of this launch is Display Cutout and we want to launch part of CSS env() to provide backwards compatability in terms of what Safari has already shipped for the iPhone X.As others have mentioned, proper wpt tests is a requirement here. That will make you discover short-comings in the spec as well as interop with Safari.
The full spec for CSS env() has a lot more functionality that is still being worked out and that is out of scope for this 'lite' launch of env().In terms of a list of all the variable names there is an issue here that is working on defining a list: https://github.com/w3c/csswg-drafts/issues/2630The CSSWG resolved on four values and edits to be made to CSS Variables Level 2[1]. Do we have a resolution overriding that to put it in a separate spec?I would not be comfortable shipping this without having these four values put in a spec with a description of what they are.
--
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/CAFeLsELTCuBL83Dd6kOnEfNQGUpdOJV7VnVeV-7Bo-78oraG6A%40mail.gmail.com.
Hi Rick,
I tested this on an iPhone 6 running iOS 11.4, as well as a Mac (Safari
11.1.1) and iPhone Simulator running iOS 11.4 on both the iPhone 8 and
iPhone X and for me all the tests are passing. The Safari version is
AppleWebKit/605.1.15 Mobile/15E148 Safari/604.1.
On your iPhone if you type in "show user agent" to Google in Safari it
should show you what version of Safari you are running. I wonder if for
some reason your iPhone is running an older build of Safari.
Thanks,
Becca
On Tue, Jun 26, 2018 at 2:25 PM, Rick Byers <rby...@chromium.org> wrote:
We have been looking into the test failures and believe we have found the cause. It looks like env() is switched off on some iOS devices.The feature can be switched on by going to Settings > Safari > Advanced > Experimental Features > Constant Properties. With the feature enabled all the WPT tests pass.
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/CAFeLsELjgh5773%3DJpR7VdqqfUFqCpfQ7JzjN_ENdJhjafEABRA%40mail.gmail.com.
On Thu, Jun 28, 2018 at 12:32 AM Becca Hughes <becca...@chromium.org> wrote:We have been looking into the test failures and believe we have found the cause. It looks like env() is switched off on some iOS devices.The feature can be switched on by going to Settings > Safari > Advanced > Experimental Features > Constant Properties. With the feature enabled all the WPT tests pass.So, the feature is shipped in some iOS devices but not others? Do we know if it's a matter of Safari version? Or some other criteria?
On Thu, Jun 28, 2018 at 8:32 AM Yoav Weiss <yo...@yoav.ws> wrote:
> On Thu, Jun 28, 2018 at 12:32 AM Becca Hughes <becca...@chromium.org>
> wrote:
>
>> We have been looking into the test failures and believe we have found the
>> cause. It looks like env() is switched off on some iOS devices.
>>
>> The feature can be switched on by going to Settings > Safari > Advanced >
>> Experimental Features > Constant Properties. With the feature enabled all
>> the WPT tests pass.
>>
>>
> So, the feature is shipped in some iOS devices but not others? Do we know
> if it's a matter of Safari version? Or some other criteria?
>
Or did they ship this only on some hardware devices but not others?
Hey all,
API OWNERS met this morning and while we're not exercised about the lack of
spec text, the linked design docs don't fill the role of an Explainer:
https://docs.google.com/document/d/1cJs7GkdQolqOHns9k6v1UjCUb_LqTFVjZM-kc3TbNGI/edit?usp=sharing
That is, it isn't clear what problems this is solving, why these
(relatively large) proposals are the correct way to solve them, or what the
considered alternatives are. Rubber-stamping the
launched-without-consultation (or even Origin Trial) additions of another
vendor without that sort of deliberation is very much a non-goals, so if
there are docs that could stand in for an Explainer here, that would help
unblock my LGTM.
Thanks!
On Thursday, June 28, 2018 at 7:24:48 AM UTC-7, Becca Hughes wrote:
>
>
>
> On Wed, 27 Jun 2018, 23:40 Yoav Weiss, <yo...@yoav.ws <javascript:>>
> wrote:
>
>> On Thu, Jun 28, 2018 at 8:32 AM Yoav Weiss <yo...@yoav.ws <javascript:>>
>> wrote:
>>
>> > On Thu, Jun 28, 2018 at 12:32 AM Becca Hughes <becca...@chromium.org
>> <javascript:>>
>> > wrote:
>> >
>> >> We have been looking into the test failures and believe we have found
>> the
>> >> cause. It looks like env() is switched off on some iOS devices.
>> >>
>> >> The feature can be switched on by going to Settings > Safari >
>> Advanced >
>> >> Experimental Features > Constant Properties. With the feature enabled
>> all
>> >> the WPT tests pass.
>> >>
>> >>
>> > So, the feature is shipped in some iOS devices but not others? Do we
>> know
>> > if it's a matter of Safari version? Or some other criteria?
>> >
>>
>
> The original launch announcement from Apple cites that you need at least
> iOS 11.2 beta.
>
>
>> Or did they ship this only on some hardware devices but not others?
>>
>
> I am not sure about the exact details but at least in their repo it is on
> by default:
>
>
> https://github.com/WebKit/webkit/blob/01ff8c715bb788e0d721948c7d7acd7d5cfa06c3/Source/WebKit/Shared/WebPreferences.yaml#L1058
>
>
>>
>> >
>> >
>> >
>> >> On Tue, Jun 26, 2018 at 4:15 PM, Becca Hughes <becca...@chromium.org
>> <javascript:>>
>> >>> becca...@chromium.org <javascript:>>
>> >>> > wrote:
>> >>> >
>> >>> >> The spec pull request to define the safe area variables has been
>> >>> merged
>> >>> >> and is now part of the spec
>> >>>
>> >> >> <https://drafts.csswg.org/css-env-1/#safe-area-insets>.
>> >>
>> >>
>> >>> >>
>> >>> >> (@David - thanks again for reviewing the PR)
>> >>> >>
>> >>> >> On Mon, Jun 25, 2018 at 2:55 PM, L. David Baron <dba...@dbaron.org
>> <javascript:>>
>> >> email to blink-dev+...@chromium.org <javascript:>.
We have been looking into the test failures and believe we have found the cause. It looks like env() is switched off on some iOS devices.The feature can be switched on by going to Settings > Safari > Advanced > Experimental Features > Constant Properties. With the feature enabled all the WPT tests pass.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFeLsE%2BkJugFcOhaMxtBThZezroAPZTY1QaMSXW0oHDnu105Yg%40mail.gmail.com.
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/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com.
LGTM3
On Thu, Jun 28, 2018 at 12:21 PM Rick Byers <rby...@chromium.org> wrote:
> [Dropping mozilla-dev-tech-layout since it's a subscribers-only list]
>
> That explainer looks great to me, thanks! I added a link to the chromestatus
>
> It's sad that we still don't really have a proper spec for the meta
> viewport tag, just the apparently stalled device adaptation spec
> <https://drafts.csswg.org/css-device-adapt/>. But at least between that
> and the round display draft
> kinda an existing definition for the viewport-fit token. I guess there's
> not really any reasonable way to write a web-platform-test for the
> viewport-fit behavior. We'd have to add a WebDriver command to simulate a
> display cut-out <https://github.com/web-platform-tests/wpt/issues/11718>,
> and also come up with some mitigation
> <https://github.com/web-platform-tests/wpt/issues/11717> for the fact
>> .
>>
> --
> 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/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFeLsEKAUsa6CjXcp4vsWOmBa4yGVWZEOVTPkdf3bgrjdNYENQ%40mail.gmail.com.
> 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/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
>> >> mozilla.dev.tech.layout <mozilla.dev.tech.layout@googlegroups.com>
>> > 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/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com
>> > <
>> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-KpYMW6Sr_a3JPZPjGWmisFM0%3D%2BP6w3nofH9MpEcQ7KQ%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >
>> > .
>> >
>>
> --
> 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/CAFeLsEKAUsa6CjXcp4vsWOmBa4yGVWZEOVTPkdf3bgrjdNYENQ%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFeLsEKAUsa6CjXcp4vsWOmBa4yGVWZEOVTPkdf3bgrjdNYENQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
_______________________________________________
dev-tech-layout mailing list
dev-tec...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-layout