Re: [heycam/webidl] Need pattern for feature detecting dictionary members (#107)

Sorry to bump this, but I haven't been able to find a good solution. My case is related with `.focus()` and `FocusOptions`, since I have a web where I want to focus to a specific input, while maintaining the ability to let the page scrolled (for example when an anchor link is referenced).

While I can patch the behaviour on my specific case, I was looking for the best way to detect if an engine supports `FocusOptions`, to be able to write a polyfill for `preventScroll`:

https://github.com/whatwg/html/pull/2787
https://github.com/web-platform-tests/wpt/pull/7915/files#diff-65c854dfe02438ecb0bb6d0716c8d62b

Is there any way to do it?

Cheers!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/107#issuecomment-399910305

Received on Monday, 25 June 2018 10:47:31 UTC