[webkit-dev] Haptics CSS extension
We at Nokia have implemented tactile feedback (i.e. Haptics) support for touch-based user interfaces and are now ready to land the implementation to the WebKit trunk. Since the real-time requirements of a realistic feel are very tight, it is not possible to implement the haptic feedback via a simple javascript event handler. We have considered various alternatives and concluded that the best and most future-proof way is to utilize CSS to specify the tactile feedback style of a web element. Thus, we implemented a -webkit- CSS extension that enables web developers to specify the feel of an element. This is important for custom JavaScript controls to behave identically to native controls. The specification is currently at http://www.starlight-webkit.org/CSS/css3-haptics.html and the implementation work is ongoing at https://bugs.webkit.org/show_bug.cgi?id=40263. We have also been discussing about this at www-style mailing list to get feedback. We are actively driving the standardization with the Nokia standardization team and will make any necessary changes of the final standard, if any. As it is likely that this extension will be used mainly by JavaScript libraries, we are not too concerned about the potential legacy the standardization may introduce. Finally, the haptic feedback of web elements will be implemented in Nokia smartphones and we would like to commit the implementation to the open source even before product launch. All feedback would be more than welcome! Br, Kim Grönholm ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] TransformAction event
From: ext Simon Fraser [simon.fra...@apple.com] Sent: Friday, May 07, 2010 5:31 PM To: Gronholm Kim.1 (Nokia-D/Tampere) Cc: webkit-dev@lists.webkit.org Subject: Re: [webkit-dev] TransformAction event On May 7, 2010, at 2:07 AM, kim.1.gronh...@nokia.com wrote: Subject: Re: [webkit-dev] TransformAction event The event contains the clientX/Y attributes that can be used as the origin point for the transforms. clientX and clientY are useless if the element being manipulated is nested within CSS-transformed ancestors. You really need an offsetX/offsetY, which is local to the element. That's a good point and I agree 100%. I would also like to add pageX/Y coordinates as I find them quite useful to have, and remove screenX/Y coordinates which are pretty much useless. What do you think? I think you should follow MouseEvent as closely as possible. It does not have pageX/Y, but it does have screenX/Y. offsetX/Y is a non-standard extension. Following the MouseEvent was the reason why only client and screen coordinates were specified there but it's just not optimal. Both page and offset coordinates have been defined in the work-in-progress CSS-OM specification (http://www.w3.org/TR/cssom-view/#extensions-to-the-mouseevent-interface) by the CSS Working Group. One option would be to add those without removing anything. Kim Simon ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] TransformAction event
From: ext Simon Fraser [simon.fra...@apple.com] Sent: Thursday, May 06, 2010 7:09 PM To: Gronholm Kim.1 (Nokia-D/Tampere) Cc: mab2...@gmail.com; webkit-dev@lists.webkit.org Subject: Re: [webkit-dev] TransformAction event The event contains the clientX/Y attributes that can be used as the origin point for the transforms. clientX and clientY are useless if the element being manipulated is nested within CSS-transformed ancestors. You really need an offsetX/offsetY, which is local to the element. That's a good point and I agree 100%. I would also like to add pageX/Y coordinates as I find them quite useful to have, and remove screenX/Y coordinates which are pretty much useless. What do you think? - Kim Simon ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] TransformAction event
Hi, The event contains the clientX/Y attributes that can be used as the origin point for the transforms. Whether those are used or the center of the element, is completely up to the web developer. The transforms are not applied to the elements by the user agent. This does not affect the layout of the dom as the user agent just dispatches the event. The web developer may choose to alter the layout as a result of this event if he/she wants to do so. The simple example in the proposal uses CSS3 transforms that don't affect the layout. Br, Kim Grönholm From: ext Mike Barborak [mab2...@gmail.com] Sent: Thursday, May 06, 2010 2:03 PM To: Gronholm Kim.1 (Nokia-D/Tampere) Cc: webkit-dev@lists.webkit.org Subject: Re: [webkit-dev] TransformAction event i'm a bit of a lurker on this mailing list so i apologize for butting in. i do see a few points to address here. first, how do you set the point around which the scale and rotate operations will act? typically you would want that to be the center of the element but not always. if it is something you can set explicitly, what happens as that point is changed? does that cause the transform to be re-applied or not? second, does this not affect the layout of the dom? that is, is such a transformed element laid out as if scale, rotation and translation were 1, 0 and (0,0) and then those transforms applied? if so, would the z index of the element be affected or would the user use this technique in conjunction with the z-index style to ensure the scaled and rotated element were above surrounding elements? Mike Barborak CTO barbo...@frontalcode.com Frontal 1201 Broadway, #704 New York, NY 10001 cell: 646 263 7029 www.frontalcode.com Recently Created w/ Frontal: www.largavista.com www.romanthomas.com On Thu, May 6, 2010 at 1:55 AM, kim.1.gronh...@nokia.com wrote: Hello Everyone, We at Nokia have been working on a new DOM-event called TransformAction. It provides a convenient API for direct manipulation (pan, rotate, zoom) of an element. Some of You have already heard about this and been involved in specifying the event. We are planning to propose it to the W3C for standardization and meantime start upstreaming the patches to WebKit if it's accepted by You. A draft of the proposal/specification is available here: http://portaali.org/~ilkkao/w3c/manipulate/Transformaction.html We are happy to answer any questions You might have about the event. Please give us Your comments. Thanks, Kim Grönholm ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] TransformAction event
Hello Everyone, We at Nokia have been working on a new DOM-event called TransformAction. It provides a convenient API for direct manipulation (pan, rotate, zoom) of an element. Some of You have already heard about this and been involved in specifying the event. We are planning to propose it to the W3C for standardization and meantime start upstreaming the patches to WebKit if it's accepted by You. A draft of the proposal/specification is available here: http://portaali.org/~ilkkao/w3c/manipulate/Transformaction.html We are happy to answer any questions You might have about the event. Please give us Your comments. Thanks, Kim Grönholm ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev