Daily Dish of Dominey Design
{  October 26, 2003  }

Text-Shadow in Safari 1.1

Got Panther? Good. Using Safari? Excellent. Safari 1.1, shipping with OS X 10.3 (and should hopefully be available soon as a free download for 10.2 and under), comes with support for the Text-Shadow property found in CSS2. From what I can tell, Safari is the first - and only - browser to support this property.

So if you've got Safari 1.1, click here for a demonstration. Page uses an inline style sheet, so be sure to view source to see how it's done.

Update: For those without browser / OS support, here is a screenshot.

Comments

Hate to ask, but can we non Mac (only two more weeks) folk please get a screenshot.

Posted by: dusty at October 26, 2003 11:29 AM

Even some of us Mac folks who aren't using Panther (yet) would like one...

Posted by: Michael at October 26, 2003 11:50 AM

And what about a "Disable Antialias" property? Does somebody know if it gonna works in CSS2?

Posted by: Gregory at October 26, 2003 12:20 PM

Why is the markup so weird? The "align=center" and the use of p:firstline like it's an html tag? Wrapped in another p?

Posted by: Spencer at October 26, 2003 12:35 PM

As requested, here's a screenshot (~42kB).


Posted by: Michael Granger at October 26, 2003 6:04 PM

Posted by: Lionfire at October 26, 2003 11:08 PM

Oh, that's great - what a gas!

Posted by: Marc at October 27, 2003 1:30 AM

Ah! How are you going to just add another page with a crazy effect and no screenshot for us poor, misguided Windows-users? A screenshot of what you just posted, Marc? Pretty please?

And good call on the markup... what's the deal?

Posted by: Brian Hamilton at October 27, 2003 3:02 AM

Okay, Todd was first, meanwhile Iīve done some more exploring the text-shadow property and the CSS 3 alpha transparency support in Safari 1.1 (with screenshots). Have a look...;-)

Posted by: Frank Limbacher at October 27, 2003 8:12 AM

That is a beautiful thing. I can't wait to implement it and see it (and of course have all the other souls out there see it as well).

Posted by: Richard at October 27, 2003 8:20 AM

I've just installed 10.3 on the iMac on my desk (even though I primarily use Windows XP) and what was already a fondness for OS X has become something approximating full-on infatuation. Safari is fast becoming my favourite browser. Here's a screenshot of how lovely that page Frank made looks in Safari...

This is what the web was meant to be!

Posted by: Ben at October 27, 2003 10:36 AM

Nice, but if Safari's the only browser that supports it, it's hard to get excited, right? I haven't seen the latest stats on how many Mac users have made the switch to OSX, much less to Panther, but I think we're only talking at most a fraction of 1 percent of the entire Web-browsing population.

Posted by: Brad at October 27, 2003 10:51 AM

Brad-

No doubt, but still...this kind of built-in effect will go a long way towards encouraging web developers to only set text in images when absolutley necessary. It's a BIG deal, IMHO. Safari is the only browser that supports it NOW

The great thing is, you can use it right now. Safari users will see it and others won't. But, in a few months, when compatible versions of Moz come out, it'll just start woriking, with no intrevention from you.

Jeff

Posted by: Jeff Croft at October 27, 2003 11:06 AM

By the way...

Does CSS have a version of this property for box-level elements? I love text-shadow, but what it I want a shadow for my entire DIV?

Posted by: Jeff Croft at October 27, 2003 11:06 AM

Posted by: Stephen at October 27, 2003 11:54 AM

As for the 'real world' application of this, make no mistake about it -- without broad browser support (read: IE/Win) chances are this will never make it off the ground. I created the demo not only b/c it's really cool to see drop-shadows drawn on screen by a web browser, but to further illustrate how non-Microsoft browsers continue to move forward, while IE grows mold.

Posted by: Todd Dominey at October 27, 2003 12:25 PM

...thanks Stephen for the IE 'Shadow Filter' link. Although technically, yes, IE could simulate drop shadows, the solution Microsoft provides is a proprietary, Internet Explorer-only element instead of an open standard like CSS2.

Posted by: Todd Dominey at October 27, 2003 12:31 PM

There is more than "text-shadow". Safari 1.1 now supports CSS 3 opacity (for almost every element with a color) and the ::selection pseudo-element to name a few. Thatīs all fully web standard compliant stuff that can be used to provide some additional eye-candy for Mac users (and maybe KHTML-Linux users), but of course itīs necessary to be nice to the IE/Win users as well. To satisfy both target groups should be possible without pain.

Posted by: Frank Limbacher at October 27, 2003 2:40 PM

Wait, wait, wait a minute. What happened to the Devil? Or could they possibly occupy the same space?

Posted by: notaw at October 27, 2003 4:05 PM

But... If you make the font size really large (big enough that it must wrap), then the text on the second line is black not white (and a smaller size without shaddow).

Posted by: M. Kosnik at October 27, 2003 8:44 PM

frank, the :selection pseudo seems to be quite well supported in Firebird 0.7 on Win :)

Posted by: patrick h. lauke at October 27, 2003 8:54 PM

Brian - screenshot

Posted by: Marc at October 28, 2003 12:40 AM

What can I say? Awesome. What else? Microsoft. . .uhh. . Internet Explorer is weak.

Posted by: Phong at October 28, 2003 2:40 AM

Not sure if a special effect will curb me from "only setting text in images when absolutely necessary" just yet--even with wide browser adoption. More typographic choices and tools might though ;)

Posted by: Jarrett at October 28, 2003 7:49 AM

Interesting...

Posted by: chs at October 28, 2003 8:53 AM

This may not be widely supported yet, but it's monumental because it goads other browser-makers into compliance. Considering the bruised egos when Mac chose KHTML over Gecko, support for text-shadow in Safari might get the feature implemented in MozBird sooner rather than later. Then we're looking at roughly 4 percent support--enough to grab the attention of mainstream designers.

Posted by: Greg Reimer at October 28, 2003 12:47 PM

I'm tired of Apple spending their time on this crap when they totally ignore more pertitnent issues, like consistency of page-element size display in Safari (like form elements) and, especially, Flash Player optimization. Text shadows. Yipee.

Posted by: Greg at October 28, 2003 4:00 PM

text-shadow took me about 1 hour to implement, and all it does is call into a new Panther CoreGraphics API. It didn't take away time from bug fixing or from other feature development.

The form element size problem, as I've blogged about repeatedly is extremely hard to solve given Aqua widgets' inablity to scale to arbitrary widths/heights, but rest assured we're working on it.

Posted by: hyatt at October 30, 2003 4:24 AM

Drop shadow is passe in design some years ago.

Posted by: G. I. at October 31, 2003 11:07 AM

If you want a screenshot...

For everyone who wants to see what their pages look like in Safari 1.1, you just have to check out: http://www.danvine.com/icapture/

You can type in a URL and have a png of your site from his Mac within minutes. Until my copy of Panther arrives, this is a great way to test my pages out.

Thanks Dan!

Posted by: Gordon at December 16, 2003 6:53 PM

archives

You are reading "Text-Shadow in Safari 1.1" in the individual archives.

Check out other recent posts in the Tech, Web category

Return to the front page.