<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Trent Walton &#187; Webkit</title>
	<atom:link href="http://trentwalton.com/tag/webkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://trentwalton.com</link>
	<description>Trent Walton&#039;s Web Site</description>
	<lastBuildDate>Sun, 20 May 2012 14:17:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CSS Hyphenation</title>
		<link>http://trentwalton.com/2011/09/07/css-hyphenation/</link>
		<comments>http://trentwalton.com/2011/09/07/css-hyphenation/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 16:41:54 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Responsive]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Typography]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=4678</guid>
		<description><![CDATA[After reading this Fontdeck Blog post a few of weeks ago, I dropped an exciting new CSS property into the stylesheet for this blog. Wanting to test hyphenation on all my posts and pages, I applied CSS hyphenation to all paragraphs: p { -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; } During a day or so of road testing I noticed some pretty funky widows, so I fine-tuned my... <a href="http://trentwalton.com/2011/09/07/css-hyphenation/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://blog.fontdeck.com/post/9037028497/hyphens">this Fontdeck Blog post</a> a few of weeks ago, I dropped an exciting new CSS property into the stylesheet for this blog. Wanting to test hyphenation on all my posts and pages, I applied <a href="http://www.w3.org/TR/css3-text/#hyphenation">CSS hyphenation</a> to all paragraphs:</p>
<p><code>p {<br />
-webkit-hyphens: auto;<br />
-moz-hyphens: auto;<br />
hyphens: auto;<br />
}</code></p>
<p>During a day or so of road testing I noticed some pretty funky <a href="http://en.wikipedia.org/wiki/Widows_and_orphans">widows</a>, so I fine-tuned my stylesheet to only target narrow columns, like the ones on <a href="http://trentwalton.com/info/">my info page</a>, which is a scenario where CSS hyphenation really comes in handy. Overall, I’m not sure what to think about fluid columns and widows—they’re bound to show up at varying widths. I try to avoid them at my defined max-width, but have plans to test the <a href="http://wordpress.org/extend/plugins/wp-typography/">wp-Typography plugin</a> in a responsive setting once we perform some server upgrades for the blog (taking our old Media Temple DV from php 4 to 5). I’ll be sure to report back when we get there.</p>
<p><strong>Update (9/21/11)</strong>: I’m happily using the <a href="http://kingdesk.com/projects/wp-typography/" title="Wordpress Typography Plugin">wp-Typography plugin</a> to prevent widows now that our servers have been upgraded. Things seem to be reflowing smoothly in my responsive layout. This plugin has loads of features, hyphenation, spacing control, character replacement, etc., that I’ll be experimenting with further soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2011/09/07/css-hyphenation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Lion &amp; Safari Block-A Font Problems</title>
		<link>http://trentwalton.com/2011/08/29/lion-safari-block-a-font-problems/</link>
		<comments>http://trentwalton.com/2011/08/29/lion-safari-block-a-font-problems/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 14:32:57 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Typography]]></category>
		<category><![CDATA[Web Fonts]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=4640</guid>
		<description><![CDATA[Since upgrading to Lion I’ve noticed a font rendering issue with Safari 5.1. Sites were randomly displaying some web-safe and web-served fonts with the Last Resort font, AKA “Block-A Characters.” These can appear for a variety of reasons, but I was getting them because Safari 5.1 has a compatibility issue when rendering fonts for those who use 3rd party font management apps. I use Font Explorer and love... <a href="http://trentwalton.com/2011/08/29/lion-safari-block-a-font-problems/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>Since upgrading to Lion I’ve noticed a font rendering issue with Safari 5.1. Sites were randomly displaying some web-safe and web-served fonts with the <a href="http://developer.apple.com/fonts/lastresortfont/">Last Resort font</a>, AKA “Block-A Characters.” </p>
<p><img src="/wp-content/uploads/2011/08/last_resort.jpg" alt="Last Resort Font A-Block"/></p>
<p>These can appear for a variety of reasons, but I was getting them because Safari 5.1 has a compatibility issue when rendering fonts for those who use 3rd party font management apps. I use <a href="http://www.fontexplorerx.com/">Font Explorer</a>  and love it, but after my old trick of <a href="http://twitter.com/#!/TrentWalton/status/96981852836999168">clearing font caches</a> proved unsuccessful, I took to twitter and got some good advice from <a href="http://twitter.com/#!/jasonsantamaria/status/107491186872291329">Jason</a> and <a href="http://twitter.com/#!/mattwiebe/status/107506414028726272">Matt</a>. I followed the steps outlined at <a href="http://reviews.cnet.com/8301-13727_7-20087102-263/webkit-sandboxing-conflict-causes-safari-block-a-font-problem/">this CNET post</a> and got an immediate fix. Hooray! Web fonts and font management are still a thing!</p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2011/08/29/lion-safari-block-a-font-problems/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>More CSS Mask-Image &amp; Text</title>
		<link>http://trentwalton.com/2011/06/01/more-css-mask-image-text/</link>
		<comments>http://trentwalton.com/2011/06/01/more-css-mask-image-text/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 15:43:23 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Web Fonts]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=4470</guid>
		<description><![CDATA[After my last post on mask-image, I needed to create a few more examples for an upcoming tutorial. I had to abandon this one because it wasn’t straightforward enough—though I quite like how it turned out, so I thought I’d share. Remember this property is sadly webkit-only at the moment. Ground Control Note: If you’re on any responsive width other than 100% (full), the masked shadows won’t line... <a href="http://trentwalton.com/2011/06/01/more-css-mask-image-text/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>After my <a href="http://trentwalton.com/2011/05/19/mask-image-text/">last post</a> on <code><a href="http://www.webkit.org/blog/181/css-masks/">mask-image</a></code>, I needed to create a few more examples for an upcoming tutorial. I had to abandon <a href="http://dribbble.com/shots/183050-Ground-Control/attachments/2349">this one</a> because it wasn’t straightforward enough—though I quite like how it turned out, so I thought I’d share. Remember this property is sadly webkit-only at the moment.</p>
<div class="masked">
<h3>Ground Control</h3>
</div>
<p>Note: If you’re on any responsive width other than 100% (full), the masked shadows won’t line up. That got me thinking: wouldn’t it be cool if you could scale masked images like you can background images? Maybe it’d look a little something like: <code>mask-image-size:100%;</code></p>
<p>Thanks to <a href="http://www.theleagueofmoveabletype.com">The League of Movable Type</a> and <a href="http://twitter.com/%23!/Sursly">Tyler Fink</a> for providing <a href="http://www.theleagueofmoveabletype.com/fonts/18-ostrich-sans">Ostrich</a>, the font used in the design.<br />
<script type="text/javascript">
jQuery(document).ready(function($) {
	$(".masked h3").lettering('words');
	$(".masked .word1").fitText(1);
	$(".masked .word2").fitText(0.34);
});
</script><br />
<style>@font-face {font-family: 'OstrichSansMedium'; src: url('/wp-content/uploads/2011/05/fonts/ostrich-regular-webfont.eot'); src: url('/wp-content/uploads/2011/05/fonts/ostrich-regular-webfont.eot?#iefix') format('embedded-opentype'), url('/wp-content/uploads/2011/05/fonts/ostrich-regular-webfont.woff') format('woff'), url('/wp-content/uploads/2011/05/fonts/ostrich-regular-webfont.ttf') format('truetype'), url('/wp-content/uploads/2011/05/fonts/ostrich-regular-webfont.svg#OstrichSansMedium') format('svg');font-weight: normal;font-style: normal;}.masked{font-family: 'OstrichSansMedium';text-align: center;background: #fff url(/wp-content/uploads/2011/05/gc_bg.jpg) no-repeat;max-height: 850px;background-size:100%;color: #ffffea;padding-bottom: 12%;}.masked h3{color: #ffffea;padding-top: 85.5%;-webkit-mask-image: url(/wp-content/uploads/2011/05/gcshuttle.png); -o-mask-image:  url(/wp-content/uploads/2011/05/gcshuttle.png); -moz-mask-image:  url(/wp-content/uploads/2011/05/gcshuttle.png); mask-image:  url(/wp-content/uploads/2011/05/gcshuttle.png); }.masked span{display: block;}.masked span{width:100%;line-height: 1;}.masked .word1{letter-spacing: .2em;text-indent: .2em;}.masked .word2{margin-top: -.15em;}</style>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2011/06/01/more-css-mask-image-text/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CSS Mask-Image &amp; Text</title>
		<link>http://trentwalton.com/2011/05/19/mask-image-text/</link>
		<comments>http://trentwalton.com/2011/05/19/mask-image-text/#comments</comments>
		<pubDate>Thu, 19 May 2011 16:43:32 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Web Fonts]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=4398</guid>
		<description><![CDATA[I recently wrote about Controlling Web Typography and focused on CSS pseudo selectors &#38; down-to-the-letter control. As a web designer, I want the same level of control over type that print designers have, including texture. There are currently 2 webkit properties that I’ve grown to love and hope gain more traction &#38; browser support. My favorite would have to be background-clip:text, but it currently degrades poorly. A close... <a href="http://trentwalton.com/2011/05/19/mask-image-text/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>I recently wrote about <a href="http://trentwalton.com/2011/01/18/controlling-web-typography/">Controlling Web Typography</a> and focused on CSS pseudo selectors &amp; down-to-the-letter control. As a web designer, I want the same level of control over type that print designers have, including texture. There are currently 2 webkit properties that I’ve grown to love and hope gain more traction &amp; browser support. My favorite would have to be <a href="http://www.webkit.org/blog/164/background-clip-text/"><code>background-clip:text</code></a>, but it currently degrades poorly. A close second is <a href="http://www.webkit.org/blog/181/css-masks/"><code>mask-image</code></a>, which you can apply to text.</p>
<p>In the example below I’ve implemented a subtle grey flecked texture effect over the white text. Hover over the box to see how it will degrade in non-supporting browsers. Note: because this is -webkit only it’ll only show up in those browsers.</p>
<style type="text/css" media="screen">
@font-face {font-family: 'AlternateGothicFSNo3'; src: url('/wp-content/themes/delia4/fonts/AlternateGothicNo3-webfont.eot');src: local('☺'), url('/wp-content/themes/delia4/fonts/AlternateGothicNo3-webfont.woff') format('woff'), url('/wp-content/themes/delia4/fonts/AlternateGothicNo3-webfont.ttf') format('truetype'), url('/wp-content/themes/delia4/fonts/AlternateGothicNo3-webfont.svg#webfonttvBCWiRH') format('svg');font-weight: normal;font-style: normal;}	
.mask-box {color: #fff;width: 100%;padding: 12% 0 12%;text-align:center;background: #fff url(/wp-content/uploads/2011/05/dinero_bg.jpg) no-repeat;font: 12px "AlternateGothicFSNo3";text-transform: uppercase;margin-bottom:.9em; overflow: hidden;}	
.mask-box p{margin-bottom: 0; }
.mask-box h3{color: #fff;font-size: 30px;line-height: 1;margin-bottom: -0.15em; margin-top: -0.11em;}
.mask-box h3, .mask-box p{width:100%; display: inline-block;-webkit-mask-image: url(/wp-content/uploads/2011/05/mask.png); -o-mask-image:  url(/wp-content/uploads/2011/05/mask.png); -moz-mask-image:  url(/wp-content/uploads/2011/05/mask.png); mask-image:  url(/wp-content/uploads/2011/05/mask.png); text-shadow: 0px 0px 30px rgba(30, 28, 28, 0.6);}
.mask-box:hover, .mask-box:hover h3, .mask-box:hover p{-webkit-mask-image: none; -o-mask-image: none;  -moz-mask-image: none; mask-image: none;text-shadow: none; cursor: pointer;}</style>
<div class="mask-box">
<h3>Dinero</h3>
<p>Is not spanish for dinner</p>
</div>
<p>Here’s the CSS code with all the structural bits trimmed out:<br/><code>.mask-box h3, .mask-box p{<br />
	-webkit-mask-image: url(/path/to/mask.png);<br />
	-o-mask-image: url(/path/to/mask.png);<br />
	-moz-mask-image: url(/path/to/mask.png);<br />
	mask-image:  url(/path/to/mask.png);<br />
	text-shadow: 0px 0px 30px rgba(30, 28, 28, 0.6);}</code>	</p>
<p>In most cases, I prefer subtle amounts of texture / graphic applied to text. The best example of a well used <code>mask-image</code> for type I’ve ever seen is <a href="http://tintype.mikemeyer.im/adoption/home.html">this event page</a> designed by Matthew Smith of <a href="http://squaredeye.com/">Squared Eye</a> and built by <a href="http://mikemeyer.im/">Michael Meyer</a>. The “A Night for Adoption” headline is selectable <em>and </em>it’s got rays of sun shining through. Magical!</p>
<p><a href="http://tintype.mikemeyer.im/adoption/home.html"><img src="/wp-content/uploads/2011/05/mask_example.jpg" alt="webkit mask image example"/></a></p>
<p>When <code>background-clip:text</code> and <code>mask-image</code> are combined with web fonts, <a href="http://trentwalton.com/2011/01/18/controlling-web-typography/#nth">enhanced CSS pseudo selectors</a>, and CSS transforms, we’ll soon be all out of reasons to resort to image replacement for beautiful type on the web.<br />
<script src="/wp-content/themes/delia4/js/jquery.fittext.js"></script><script type="text/javascript">jQuery(document).ready(function($) {$(".mask-box p").fitText(1.11);$(".mask-box h3").fitText(0.28);});</script></p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2011/05/19/mask-image-text/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>CSS Box-Shadow:Inset</title>
		<link>http://trentwalton.com/2010/11/22/css-box-shadowinset/</link>
		<comments>http://trentwalton.com/2010/11/22/css-box-shadowinset/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 14:29:57 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=4013</guid>
		<description><![CDATA[You’ve gotta appreciate the imageless design elements the CSS box-shadow property makes possible. No more slicing up 3 jpgs to recreate the depth so easily gained in Photoshop. Lately, we’ve been using box-shadow:inset on some Paravel jobs, and I’ve seem some clever uses out there on the intertubes. This property is compatible with Webkit (Safari &#38; Chrome), Firefox, Opera, and IE9, so there’s no reason to hold off... <a href="http://trentwalton.com/2010/11/22/css-box-shadowinset/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>You’ve gotta appreciate the imageless design elements the CSS <a href="http://www.w3.org/TR/css3-background/#the-box-shadow">box-shadow</a> property makes possible.  No more slicing up 3 jpgs to recreate the depth so easily gained in Photoshop.  Lately, we’ve been using box-shadow:inset on some Paravel jobs, and I’ve seem some clever uses out there on the intertubes.  This property is compatible with Webkit (Safari &amp; Chrome), Firefox, Opera, and IE9, so there’s no reason to hold off using it as an enhancement on the page you’re working on right now.</p>
<div class="clearfix" style="margin-bottom:46px;">
<div class="grid_4 alpha">
<a href="http://campwapo.org/"><img src="/wp-content/uploads/2010/11/wapo.png" alt="box-shadow: inset" style="margin-bottom:11px;"/></a><br />
When building <a href="http://campwapo.org/">Camp Wapo</a>, we used inset on the action item buttons.
</div>
<div class="grid_4 omega">
<a href="http://letteringjs.com/"><img src="/wp-content/uploads/2010/11/lettering.png" alt="box-shadow: inset" style="margin-bottom:11px;"/></a><br />
<a href="http://letteringjs.com/">Lettering.js</a> has an inset hover state on each of the linked images.
</div>
</div>
<div class="clearfix" style="margin-bottom:46px;">
<div class="grid_4 alpha">
<a href="http://books.alistapart.com/"><img src="/wp-content/uploads/2010/11/abapt.png" alt="box-shadow: inset" style="margin-bottom:11px;"/></a><br />
The feature box on <a href="http://books.alistapart.com/">A Book Apart</a> has a nice vignette shadow framing the div.
</div>
<div class="grid_4 omega">
<a href="http://rdio.com"><img src="/wp-content/uploads/2010/11/rdio.png" alt="box-shadow: inset" style="margin-bottom:11px;"/></a><br />
When logged out, the <a href="http://rdio.com">Rdio</a> homepage employs inset shadows on their features list.
</div>
</div>
<p>Now, what about images?  It’d be nice to be able to add a vignetting effect to photos sans-Photoshop, but the way browsers interpret box-shadow:inset is to throw the shadow behind the image, rendering it invisible. While this seems pretty useless, it does make sense when you consider other kinds of content.  For example, if you inset a shadow you probably wouldn’t want it overshadowing the text within.
<div class="clearfix" style="margin-bottom:46px;">
<div class="grid_4 alpha">
<div class="vignette" style="float: left; margin: 4px 0 23px; box-shadow:inset 0px 0px 85px rgba(0,0,0,.5);-webkit-box-shadow:inset 0px 0px 85px rgba(0,0,0,.5);-moz-box-shadow:inset 0px 0px 85px rgba(0,0,0,.5);"><img src="/wp-content/uploads/2010/11/mustang.png" alt="box-shadow: inset" class="car_photo" style="z-index: -1;position: relative;margin: 0 0 -.5em 0!important;"/></div>
</div>
<div class="grid_4 omega">
A reasonable way to circumvent this issue would be to wrap the image in a div or a span element and employ some basic z-indexing. See the example code provided below.  While this method gets the job done, I wonder if it’d be sensible to update the <a href="http://www.w3.org/TR/css3-background/#box-shadow">CSS Working Draft</a> to allow for inset shadows to be displayed on top when applied directly to an image.  Despite the inconsistency, it seems intuitive to me and would ultimately lead to cleaner, simpler markup.
</div>
</div>
<p><code>&#60;div class="vignette"&#62;<br />
&#60;img src="mustang.png" alt="mustang" class="car_photo"/&#62;<br />
&#60;/div&#62;</code><br />
<code>.vignette{<br />
	box-shadow:inset 0px 0px 85px rgba(0,0,0,.5);<br />
	-webkit-box-shadow:inset 0px 0px 85px rgba(0,0,0,.5);<br />
	-moz-box-shadow:inset 0px 0px 85px rgba(0,0,0,.5);<br />
}</code><br />
<code>img.car_photo{<br />
	z-index: -1;<br />
	position: relative;<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2010/11/22/css-box-shadowinset/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>CSS3 Border-Radius &amp; Rounded Avatars</title>
		<link>http://trentwalton.com/2010/08/03/css3-border-radius-rounded-avatars/</link>
		<comments>http://trentwalton.com/2010/08/03/css3-border-radius-rounded-avatars/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 19:03:45 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DesignSwap]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=3780</guid>
		<description><![CDATA[Originally when I CSSed the round avatars on the DesignSwap comments area, I used the -webkit-mask-image property. I was really proud of how neat and effective this was until I realized you could apply border-radius to an image directly. To achieve a round avatar with a 2px beige border, I applied the following CSS to an avatar loading within a div class called avatar-frame. .avatar-frame{border: 2px solid #c7b89e;}... <a href="http://trentwalton.com/2010/08/03/css3-border-radius-rounded-avatars/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://trentwalton.com/wp-content/uploads/2010/08/rounded_avatars.png" alt="CSS Rounded Avatars with Border-Radius" title="rounded_avatars" width="235" height="150" class="alignright size-full wp-image-3794" />Originally when I CSSed the round avatars on the <a href="http://design-swap.com/2010/06/28/inaugural-swap/#comments">DesignSwap comments area</a>, I used the <a href="http://webkit.org/blog/181/css-masks/">-webkit-mask-image</a> property.  I was really proud of how neat and effective this was until I realized you could apply border-radius to an image directly.  To achieve a round avatar with a 2px beige border, I applied the following CSS to an avatar loading within a div class called avatar-frame.</p>
<p><code>.avatar-frame{border: 2px solid #c7b89e;}<br />
.avatar-frame,.avatar-frame img{<br />
	width: 50px;<br />
	height: 50px;<br />
	-webkit-border-radius: 30px; /* Saf3+, Chrome */<br />
	border-radius: 30px; /* Opera 10.5, IE 9 */<br />
	/*-moz-border-radius: 30px;  Disabled for FF1+ */<br />
	}</code></p>
<p>I love this solution.  It yields rounded avatars with no additional images or scripts loading, just an extra line of code. The -moz prefix is disabled here because Firefox doesn’t support this, though they really should.  CSS for -moz-border-radius of course works for the div, <a href="http://www.flickr.com/photos/trentwalton/4857417877/">but not the img</a>.  On the bright side, it degrades quite nicely into a square avatar with a 2px border.</p>
<p>Opera is another matter altogether.  Because it utilizes the general ‘border-radius’ CSS and doesn’t apply it to an img, Opera displays a square image with a rounded border.  I’d say this is a great example of where browser-specific prefixes come in handy.  It’d be nice to disable this for Opera until it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2010/08/03/css3-border-radius-rounded-avatars/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>CSS3 Multi-Column Layout &amp; Column-Count</title>
		<link>http://trentwalton.com/2010/07/19/css3-multi-column-layout-column-count/</link>
		<comments>http://trentwalton.com/2010/07/19/css3-multi-column-layout-column-count/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 22:11:04 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Webkit]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=3694</guid>
		<description><![CDATA[I use the column-count &#38; column-gap property on the search page of this site to break my Tags list into 4 columns.  Because the content is dynamic, I couldn’t just hard code each column, and I didn’t want to waste kilobytes on running a WordPress plugin to achieve an effect that was possible with a single line of CSS. Currently, only firefox and webkit browsers supports this feature... <a href="http://trentwalton.com/2010/07/19/css3-multi-column-layout-column-count/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>I use the <a href="http://www.w3.org/TR/css3-multicol/">column-count &amp; column-gap</a> property on the search page of this site to break my Tags list into 4 columns.  Because the content is dynamic, I couldn’t just hard code each column, and I didn’t want to waste kilobytes on running a WordPress plugin to achieve an effect that was possible with a single line of CSS. Currently, only firefox and webkit browsers supports this feature and they all seem to do it differently.  I’ve noticed that Mobile Safari, Safari and Firefox each render the exact same column-count CSS differently.</p>
<p>My HTML is simply a dynamic unordered list and my CSS looks like this:<br />
<em>Note: the Opera and universal code is future proofing &amp; wishful thinking.</em><br />
<code>.tag_list ul {<br />
-webkit-column-count: 4; -webkit-column-gap:20px;<br />
-moz-column-count:4; -moz-column-gap:20px;<br />
-o-column-count:4; -o-column-gap:20px;<br />
column-count:4; column-gap:20px;<br />
}</code></p>
<div class="clearfix" style="margin-bottom:46px;">
<div class="grid_4 alpha">
<img src="/wp-content/uploads/2010/07/column_count_safari.jpg" alt="css column count" style="margin-bottom:11px;"/><br />
<strong>Safari / Chrome</strong> shuffles an extra item into the last column &amp; hides my last tag.
</div>
<div class="grid_4 omega">
<img src="/wp-content/uploads/2010/07/column_count_mobilesafari.jpg" alt="css column count" style="margin-bottom:11px;"/><br />
<strong>Mobile Safari</strong> does better, showing all tags &amp; arraying them in left-hand columns first.
</div>
</div>
<div class="clearfix" style="margin-bottom:46px;">
<div class="grid_4 alpha">
<img src="/wp-content/uploads/2010/07/column_count_firefox.jpg" alt="css column count" style="margin-bottom:11px;"/><br />
<strong>Firefox</strong> performs fairly well, filling out each column from left to right.
</div>
<div class="grid_4 omega">
<img src="/wp-content/uploads/2010/07/column_count_opera.jpg" alt="css column count" style="margin-bottom:11px;"/><br />
<strong>Opera</strong> doesn’t <em>currently</em> offer support for column-count.
</div>
</div>
<p>Admittedly, this property needs quite a bit more hashing out before I’d recommend implementing it on the home page of a client site.  That being said, I’m happy to continue to use this for my Tags list.  It’s lightweight, efficient and a constant reminder that the web is ever-evolving.</p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2010/07/19/css3-multi-column-layout-column-count/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS Webkit Appearance</title>
		<link>http://trentwalton.com/2010/07/14/css-webkit-appearance/</link>
		<comments>http://trentwalton.com/2010/07/14/css-webkit-appearance/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:26:07 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=3627</guid>
		<description><![CDATA[I did my fair share of testing this site on an iPad during development. In most cases, the version of Mobile Safari found on the iPad renders pages like any other standards-based browser. Only when I got to native UI elements like search boxes &#38; text fields did I notice an inconsistency. A pre-set styling was being applied in the way of an inner shadow to text input... <a href="http://trentwalton.com/2010/07/14/css-webkit-appearance/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>I did my fair share of testing this site on an iPad during development. In most cases, the version of Mobile Safari found on the iPad renders pages like any other standards-based browser. Only when I got to native UI elements like search boxes &amp; text fields did I notice an inconsistency. A pre-set styling was being applied in the way of an inner shadow to text input fields and a gradient overlay to search / submit buttons, which also got rounded corners.</p>
<p><img class="alignright " title="whusky Quote" src="/wp-content/uploads/2010/07/appearance_native.png" alt="webkit appearance" width="660" height="220"/><br />
After picking through <a href="http://developer.apple.com/safari/library/documentation/appleapplications/reference/SafariCSSRef/Articles/StandardCSSProperties.html%23//apple_ref/doc/uid/TP30001266-ColorsandBackgrounds">Safari’s CSS Reference</a> I found <code class="paragraphcode">-webkit-appearance</code>, which changes the appearance of buttons &amp; controls to resemble a native apple UI. I added this code for comment &amp; search forms to retain the basic style I defined in my CSS: <code class="paragraphcode">-webkit-appearance:none;</code></p>
<p><img class="alignright " title="whusky Quote" src="/wp-content/uploads/2010/07/appearance_ok.png" alt="webkit appearance" width="660" height="220" /></p>
<p>There are quite a few parameters for this property that you may want to take advantage of and/or watch out for.  Also, If you simply wanted to <a href="http://www.shauninman.com/archive/2010/04/22/disable_the_default_inner_shadow_of_search_inputs_on_the_ipad">disable inner-shadows of input fields</a> you could just use <code class="paragraphcode">-webkit-appearance:caret;</code>.</p>
<div class="grid_4 alpha">
<ul>
<li>button</li>
<li>button-bevel</li>
<li>caret</li>
<li>checkbox</li>
<li>default-button</li>
<li>listbox</li>
<li>listitem</li>
<li>media-fullscreen-button</li>
<li> media-mute-button</li>
<li>media-play-button</li>
<li> media-seek-back-button</li>
<li>media-seek-forward-button</li>
<li>media-slider</li>
<li>media-sliderthumb</li>
<li>menulist</li>
<li>menulist-button</li>
<li>menulist-text</li>
</ul>
</div>
<div class="grid_4 omega">
<ul>
<li>menulist-textfield</li>
<li>none</li>
<li>push-button</li>
<li>radio</li>
<li>searchfield</li>
<li>searchfield-cancel-button</li>
<li>searchfield-decoration</li>
<li>searchfield-results-button</li>
<li>searchfield-results-decoration</li>
<li>slider-horizontal</li>
<li> slider-vertical</li>
<li>sliderthumb-horizontal</li>
<li> sliderthumb-vertical</li>
<li>square-button</li>
<li>textarea</li>
<li>textfield</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2010/07/14/css-webkit-appearance/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>CSS Text-Rendering</title>
		<link>http://trentwalton.com/2010/06/29/css-text-rendering/</link>
		<comments>http://trentwalton.com/2010/06/29/css-text-rendering/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 23:13:54 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Typography]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=3548</guid>
		<description><![CDATA[This morning I saw a couple of tweets from @seangaffney and @maxvoltar about the CSS text-rendering property, which is in the W3C Working Draft. Aesthetically Loyal has outlined the differences in kerning pairs and browser support for text-rendering: optimizeLegibility; quite nicely, and after seeing how well capital As, Vs, Ys and Ts display I had to test it for myself. Similar to Kyle Meyer’s experiment, I noticed a... <a href="http://trentwalton.com/2010/06/29/css-text-rendering/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>This morning I saw a couple of tweets from <a href="http://twitter.com/seangaffney/status/17337353058">@seangaffney</a> and <a href="http://twitter.com/maxvoltar/status/17320205469">@maxvoltar</a> about the CSS text-rendering property, which is in the <a href="http://bit.ly/aWMOfx">W3C Working Draft</a>. Aesthetically Loyal <a href="http://www.aestheticallyloyal.com/public/optimize-legibility/">has outlined the differences</a> in kerning pairs and browser support for <code class="paragraphcode">text-rendering: optimizeLegibility;</code> quite nicely, and after seeing how well capital As, Vs, Ys and Ts display I had to <a href="http://www.flickr.com/photos/trentwalton/4745769395/">test it for myself</a>.</p>
<p><a href="http://www.flickr.com/photos/trentwalton/4745769395/"><img src="http://trentwalton.com/wp-content/uploads/2010/06/compared_type.png" alt="compared type" title="compared_type" width="623" height="97" class="alignnone size-full wp-image-3549" /></a></p>
<p>Similar to <a href="http://www.flickr.com/photos/astheria/4746257080/">Kyle Meyer’s experiment</a>, I noticed a significant improvement and added the property to my body CSS for this site.  Overall, type looks much tighter and successive capital letters, like “CSS”, seem more evenly spaced.  Firefox uses <a href="https://developer.mozilla.org/en/CSS/text-rendering">optimizeLegibility by default</a> for font sizes 20px or larger and I agree with <a href="http://twitter.com/paul_irish/status/17344051808">Paul Irish’s</a> thought that <a href="https://bugs.webkit.org/show_bug.cgi?id=41363">Webkit should do the same</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2010/06/29/css-text-rendering/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS3 Background-Clip &amp; @Font-Face</title>
		<link>http://trentwalton.com/2010/04/06/css3-background-clip-font-face/</link>
		<comments>http://trentwalton.com/2010/04/06/css3-background-clip-font-face/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 15:02:33 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://trentwalton.com/?p=3019</guid>
		<description><![CDATA[With no clear purpose or plan, I’ve resolved to experiment with CSS3 on a regular basis. Some of these note-posts may be more useful and practical than others, but the only way to know for sure is to learn by doing. That being said, here is another experiment with background-clip: text and @font-face via Typekit. When I finished Volume 2 in my Quoting Lebowski series the first thing... <a href="http://trentwalton.com/2010/04/06/css3-background-clip-font-face/">Read more</a>]]></description>
			<content:encoded><![CDATA[<p>With no clear purpose or plan, I’ve resolved to experiment with CSS3 on a regular basis.  Some of these note-posts may be more useful and practical than others, but the only way to know for sure is to learn by doing.  That being said, here is another experiment with background-clip: text and @font-face via <a href="http://typekit.com/">Typekit</a>.  When I finished <a href="http://trentwalton.com/2010/04/05/quoting-lebowski-vol-2/">Volume 2</a> in my <a href="http://dribbble.com/search?q=trent+walton+lebowski&#038;x=0&#038;y=0">Quoting Lebowski series</a> the first thing that came to mind was that I bet I could CSS this.  Here is the webkit happy code for this <a href="http://trentwalton.com/css3/type/">live example</a>, sparing you all the structural bits from <a href="http://trentwalton.com/css3/type/css/style.css">style.css</a>:</p>
<p><code>.itried {font-size: 50px;}<br />
.css {font-size: 206px;letter-spacing: 5px;line-height: 1;}<br />
.itworked {<br />
	font: italic 60px/0 "bistro-script-web-1","bistro-script-web-2", cursive;<br />
	text-transform: lowercase;<br />
	margin-bottom: 20px;<br />
	margin-top:20px;<br />
	}</code><br />
<code>.hoo {font-size: 258px;letter-spacing: 5px;line-height: 1;}<br />
.view {font-size: 57px;margin-top: -15px;}<br />
.hoo, .css {text-shadow: #4a8d97 3px 3px 0;}<br />
.css:after, .hoo:after {<br />
	background: url(../img/crosshatch.png) repeat;<br />
	-webkit-background-clip: text;<br />
	-webkit-text-fill-color: transparent;<br />
	text-shadow: none;<br />
	display: block;<br />
	z-index: -5;<br />
	}</code><br />
<code>.css:after {content:"CSS Three";margin-top: -198px;margin-left: 16px;}<br />
.hoo:after {content:"Hooray!"; margin-top: -250px;margin-left: 18px;}</code><br />
<code><br />
.line-left, .line-right {<br />
	border-bottom: 2px solid #2a4f54;<br />
	width: 160px;<br />
	display: inline-block;<br />
	margin-bottom: -30px;<br />
	}</code><br />
<code>.line-left {float: left;margin-top: 36px;margin-left: 15px;}<br />
.line-right {float: right;margin-top: -34px;margin-right: 15px;}</code></p>
<p>Some of the class styles may seem oddly titled.  I sourced them from the first few letters from each line of text. At the moment this will only work in webkit, so fire up <a href="http://www.apple.com/safari/download/">Safari</a> or <a href="http://www.google.com/chrome">Google Chrome</a> and check out the example.</p>
<p><strong>Update</strong>: Thanks to <a href="http://twitter.com/iJess">Jess Brown</a>’s recent <a href="http://dribbble.com/shots/13810--after-Background-Clip">contribution via Dribbble</a>, I’ve been able to revise the code, retaining the double shading effect without having to resort to coding the same text twice.</p>
<div class="demo_link"><a href="http://trentwalton.com/css3/type/">View Example</a></div>
]]></content:encoded>
			<wfw:commentRss>http://trentwalton.com/2010/04/06/css3-background-clip-font-face/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/45 queries in 0.013 seconds using disk: basic
Object Caching 858/958 objects using disk: basic

Served from: trentwalton.com @ 2012-05-21 04:23:13 -->
