Making it happen in the real world.
For all you out there who like to keep tabs on new developments in the browser markets, Safari 3.1 has been seeded for testing and it seems they’ve incorporated a number on the new WebKit features!
Here’s a select few examples:
The idea of downloadable font’s isn’t really anything new but WebKit now supports the @font-face rule:
@font-face {
font-family: "MyFont";
src: url(http://www.example.com/fonts/MyFont.ttf) format("truetype");
}
h1 { font-family: "MyFont", sans-serif }
Will this be the end of image replacement and sIFR?
The new HTML5
<video>and<audio>elements add native support for embedding video and audio content in web pages. They also provide a rich scripting API for controlling playback. Adding video to a web page is almost as simple as adding an image.
For example, adding a video is as simple as
<video src="sample.mov" autoplay></video>
and you have controll access through JavaScript as well:
function toggleVideo() {
var myVideo = document.getElementsByTagName('video')[0];
if (myVideo.paused) {
myVideo.play();
} else {
myVideo.pause();
}
}
Sweet!
The client-side database storage API allows web applications to store structured data locally using a medium many web developers are already familiar with - SQL. The API is asynchronous and uses callback functions to track the results of a database query.
Wow, client side SQL? Now that might be more useful than a Cookie!
var database = openDatabase("Database Name", "Database Version");
database.executeSql("SELECT * FROM test", function(result) {
// do something with the result
});
There is a working example on the WebKit blog, but you’ll need WebKit of course.
If you’re interested in playing around, you can download the latest nightly builds at nightly.webkit.org.
So I’ve written a plugin and switched to a weekly summary posting of my delicious links, here’s a select few good ones:
We’ll not much to write yet. I’ve spent some time today sorting out my various sites onto their proper servers and tinkering with wordpress plugins. It’ll probably be a week or so before I post anything worthwhile but I’m working on a nice short list of articles.
As you can see I’m in wordpress default mode as I’m still filtering through stuff. Oh what fun. While I play around and get my own theme assembled, I decided to get away from the default and try out the Dilectio Theme created by Design Disease in association with Smashing Magazine. Props to them.
I’m also working on integrating del.icio.us bookmarks as a daily evening post and a few other goodies. We’ll see what happens.
Hrmmm... what to write?