Re: Intent to implement: Visual Viewport API

2018-07-24 Thread Botond Ballo
On Tue, Jul 24, 2018 at 4:22 AM, Michael de Boer  wrote:
> About the desktop perspective: is pinch-to-zoom a completely separate thing 
> from full-page-zoom as can be controlled right now with Ctrl+ and Ctrl- using 
> the
> keyboard?

Yes. The two have different behaviours (as Boris mentioned, one
reflows the page, one does not).

> If that’s the case, I can see synchronization issues between the two features 
> when they’re both in use.

Could you elaborate? As far as I'm aware, other browsers like Chrome
and Safari support both at the same time on desktop.

> My perception is that pinch-to-zoom is really full-page-zoom, but using the 
> pointer coordinates as focal point instead of [0,0] and step-less zooming 
> behaviour, instead of clamping to predefined steps.

Currently, pinch gestures on a trackpad are hooked up to perform
full-page zooming on desktop. This is a temporary measure until pinch
zooming is implemented on desktop. Once pinch zooming is implemented
on desktop, pinch gestures will be hooked up to perform that.

Thanks,
Botond
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to implement and ship: CSS prefers-reduced-motion media feature for Windows and MacOSX

2018-07-24 Thread Tom Ritter
As far as I can tell the specification does not indicate any privacy
concerns; even though this exposes a system preference.

I'd request that if Resist Fingerprinting is enabled; the browser behaves
as if the user has not set any preference.

-tom

On Tue, Jul 24, 2018 at 2:34 AM, Hiroyuki Ikezoe 
wrote:

> Summary: By using CSS prefers-reduced-motion media feature, web developers
> can provide contents depending on a system setting that users want
> *motion-less* content.  A WebKit  blog post [1] might be useful to know
> this feature in more detail.
>
> Bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=1365045 for Windows
>  https://bugzilla.mozilla.org/show_bug.cgi?id=1475462 for Mac OSX
>
> Link to standard:
> https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion
>
> Platform coverage: Windows and MacOSX
> Though I don't have a plan for Android at this moment , I maybe do it
> soonish.
>
> Estimated release: For Windows in Firefox 63, for MacOSX it might be
> delayed in Firefox 64
>
> Preference behind which this will be implemented: None
>
> Is this feature enabled by default in sandboxed iframes? Yes
>
> If allowed, does it preserve the current invariants in terms of what
> sandboxed iframes can do? I believe so
>
> DevTools bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1477920
>
> Do other browser engines implement this?
>
> WebKit already shipped this feature on the last year.
>
> Neither Chrome and Edge hasn't progressed yet.
> https://bugs.chromium.org/p/chromium/issues/detail?id=722548
> https://developer.microsoft.com/en-us/microsoft-edge/
> platform/issues/17506002/
>
> web-platform-tests: None
> This feature is tied to a system setting, so, as far as I can tell, we
> can't write wpt.
> WebKit has test cases on their tree controlled by something like our
> SpecialPowers.  We will have reftests controlled by a UI pref.
>
> Secure contexts: Yes
>
> [1] https://webkit.org/blog/7551/responsive-design-for-motion/
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to implement: Visual Viewport API

2018-07-24 Thread Boris Zbarsky

On 7/24/18 4:22 AM, Michael de Boer wrote:

About the desktop perspective: is pinch-to-zoom a completely separate thing 
from full-page-zoom as can be controlled right now with Ctrl+ and Ctrl- using 
the
keyboard?


Yes.  As a simple example, full-page-zoom does relayout (e.g. can change 
where linebreaks happen).  pinch-to-zoom does not do relayout, as far as 
I know.


-Boris
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to implement and ship: CSS prefers-reduced-motion media feature for Windows and MacOSX

2018-07-24 Thread Boris Zbarsky

On 7/24/18 3:34 AM, Hiroyuki Ikezoe wrote:

Secure contexts: Yes


Why?

-Boris
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to implement: Visual Viewport API

2018-07-24 Thread Cameron McCormack
On Tue, Jul 24, 2018, at 12:22 PM, Boris Zbarsky wrote:
> On 7/23/18 7:36 PM, Tanushree Podder wrote:
> > Secure contexts: Yes
> 
> I'm not sure what this line means here.

I updated the intent to implement template at 
https://wiki.mozilla.org/ExposureGuidelines#Intent_to_implement to make it 
clearer what this is asking.
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to implement: Visual Viewport API

2018-07-24 Thread Michael de Boer


> On 24 Jul 2018, at 01:36, Tanushree Podder  wrote:
> 
> Summary: Mobile web pages contain two viewports, the layout viewport and
> the visual viewport. The layout viewport consists of all the page contents
> and is specified by the meta-viewport tag. The visual viewport is the
> actual visible portion of the page on the screen excluding on-screen
> keyboards, areas outside of a pinch-zoom area or any other on-screen
> artifact that does not scale with the dimensions of the page. The purpose
> of the Visual Viewport API is to allow web developers to explicitly query
> the properties of the visual viewport.
> 
> Web developers can use this API in situations where they need to position
> web page elements to remain visible on the screen regardless of the visible
> portion of the web page. For example, if an image needs to be visible
> regardless of the pinch-zoom level of the device, it can be positioned
> relative to what’s shown on the screen using methods of the Visual Viewport
> API.

About the desktop perspective: is pinch-to-zoom a completely separate thing 
from full-page-zoom as can be controlled right now with Ctrl+ and Ctrl- using 
the
keyboard?
If that’s the case, I can see synchronization issues between the two features 
when they’re both in use.
My perception is that pinch-to-zoom is really full-page-zoom, but using the 
pointer coordinates as focal point instead of [0,0] and step-less zooming 
behaviour, instead of clamping to predefined steps.
If that’s not the case, I’d say the new API seems usable on desktop already 
once the page has been zoomed in.

Thanks,

Mike.
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Intent to implement and ship: CSS prefers-reduced-motion media feature for Windows and MacOSX

2018-07-24 Thread Hiroyuki Ikezoe
Summary: By using CSS prefers-reduced-motion media feature, web developers
can provide contents depending on a system setting that users want
*motion-less* content.  A WebKit  blog post [1] might be useful to know
this feature in more detail.

Bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=1365045 for Windows
 https://bugzilla.mozilla.org/show_bug.cgi?id=1475462 for Mac OSX

Link to standard:
https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion

Platform coverage: Windows and MacOSX
Though I don't have a plan for Android at this moment , I maybe do it
soonish.

Estimated release: For Windows in Firefox 63, for MacOSX it might be
delayed in Firefox 64

Preference behind which this will be implemented: None

Is this feature enabled by default in sandboxed iframes? Yes

If allowed, does it preserve the current invariants in terms of what
sandboxed iframes can do? I believe so

DevTools bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1477920

Do other browser engines implement this?

WebKit already shipped this feature on the last year.

Neither Chrome and Edge hasn't progressed yet.
https://bugs.chromium.org/p/chromium/issues/detail?id=722548
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/17506002/

web-platform-tests: None
This feature is tied to a system setting, so, as far as I can tell, we
can't write wpt.
WebKit has test cases on their tree controlled by something like our
SpecialPowers.  We will have reftests controlled by a UI pref.

Secure contexts: Yes

[1] https://webkit.org/blog/7551/responsive-design-for-motion/
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform