<?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>Advanced CSS Design Resources - last-child.com &#187; Accessibility</title>
	<atom:link href="http://www.last-child.com/category/accessibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Mon, 19 Dec 2011 18:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Debugging aria-label on elements</title>
		<link>http://www.last-child.com/debugging-aria-label/</link>
		<comments>http://www.last-child.com/debugging-aria-label/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 18:30:15 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[ARIA]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Span]]></category>
		<category><![CDATA[aria-label]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=300</guid>
		<description><![CDATA[I recently helped do some testing on the new version Yahoo! Mail for iPads and was stumped by an aria-label not working as expected. It was one of those gotcha moments, when you realize a confusion with a fundamental process. Are you wondering why your aria-label is not being announced? The aria-label attribute is tempting [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.last-child.com/wp-content/uploads/2011/12/forecast-icons.png" alt="Sat, Sun, Mon - Forecast icons" width="89" height="110" class="alignright size-full wp-image-302" />I recently helped do some testing on the new version <a href="http://mail.yahoo.com">Yahoo! Mail</a> for iPads and was stumped by an aria-label not working as expected. It was one of those gotcha moments, when you realize a confusion with a fundamental process. Are you wondering why your aria-label is not being announced?</p>
<p>The aria-label attribute is tempting to use in situations where the visible text is not adequate.  For instance, you may use a background image to represent a value and you&#8217;d like the user to know that value via an aria-label on the parent. </p>
<p>This basic test page will walk through the simple assumption and show how the aria-label is meant to be used.</p>
<h3>Base configuration</h3>
<ul>
<li><a href="/" aria-label="this basic link has an aria label attribute" >basic link</a><br />
<code>&lt;a href=&quot;/&quot; aria-label=&quot;this basic link has an aria label attribute&quot; &gt;basic link&lt;/a&gt;</code></li>
<li><span aria-label="this basic span has an aria label attribute">basic span</span><br />
<code>&lt;span aria-label=&quot;this basic span has an aria label attribute&quot;&gt;basic span&lt;/span&gt;</code></li>
<li><b aria-label="this basic b has an aria label attribute">basic bold</b><br />
<code>&lt;b aria-label=&quot;this basic b has an aria label attribute&quot;&gt;basic bold&lt;/b&gt;</code></li>
</ul>
<h4>Give &lt;span&gt; and &lt;b&gt; tabindex=&quot;0&quot; to place into tab flow</h4>
<p>Span and b tags are not in the native tab flow. I added tabindex=&quot;0&quot; to see if that was the problem. Now that we can give them focus, the aria-label is still ignored.</p>
<ul>
<li><span aria-label="this basic span has an aria label attribute" tabindex="0">basic span</span><br />
<code>&lt;span aria-label=&quot;this basic span has an aria label attribute&quot; tabindex=&quot;0&quot;&gt;basic span&lt;/span&gt;</code></li>
<li><b aria-label="this basic b has an aria label attribute" tabindex="0">basic bold</b><br />
<code>&lt;b aria-label=&quot;this basic b has an aria label attribute&quot; tabindex=&quot;0&quot;&gt;basic bold&lt;/b&gt;</code></li>
</ul>
<h3>What&#8217;s going wrong</h3>
<p><a href="http://yaccessibilityblog.com/library/tag/aria">ARIA</a> is a tool to make our web sites more accessible. It&#8217;s meant to restore semantic structure and act as a bridge between dynamic web sites and assistive technology. ARIA roles, states, and values allow the web developer to give directions to assistive technology to explain how an element should be treated. This is especially true when the element is expected to work in a non-standard method. For instance, <a href="http://yaccessibilityblog.com/library/aria-fix-non-standard-images.html">Flickr uses divs with background images</a> as images to improve animation on mobile devices.</p>
<p>The aria-label attribute allows us to place a label on these elements that have been re-purposed via JavaScript. It&#8217;s not meant to replace the title attribute on generic tags. </p>
<h3>Convert elements with aria</h3>
<p>The following elements now have ARIA roles: button, img, and slider. These ARIA roles announce the new purpose of these elements. Their aria-label attributes are announced, as they are adding information to these faux-elements. </p>
<ul>
<li><a href="/" aria-label="this link is now a button" role="button">basic link</a><br />
<code>&lt;a href=&quot;/&quot; aria-label=&quot;this link is now a button&quot; role=&quot;button&quot;&gt;basic link&lt;/a&gt;</code></li>
<li><span aria-label="this span is now treated as an image." role="img" class="fakeimg" tabindex="0">basic span</span><br />
<code>&lt;span aria-label=&quot;this span is now treated as an image.&quot; role=&quot;img&quot; class=&quot;fakeimg&quot; tabindex=&quot;0&quot;&gt;basic span&lt;/span&gt;</code></li>
<li><b aria-label="this b is now treated as a slider" role="radio" tabindex="0">basic bold</b><br />
<code>&lt;b aria-label=&quot;this b is now treated as a radio button&quot; role=&quot;radio&quot; tabindex=&quot;0&quot;&gt;basic bold&lt;/b&gt;</code></li>
</ul>
<h3>Back to the original problem</h3>
<p><img src="http://www.last-child.com/wp-content/uploads/2011/12/forecast-icons.png" alt="Sat, Sun, Mon - Forecast icons" width="89" height="110" class="alignright size-full wp-image-302" /> In the forecast example, the original idea was to put aria-label on the span that included the text &#8220;Sat&#8221;, &#8220;Sun&#8221;, or &#8220;Mon&#8221;. The aria-label described the weather illustrated in the icon. After realizing this was not working, we realized it was being over-thought. The icons were background images, we just needed to add the desired text to the background image container. </p>
<p>ARIA is a great way to solve problems. However, it wasn&#8217;t meant to replace basic HTML.  Here&#8217;s a proposed solution sans ARIA:</p>
<pre>
<code>
&lt;th scope="row" title=&quot;Saturday&quot;&gt;Sat&lt;/th&gt;
&lt;td class=&quot;cloudy&quot;&gt;&lt;span class=&quot;visuallyhidden&quot;&gt;Cloudy&lt;/span&gt;&lt;/td&gt;
</code>
</pre>
<h3>Resources</h3>
<ul>
<li><a href="http://www.w3.org/TR/wai-aria/roles#textalternativecomputation">ARIA Text Alternative Computation</a></li>
<li><a href="http://www.w3.org/TR/wai-aria/states_and_properties#aria-label">Spec for aria-label</a></li>
<li><a href="http://yaccessibilityblog.com/library/css-clip-hidden-content.html" >Clip your hidden content for better accessibility</a></li>
<li><a href="http://yaccessibilityblog.com/library/dynamic-form-labels-aria.html">Create Dynamic Form Labels with ARIA</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/debugging-aria-label/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design for users with Cognitive Disabilities</title>
		<link>http://www.last-child.com/design-cognitive-disabilities/</link>
		<comments>http://www.last-child.com/design-cognitive-disabilities/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 16:58:08 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[cognitive disability]]></category>
		<category><![CDATA[dyslexia]]></category>
		<category><![CDATA[slideshare]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=296</guid>
		<description><![CDATA[Ruth Ellison created this presentation about cognitive disabilities. It&#8217;s difficult to design for these users due to the wide spectrum of disability impact and what helps one person may cause problems for another. However, there are some solid suggestions in this presentation that will help you create a more accessible web site. Designing for cognitive [...]]]></description>
			<content:encoded><![CDATA[<p>Ruth Ellison created this presentation about cognitive disabilities. It&#8217;s difficult to design for these users due to the wide spectrum of disability impact and what helps one person may cause problems for another. However, there are some solid suggestions in this presentation that will help you create a more accessible web site.</p>
<div style="width:425px" id="__ss_8990819"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/RuthEllison/designing-for-cognitive-disabilities" title="Designing for cognitive disabilities" target="_blank">Designing for cognitive disabilities</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/8990819" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/RuthEllison" target="_blank">Ruth Ellison</a> </div>
</p></div>
<p>It helps to view this on slideshare to view the presenter&#8217;s notes on each slide. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/design-cognitive-disabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ARIA support with the YUI library</title>
		<link>http://www.last-child.com/aria-support-with-the-yui-library/</link>
		<comments>http://www.last-child.com/aria-support-with-the-yui-library/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 16:15:51 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=157</guid>
		<description><![CDATA[AJAX and DHTML have made web sites more interactive and easier to use. At least for visitors who are not using a screen reader. Screen reader users have to struggle with pages that lose focus, change without prompting the user of new data, and much more. However, there are many developers working on solutions to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" title="Ajax (programming)" rel="wikipedia" class="zem_slink">AJAX</a> and <a href="http://en.wikipedia.org/wiki/Dynamic_HTML" title="Dynamic HTML" rel="wikipedia" class="zem_slink">DHTML</a> have made  web sites more interactive and easier to use. At least for visitors who are  not using a screen reader. Screen reader users have to struggle with pages that lose focus, change without prompting the user of new data, and much more. However, there are many developers working on solutions to this problem.</p>
<p>Todd Kloots, of the Yahoo User Interface group was one of the first to develop accessible javascript libraries with the YUI menu package. He just published a blog post on the YUI web site about adding ARIA support to the YUI tab package. This information could also help you add this functionality to your existing YUI-based applications. </p>
<p>Here&#8217;s how Todd describes the goal</p>
<blockquote cite="http://yuiblog.com/blog/2008/07/30/tabview-aria/">
<p>
The <a href="http://developer.yahoo.com/yui/tabview/">YUI TabView Control</a> is built on a strong<br />
foundation of semantic markup that provides users with some basic accessibility.  But while TabView looks like a desktop tab control, <a href="http://en.wikipedia.org/wiki/Screen_reader" title="Screen reader" rel="wikipedia" class="zem_slink">screen readers</a> don’t present it as an atomic<br />
widget, leaving users to figure out how the various HTML elements that compose a TabView relate to each other.  However, through the application of the <a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA Roles and States</a>, it is possible to enhance TabView’s accessibility such that users of screen readers perceive it as a desktop tab control.
</p>
<p><cite><a href="http://yuiblog.com/blog/2008/07/30/tabview-aria/">Enhancing TabView Accessibility with WAI-ARIA Roles and States</a>  &#8211; Todd Kloots</cite>
</p></blockquote>
<p>The following video shows how this approach works with Firefox and a screen reader.</p>
<div><object height="322" width="512"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.17"><param name="allowFullScreen" value="true"><param name="bgcolor" value="#000000"><param name="flashVars" value="id=9051193&amp;vid=3199866&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4371/69134473.jpeg&amp;embed=1"><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.17" type="application/x-shockwave-flash" allowfullscreen="true" bgcolor="#000000" flashvars="id=9051193&amp;vid=3199866&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4371/69134473.jpeg&amp;embed=1" height="322" width="512"></object><br /><a href="http://video.yahoo.com/watch/3199866/9051193">YUI TabView with ARIA roles and states/Todd Kloots</a> @ <a href="http://video.yahoo.com">Yahoo! Video</a></div>
<h3>Related articles </h3>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://arstechnica.com/news.ars/post/20080708-ibm-makes-web-accessibility-for-blind-users-a-social-effort.html">IBM makes web accessibility for blind users a social effort</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/accessible-google-charts">Accessible Google Charts</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/axsjax-access-enabling-ajax">AxsJAX: Access-Enabling AJAX</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.nytimes.com/idg/IDG_852573C4006938800025747F007CBD5E.html?partner=rssnyt&amp;emc=rss">I.B.M. Software Enhances Web Accessibility for the Blind</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.ajaxperformance.com/2007/08/29/quick-follow-up-more-yui-compressor-work/">Quick follow-up: more YUI Compressor work</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/high-performance-ajax-applications">High Performance Ajax Applications</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/reminded-of-speaking-your-yahoolang">Reminded of speaking your YAHOO.lang</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/aria-support-with-the-yui-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Progressive enhancement of links using the CSS attribute selector</title>
		<link>http://www.last-child.com/css-attribute-selector/</link>
		<comments>http://www.last-child.com/css-attribute-selector/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 20:13:00 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:after]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[min-height]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[selector]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=152</guid>
		<description><![CDATA[Attribute Selector Test Page We have avoided using CSS3 rules for too long. It&#8217;s been difficult to justify using rules that won&#8217;t work for a significant portion of our audience, Internet Explorer 7 and below. However, Internet Explorer 8 is coming out soon and does work with the features we like. I think it&#8217;s fairly [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/examples/attrib-files/index.html">Attribute Selector Test Page </a></p>
<p>
We have avoided using CSS3 rules for too long. It&#8217;s been difficult to justify using rules that won&#8217;t work for a significant portion of our audience, Internet Explorer 7 and below.  However, Internet Explorer 8 is coming out soon and does work with the features we like. </p>
<p>
 I think it&#8217;s fairly safe to assume IE7 users will upgrade to IE8 within a short time. Those stuck with IE6 for one reason or another will slowly disappear as they are given new computers or their locked down environments are upgraded.</p>
<p>
So, with the future of CSS3 functionality within reach, I&#8217;ve been energized to begin experimenting again.  I&#8217;ll be writing a series of blog posts over the next few months that look at CSS3 functionality as a progressive enhancement. How can we continue to deliver a perfectly fine web site to IE6 and IE7 and mobile phones while enhancing the functionality of more modern browsers and devices?</p>
<h3>Attribute Selectors</h3>
<p>
CSS attribute selectors are the golden ring on the web development merry-go-round. They can be daunting to learn, addictive to use, but then disappointing when you realize they are out of your grasp when you test in Internet Explorer.  We can, however, begin using them to add additional functionality based on your pre-existing, semantic code. Attribute selectors give you power to write CSS that pinpoints the stuff you already code, without having to go back and add classes or ids. I&#8217;ve written previously about <a href="/attribute-selectors-to-provide-language-information/">using attribute selectors to let your users know the language of a site they are about to visit</a>. This trick relies on the rarely used hreflang attribute, which identifies the language of the site targeted in a link.</p>
<p>
There are many other attributes in your HTML, from <a href="http://www.w3.org/TR/html4/struct/tables.html#h-11.4.1">table headers</a>, <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-src-IMG">image src</a>,  <a href="http://www.w3.org/TR/html401/struct/links.html#h-12.1.4">link titles</a>, and <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.6.1">selected options</a>. Think about all of those juicy attributes just waiting to be targeted. Also think about how you could actually do something useful with them.</p>
<h3>Announce the file type of a link with CSS</h3>
<p>
I once worked for a company that had hundreds of thousands of static HTML pages in their intranet. With no content management system; it was impossible to make global changes. The only thing they shared was a common set of style sheets. Does this sound familiar?  Follow along as we increase your site&#8217;s usability in a less than perfect, but efficient way. </p>
<p>
First off, for accessibility, you need to let users know when a link  will open a file, what type it is, and how large it is. This is best done by adding it to your HTML code:</p>
<p><code lang="HTML"><br />
<a href="foo.pdf" class="pdf">Foo presentation (.pdf, 5kb)</a><br />
</code></p>
<p>That delivers the information to everyone, regardless of their browser.  This, however takes time and is a daunting task for updating legacy code. </p>
<p>
We can, however, use the <a href="http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#attribute-selectors">atttribute selector</a> to target the extension of the link to display the icon and insert the text describing the file type. Here&#8217;s the sample HTML code:</p>
<p><code lang="HTML"></p>
<ul>
<li><a href="foo.zip" >sample zip link</a></li>
<li><a href="foo.pdf" >sample pdf link</a></li>
<li><a href="foo.doc" >sample Word link</a></li>
<li><a href="foo.exe" >sample Executable link</a></li>
<li><a href="foo.png" >sample png image</a></li>
<li><a href="foo.mp3" >sample MP3 file </a></li>
</ul>
<p></code><br />
It&#8217;s a simple list of links for different types of files. We&#8217;ll be looking at the extensions: .zip, .pdf, .doc, .exe, .png, and .mp3. Feel free to extend this list to any extension you so desire. This would be especially helpful for a company that uses proprietary file types within their intranet.</p>
<p>
Now, let&#8217;s look at the CSS:</p>
<p><code lang="CSS"><br />
a[href$="zip"],<br />
a[href$="pdf"],<br />
a[href$="doc"],<br />
a[href$="exe"],<br />
a[href$="png"],<br />
a[href$="mp3"]  {padding-left:20px; background:url(bg-file-icons.png) no-repeat 0 0;}<br />
a[href$="png"]{background-position: 0 -48px;}<br />
a[href$="pdf"] {background-position: 0 -99px;}<br />
a[href$="mp3"]{background-position: 0 -145px;}<br />
a[href$="doc"]{background-position: 0 -199px;}<br />
a[href$="exe"]{background-position: 0 -250px;}</p>
<p>a[href$=".zip"]:after{content: "(.zip file)"; color:#999; margin-left:5px;}<br />
a[href$=".pdf"]:after{content: "(.pdf file)"; color:#999; margin-left:5px;}<br />
a[href$=".doc"]:after{content: "(.doc file)"; color:#999; margin-left:5px;}<br />
a[href$=".exe"]:after{content: "(.exe file)"; color:#999; margin-left:5px;}<br />
a[href$=".mp3"]:after{content: "(.mp3 file)"; color:#999; margin-left:5px;}<br />
a[href$=".png"]:after{content: "(.png file)"; color:#999; margin-left:5px;}<br />
a[href$=".exe"]:after{content: "(.exe file)"; color:#999; margin-left:5px;}<br />
</code></p>
<p><a href="/examples/attrib-files/index.html">See the final test page.</a></p>
<h4>Pattern matching in the attribute selector</h4>
<p>We have some limited &#8220;regular expression&#8221; functionality in CSS3. We can search for an attribute&#8217;s presence and match a pattern within the attribute&#8217;s value.<br />
<a href="http://www.hunlock.com/">Patrick Hunlon</a> has a good summary of the pattern matching: </p>
<blockquote cite="http://www.hunlock.com/blogs/Attach_icons_to_anything_with_CSS">
<ul>
<li>[foo]        &#8212; Has an attribute named &#8220;foo&#8221;</li>
<li>[foo="bar"]  &#8212; Has an attribute named &#8220;foo&#8221; with a value of &#8220;bar&#8221; (&#8220;bar&#8221;)</li>
<li>[foo~="bar"] &#8212; Value has the word &#8220;bar&#8221; in it somewhere (&#8220;blue bar stools&#8221;)</li>
<li>[foo^="bar"] &#8212; Value begins with &#8220;bar&#8221; (&#8220;barstool&#8221;)</li>
<li>[foo$="bar"] &#8212; Value ends with &#8220;bar&#8221; (&#8220;I was at the bar&#8221;)</li>
<li>[foo*="bar"] &#8212; Value has bar somewhere (&#8220;I was looking for barstools&#8221;)  </li>
</ul>
<p><cite><a href="http://www.hunlock.com/blogs/Attach_icons_to_anything_with_CSS">Attach icons to anything with CSS</a></cite>
</p></blockquote>
<p>
The CSS is simply looking to see if the desired extension is at the end of the link href. If so, apply the following styles. </p>
<h4>Adding an icon to the link</h4>
<p>First, we are match any of the desired file extensions.  We then add a background image and some padding on the left side with a bulk rule. Then  the background position on the sprite is adjust for each particular link type. Combining multiple icons into one background image reduces the number of files the user has to download, <a href="http://developer.yahoo.com/performance/rules.html#opt_sprites">making your page faster</a>. This will work with any browser that recognizes attribute selectors, including Internet Explorer 7. However, support for more obscure attributes may be spotty.</p>
<p>
There&#8217;s another peculiarity with pattern matching. Some attributes are case sensitive while others are not. The href attribute is NOT case sensitive, so the above rules will also work if your image name was <em>FOO.ZIP</em>, <em>foo.Zip</em>, or <em>foo.zip</em>.</p>
<h4>Adding the descriptive text</h4>
<p>Now, we are going to add a bit of descriptive text to each link. We can&#8217;t describe the file size, but we can tell the user what type of file it is. This is using the :after(content:) functionality and is supported by Internet Explorer 8 (yeah!!!) but not Internet Explorer 7 and below (boo!!!).<br />
We will also adjust the color and give it a bit of spacing.</p>
<h3>A big step forward with a small chunk of work</h3>
<p>
There you have it. A small chunk of CSS coding has now added substantial usability to your legacy pages. While the CSS version is not as accessible as having the data in the actual link code, it&#8217;s a significant improvement over nothing at all. Further, there&#8217;s no harmful effect on browsers that do not understand the function. You&#8217;ve added information, but haven&#8217;t taken anything away. This is a win in my book. To save some time and effort, you could just download and use this  package of <a href="http://pooliestudios.com/projects/iconize/">CSS and icons</a> from <a href="http://pooliestudios.com">Alexander Kaiser</a>.</p>
<p>
This rather simple example of attribute selectors and pattern matching can open your eyes to many possibilities. There are a number of developers that have been expoloring this potential for the past few years. Take a look at some of these resources for more ideas and have some fun.</p>
<ul>
<li><a href="http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#attribute-selectors">CSS3 &#8211; Atribute Selectors Definition </a> W3C</li>
<li><a href="http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/">CSS 3 Selectors Explained</a></li>
<li><a href="http://www.stuffandnonsense.co.uk/archives/css_a_tribute_to_selectors.html">CSS: A Tribute to Selectors</a></li>
<li><a href="http://developer.yahoo.com/yui/selector/">YUI: Selector Utility</a> Use CSS3 selectors in JavaScript</li>
<li><a href="http://www.cssdrive.com/index.php/forums/viewthread/45/">Dynamic File Type Notations </a></li>
<li><a href="http://www.andybudd.com/archives/2003/09/cool_use_for_css_attribute_selectors/">Cool use for CSS attribute selectors </a> &#8211; Hiding banner ads with CSS</li>
<li><a href="http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html">Showing Hyperlink Cues with CSS </a></li>
<li><a href="http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html">Showing Hyperlink Cues with CSS </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/css-attribute-selector/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Captioning Sucks and  Needs a Jump Start</title>
		<link>http://www.last-child.com/closed-captioning-need-a-jump-start/</link>
		<comments>http://www.last-child.com/closed-captioning-need-a-jump-start/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 23:00:29 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Standardista]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[Closed captioning]]></category>
		<category><![CDATA[Joe Clark]]></category>
		<category><![CDATA[South Park]]></category>
		<category><![CDATA[Yahoo! Video]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.last-child.com/closed-captioning-need-a-jump-start/</guid>
		<description><![CDATA[The internet is awash in video. YouTube, Yahoo Video, and other video sites host millions of videos with little attention to close captioning. For many sites, the text translations exist, they simply are not used. This sucks. Television shows have featured captioning for many years. It&#8217;s sometimes the only way to figure out what they [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://captioningsucks.com"><img src="http://www.last-child.com/wp-content/uploads/2008/03/large-noshit.jpg" alt="Captioning Sucks - No shit Sherlock, lets fix it"></a><br />
The internet is awash in video. <a href="http://www.youtube.com/" title="YouTube" rel="homepage" class="zem_slink">YouTube</a>, <a href="http://video.yahoo.com/" title="Yahoo! Video" rel="homepage" class="zem_slink">Yahoo Video</a>, and other video sites host millions of videos with little attention to <a href="http://en.wikipedia.org/wiki/Closed_captioning" title="Closed captioning" rel="wikipedia" class="zem_slink">close captioning</a>. For many sites, the text translations exist, they simply are not used. This sucks.</p>
<p>Television shows have featured captioning for many years. It&#8217;s sometimes the only way to figure out what they are saying on <a href="http://www.southparkstudios.com" title="South Park" rel="homepage" class="zem_slink">South Park</a>. However, captioning standards are all over the place, the quality of text is questionable, and the industry is not supporting new innovations. This sucks.</p>
<p><a href="http://joeclark.org/">Joe Clark</a> is working on a new standard to fix these issues. He probably knows more about captioning than any other breathing creature in the world <a href="http://captioningsucks.com">CaptioningSucks.com</a> is the new home to the future of captioning. Perhaps it is time to buy the domain: <strong>CaptioningRules.com</strong>, for hopefully it won&#8217;t suck much longer.</p>
<h4>Related articles</h4>
<ul class="zemanta-article-ul" >
<li class="zemanta-article" ><a href="http://valleywag.com/369996/yahoo-video-classifies-porn-as-health-and-beauty">Yahoo Video classifies porn as &#8220;Health and Beauty&#8221; [Nsfw]</a> [via&nbsp;Zemanta]</li>
<li class="zemanta-article"><a href="http://www.news.com/8301-13953_3-9895044-80.html?part=rss&amp;subj=news">Flickr Video beta due in April</a> [via&nbsp;Zemanta]</li>
<li class="zemanta-article" ><a  href="http://valleywag.com/370529/yahoo-is-less-prudish-than-google">Yahoo is less prudish than Google [Health And Beauty]</a> [via&nbsp;Zemanta]</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/closed-captioning-need-a-jump-start/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RNIB releases guidelines for accessible Flash banner ads</title>
		<link>http://www.last-child.com/rnib-releases-guidelines-for-accessible-flash-banner-ads/</link>
		<comments>http://www.last-child.com/rnib-releases-guidelines-for-accessible-flash-banner-ads/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 15:35:46 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Online Resource]]></category>

		<guid isPermaLink="false">http://www.last-child.com/rnib-releases-guidelines-for-accessible-flash-banner-ads/</guid>
		<description><![CDATA[The Royal National Institute of Blind People has just released a set of guidelines for building accessible Flash ads. While these are aimed at ads, there&#8217;s no reason you can&#8217;t use the same guidelines in all of your Flash projects. Provide a text equivalent for the animation. Provide an alternative for the Flash animation Readability [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.rnib.org.uk/">Royal National Institute of Blind People</a> has just released a set of <a href="http://www.rnib.org.uk/wacblog/flash/accessible-flash-banner-ad-guidelines/">guidelines for building accessible Flash ads</a>. While these are aimed at ads, there&#8217;s no reason you can&#8217;t use the same guidelines in all of your Flash projects.</p>
<ol>
<li>Provide a text equivalent for the animation.</li>
<li>Provide an alternative for the Flash animation</li>
<li>Readability</li>
<li>Looping and blinking</li>
<li>Test your move</li>
<li>WCAG compliance</li>
<li>Navigating Flash with a screen reader</li>
</ol>
<p>See the full article for more information on these <a href="http://www.rnib.org.uk/wacblog/flash/accessible-flash-banner-ad-guidelines/">Flash accessibility guidelines</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/rnib-releases-guidelines-for-accessible-flash-banner-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class Equals Screen Reader Info</title>
		<link>http://www.last-child.com/class-equals-screen-reader-info/</link>
		<comments>http://www.last-child.com/class-equals-screen-reader-info/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 13:10:09 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Table Header]]></category>
		<category><![CDATA[Table Header Scope]]></category>
		<category><![CDATA[Table Summary]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/class-equals-screen-reader-info/</guid>
		<description><![CDATA[I&#8217;ve been using a little CSS trickery to hide content and data from the average user. I hate to mention it too often as it can open pandora&#8217;s box. There was a recent thread on the Microformat&#8217;s discussion list about this very topic. The gist of many programmers is that data worth sharing is data [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using a little CSS trickery to hide content and data from the average user. I hate to mention it too often as it can open pandora&#8217;s box. There was a recent thread on the Microformat&#8217;s discussion list about this very topic. The gist of many programmers is that data worth sharing is data worth displaying.</p>
<p>However, there are times when your UED provides a design that lacks visual hooks for your screen reader users. A good example may be the ever-popular search form. Most sites will have an input and a button that says &#8220;search&#8221;. The label for this input is nowhere to be found.</p>
<p>The average sighted user can figure out such a simple form but the screen reader needs a bit more help. Here&#8217;s a sound clip of a screen reader trying to use the <a href="http://last-child.com/tests/YahooKids_SearchBar.mp3">search form on Yahoo! Kids (.mp3)</a>. This was further complicated by the missing alt attribute on the image-based submit button.</p>
<p>I&#8217;ve also had to work with table based forms that need some assistance. The table is marked up with appropriate table headers and scopes, but the individual inputs lack labels due to the UED. </p>
<h3>The simple solution</h3>
<p>There are many ways to hide content via CSS. You want to avoid <em>visibility:hidden</em> and <em>display:none</em>. These will also hide it from the screen reader. You could use <em>text-indent:-1000 em</em>. I prefer using <em>position:absolute; <del title="using top could cause pages to jump. just use left" rel="edited 04-24-2008">top:0;</del> left:-1000em;</em>. This hides the label by pushing it off screen yet the screen reader is still able to use it.</p>
<h4>Updated CSS (updated 4/24/2008)</h4>
<p>Adding a top position to your hidden may cause the page to jump when the item is focused. Only use a negative left position and leave the top position out of the equation.</p>
<h3>Samples</h3>
<p>Let&#8217;s look at the <a href="http://last-child.com/tests/sample-consolidate-form.html">complicated table with hidden inputs</a>.  The table is properly coded with summary and scope. However, the table would still be difficult for a screen reader without form labels.  </p>
<p>Here&#8217;s a sample of the HTML code:<br />
<code lang="HTML"></p>
<td>
<label for="cc3_payment" class="srinfo">Creditcard3 Payment</label></p>
<input id="cc3_payment" name="cc3_payment" size="10" value="0" tabindex="10" maxlength="10" type="text">
</td>
<p></code></p>
<p>Here&#8217;s the CSS for the labels</p>
<p><code lang="CSS"><br />
.srinfo {position:absolute; <del>top:0;</del> left:-1000em;}<br />
</code></p>
<h3>Extending the hidden screen reader concept</h3>
<p>I&#8217;ve written earlier about how Yahoo! Tech used a hidden collection of links to <a href="http://www.last-child.com/make-flash-accessible-to-screen-readers-in-transparent-window-mode/">replicate an inaccessible flash movie</a>. In a nutshell: screen readers cannot see a flash movie that has wmode:transparent. To get around this, we duplicated the flash content and moved it off-screen for screen readers and search engines.  </p>
<p>You could also use this technique for providing information specific to screen reader users, such as:<br />
<code lang="HTML"></p>
<p class="srinfo">Please note, this page uses JavaScript to continually update stock information. Look for the link: "disable stock updates" to turn this feature off</p>
<p></code></p>
<h3>Hold the Presses, this isn&#8217;t perfect!</h3>
<p>You can&#8217;t just throw anything off screen for the screen readers. The earlier Yahoo Tech example took about made 6 links invisible yet they were still accessible to keyboard users. So, remember, when you use the <strong>srinfo</strong> class to hide content for screen readers, keep in mind the impact on keyboard users. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/class-equals-screen-reader-info/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://last-child.com/tests/YahooKids_SearchBar.mp3" length="3399296" type="audio/mpeg" />
		</item>
		<item>
		<title>Using Screen Magnifiers on the Web an Introduction Video</title>
		<link>http://www.last-child.com/using-screen-magnifiers-on-the-web-an-introduction-video/</link>
		<comments>http://www.last-child.com/using-screen-magnifiers-on-the-web-an-introduction-video/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 16:05:22 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/using-screen-magnifiers-on-the-web-an-introduction-video/</guid>
		<description><![CDATA[They Yahooo User Interface group has added another video to their accessibility library. This time Karo Caron and Victor Tsaran introduce the screen magnifier. Screen Magnifiers assist people with limited vision by magnifying small portions of the screen. This causes new problems with &#8220;popup&#8221; dialog boxes, sliding components, and more. It&#8217;s especially important for User [...]]]></description>
			<content:encoded><![CDATA[<p>They <a href="http://developer.yahoo.net/yui">Yahooo User Interface</a> group has added another video to their accessibility library. This time Karo Caron and <a href="http://www.victortsaran.com/">Victor Tsaran</a> <a href="http://yuiblog.com/blog/2007/06/12/video-intro-to-screen-magnifiers/">introduce the screen magnifier</a>. </p>
<p>Screen Magnifiers assist people with limited vision by magnifying small portions of the screen. This causes new problems with &#8220;popup&#8221; dialog boxes, sliding components, and more. It&#8217;s especially important for User Interface and DHTML programmers to understand the impact of screen interactions.</p>
<p><embed src='http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf' flashvars='id=2985804&#038;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D633844&#038;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D633844&#038;imTitle=An%2BIntroduction%2Bto%2BScreen%2BMagnification%2BSoftware&#038;searchUrl=http://video.yahoo.com/video/search?p=&#038;profileUrl=http://video.yahoo.com/video/profile?yid=&#038;creatorValue=ZXJpY21pcmFnbGlh&#038;vid=633844' type='application/x-shockwave-flash' width='425' height='350'></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/using-screen-magnifiers-on-the-web-an-introduction-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessibility and Screen Reader introduction</title>
		<link>http://www.last-child.com/accessibility-and-screen-reader-introduction/</link>
		<comments>http://www.last-child.com/accessibility-and-screen-reader-introduction/#comments</comments>
		<pubDate>Thu, 24 May 2007 19:39:15 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.last-child.com/accessibility-and-screen-reader-introduction/</guid>
		<description><![CDATA[Victor Tsaran and the Yahoo! User Interface group have put together this video to introduce the screen reader usage. It&#8217;s an eye-opener to actually experience a screen-reader in person. This video will give developers a good sample.]]></description>
			<content:encoded><![CDATA[<p>Victor Tsaran and the Yahoo! User Interface group have put together this video to introduce the screen reader usage. It&#8217;s an eye-opener to actually experience a screen-reader in person. This video will give developers a good sample.</p>
<p><embed src='http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf' flashvars='id=2686894&#038;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D514676&#038;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D514676&#038;imTitle=Victor%2BTsaran%253A%2BAn%2BIntroduction%2Bto%2BScreen%2BReaders&#038;searchUrl=http://video.yahoo.com/video/search?p=&#038;profileUrl=http://video.yahoo.com/video/profile?yid=&#038;creatorValue=ZXJpY21pcmFnbGlh&#038;vid=514676' type='application/x-shockwave-flash' width='425' height='350'></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/accessibility-and-screen-reader-introduction/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Web Accessibility Toolbar for Opera</title>
		<link>http://www.last-child.com/web-accessibility-toolbar-for-opera/</link>
		<comments>http://www.last-child.com/web-accessibility-toolbar-for-opera/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 16:10:40 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[Opera]]></category>

		<guid isPermaLink="false">http://www.last-child.com/web-accessibility-toolbar-for-opera/</guid>
		<description><![CDATA[Hot off the presses. Download the Web Accessibility Toolbar for Opera if you are an Opera user or develop for Opera as a supported browser. The Web Accessibility Toolbar has been developed to aid manual examination of web pages for a variety of aspects of accessibility. It consists of a range of functions that: identify [...]]]></description>
			<content:encoded><![CDATA[<p>Hot off the presses. Download the <a href="http://www.paciellogroup.com/resources/wat-about.html">Web Accessibility Toolbar</a> for Opera if you are an Opera user or develop for Opera as a supported browser.</p>
<blockquote cite="http://www.paciellogroup.com/resources/wat-about.html">
<p>The Web Accessibility Toolbar has been developed to aid manual examination of web pages for a variety of aspects of accessibility. It consists of a range of functions that:</p>
<ul>
<li>identify components of a web page</li>
<li>facilitate the use of 3rd party online applications</li>
<li>provide links to references and additional resources.</li>
</ul>
<p><cite><a href="http://www.paciellogroup.com/">The Paciello Group</a></cite>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/web-accessibility-toolbar-for-opera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

