New WebKit Fun

7 Feb 2008 In: General

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:

Downloadable Fonts

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?

HTML5 Audio and Video

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!

HTML5 SQL Storage

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.

Doing things right

1 Feb 2008 In: Daily Links

Helvetica, Doctypes, Lemurs and more!

25 Jan 2008 In: Daily Links

So I’ve written a plugin and switched to a weekly summary posting of my delicious links, here’s a select few good ones:

They’re coming to get you!

16 Jan 2008 In: Daily Links

Daily Distractions

15 Jan 2008 In: Daily Links

Daily Distractions

14 Jan 2008 In: Daily Links

Daily Distractions

11 Jan 2008 In: Daily Links

Daily Distractions

10 Jan 2008 In: Daily Links
  • Don’t understand the differences between HEX, RGB, keywords and alpha the changes in CSS3 colour? Here’s a quick explanation.
  • Are you still using CSS hacks? See why you shouldn’t.
  • Installation continues….

    9 Jan 2008 In: General

    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.

    Installation has started.

    8 Jan 2008 In: General, setup

    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.

    About this blog

    Hrmmm... what to write?

    Flickr PhotoStream

    • Dueling Light
    • Arc
    • Electric Web
    • Powe
    • On the move
    • Pixelmator | Sign-up (20070531)
    • Zilele Humorului (20070505)
    • Krabi & Mask (20070505)
    • BeyondMidnight.net - Web design - Jacqueline Anne Munoz (20070505)
    • bramn - When just a first name is not enough! (20070505)

    Categories