Archive for September, 2012

Clipping element painting and the Media Source API for Chromium

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 23

This update discusses the 1,305 WebKit changes up to revision 128,016, and the 1,707 Chromium changes up to revision 155668, and is therefore covering the last two weeks.

Within Web Inspector, the $() function now aliases querySelector rather than getElementById, meaning you can also select on classes, elements or more advanced selectors. Stylesheets using SASS’ SCSS format will now be highlighted. The experimental WebGL front-end is now able to link you the relevant call in the source code and status bar glyphs now have high-DPI images.

Support for the overflow-wrap property has been added, which is a new property to which word-wrap is a shorthand. Within the calc() function, expressions using the “em” unit will now zoom correctly and it’s now possible to use CSS Variables within expressions, assuming support for both is available in your build. Robert fixed yet another CSS 2.1 issue, so WebKit now prevents the margins of collapsed blocks from collapsing with parent margins.

Dirk introduced the “clip-path” CSS property into WebKit, which restricts the region of an element that can be painted. Changes landed making this work for both HTML and SVG elements, together with a fix which makes sure that the correct origin of polygons will be applied.

Using Content Security Policy will now disable dynamic script evaluation in workers. Automatic features (i.e. autoplay) will now work in sandboxed iframes if they allow scripts and TextTrack modes will now be reported as strings. MediaSource objects now have a duration property, non-anchored <dialog> elements will now be vertically centered and dynamically removing preserve-3d from a layer now yields the wanted effect. Finally, the MediaSource, SourceBuffer and SourceBufferList objects have received WebKit-specific prefixes.

Tommy has been working on WebRTC’s PeerConnection interface, adding the asynchronous createOffer method, the createAnswer method, ICE-related functionality and support for local and remote descriptions.

In terms of experimental features, Dave’s been working on the new Multiple Column implementation again, and added support for painting the contentscolumn repainting and unforced column breaking, next to some clean-ups. The CSS Shaders implementation now features various new blending and compositing modes.

Other changes which occurred in the last two weeks:

And that’s it again, thanks for reading! For Chromium OS updates, François published some great updates again.

Read more (3 comments) »