<?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>AlastairC</title>
	<atom:link href="http://alastairc.ac/feed/" rel="self" type="application/rss+xml" />
	<link>http://alastairc.ac</link>
	<description>Kything web interactions</description>
	<lastBuildDate>Mon, 22 Apr 2013 08:20:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Peak Appification</title>
		<link>http://alastairc.ac/2013/04/peak-appification/</link>
		<comments>http://alastairc.ac/2013/04/peak-appification/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 23:40:50 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Usability / IA]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=872</guid>
		<description><![CDATA[<img class="alignleft size-thumbnail wp-image-1032" alt="iOS home screen showing plenty of apps." src="http://alastairc.ac/wp-content/uploads/2013/04/ios-home-112x150.png" width="112" height="150" />The commercial model for software on devices is for Apps. That works great when an app matches the task you have, but falls down when you have to cross one or more apps. Android has made some progress in getting around this (intents); iOS is starting to create corrals of apps (e.g. passbook); and Facebook has created the people-centric 'Home'. Have we passed the peak of importance for apps?]]></description>
				<content:encoded><![CDATA[<h2>tl;dr / Abstract</h2>
<p><img class="alignleft size-thumbnail wp-image-1032" alt="iOS home screen showing plenty of apps." src="http://alastairc.ac/wp-content/uploads/2013/04/ios-home-112x150.png" width="112" height="150" />The commercial model for software on devices is for Apps. That works great when an app matches the task you have, but falls down when you have to cross one or more apps. Android has made some progress in getting around this (intents); and iOS is starting to create corrals of apps (e.g. passbook); and Facebook has created the people-centric &#8216;Home&#8217;. Have we passed the peak of importance for apps, or is it the only viable commercial model?</p>
<h2 class="cl">Interface styles</h2>
<p>Writing this on OSX, I count three main models of getting to things that I use:</p>
<ul>
<li>Websites (via a browser and short-cuts)</li>
<li>Applications (via the dock or search)</li>
<li>Files (via folders or search)</li>
</ul>
<h2>Appification</h2>
<p>On iOS the primary way is apps, arranged in a grid on the home screen (springboard). This model has been very good for Apple and developers, and is much better than what was standard on smartphones before, but it does have limitations.</p>
<p>For example, moving data between applications can be painful. If I find something on a map, the options for doing something else with that are limited to what Apple decides, currently Facebook, Twitter, Mail or message. Android has gotten further with <a href="http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/">intents</a>, which provides app developers an API for sharing things around. </p>
<p>However, it still doesn&#8217;t feel smooth and I don&#8217;t consider more complex tasks with a workflow (e.g. web development) even possible in this model.</p>
<p>Another pain point for apps is simply needing apps to do tasks. Why have an app for every single airline? The task is &#8216;show my ticket&#8217;, but you then need apps for Easyjet, BA, Ryan Air etc etc. </p>
<p>Scott Jenson is very persuasive on this topic:</p>
<blockquote cite="http://designmind.frogdesign.com/blog/mobile-apps-must-die.html" title="Mobile Apps Must Die"><p>It&#8217;s just not realistic to have an app for every store you go to, every product you own and every website you visit. This creates an ever increasing set that must be curated, organized and culled.</p></blockquote>
<p>Apple&#8217;s <a href="http://en.wikipedia.org/wiki/Passbook_(application)">passbook</a> is an attempt to gather different providers under one app, but it hasn&#8217;t really taken off yet, at least not in the UK.</p>
<h2>Other methods</h2>
<p>When you look at the possible ways of using an operating system there are many organisational principles that are not generally used:</p>
<ul>
<li><strong>Task</strong>, where software and storage are secondary to the task, such as updating a friends contact details.</li>
<li><strong>Object</strong>, where system objects (like your friends in Facebook&#8217;s home) are primary, and you have actions for them.</li>
<li><strong>Topic</strong>, where files and actions are grouped by topics (e.g. social, management, a project etc.). I remember this method from <a href="http://books.google.co.uk/books/about/The_humane_interface.html?id=D39vjmLfO3kC">Jef Raskin</a>, who thought this could be shown in a spacial way on desktops.</li>
<li><strong>Geographically</strong>, where actions become available depending on where you are. (See Scott Jenson&#8217;s <a href="http://designmind.frogdesign.com/blog/mobile-apps-must-die.html">Just-in-time interactions</a>)</li>
</ul>
<p>I&#8217;m not saying one of these is the best way, it&#8217;s likely to be a combination of these things will work best, and that combination will be different depending on your use-case, and will change over time. </p>
<p>Of these methods, the just-in-time interactions make the most sense to me as the next step. For example, you are in an airport and pull out your phone, your proximity to the Easyjet desk pops up the ticket for them. You can also imagine being at home, so all your home automation actions/apps appear. It could work by wifi and web services, GPS, bluetooth, NFC, or anything really, what matters to me is the interface.</p>
<h2>Why still apps?</h2>
<p>I started writing this post last year, but now seems like a good time to put a stake in the ground: I think we&#8217;ve seen the peak importance of applications on mobile devices.</p>
<p><strong>Facebook</strong> has just launched &#8216;Home&#8217;, a people-centric interface on the top of Android OS. The <a href="http://www.theverge.com/2013/4/4/4183390/htc-first-with-facebook-home-hands-on#ooid=93NzVxYTo9YFH8feQ91-bnXGT_lVcL-N">Verge did a review</a>, and see how Facebook has kept apps, but relegated them to a lower layer of the interface.</p>
<p><a href="http://www.windowsphone.com/en-gb/features"><img src="/wp-content/uploads/2013/04/StartLiveTiles_Phone-167x300.png" alt="Windows phone home screen." width="167" height="300" class="alignright size-medium wp-image-1035" /></a><strong>Windows Phone</strong> is a more content-oriented interface, surfacing information on the homescreen rather than making you open apps to see things. A small step but an interesting one, I like it.</p>
<h2>Commercial model</h2>
<p>Given all these options, why do Android and iOS still dominate with their app-lead approach?</p>
<p>Well, who would pay to create the inter-related functionality needed to provide a task, object or topic based interface? It would require a totally different system to be provided as part of the OS, and a level of integration between developers that is difficult to imagine, let alone co-ordinate. It lacks a commercial model to pay for it.</p>
<p>Not everyone is going to be enamoured with a Facebook interface, even if it is easier. However, it is difficult to see how an alternative comes into being without one company building the whole interface.</p>
<p>I think the most likely next step past the app-only model is to incorporate a proximity and/or geographical API (as Jenson envisioned), where certain actions/apps are promoted to the surface of your home screen by your proximity to a service.</p>
<p>A left-field option might be the web based <a href="http://www.mozilla.org/en-GB/firefox/partners/">Firefox OS</a>, with an open-source ethos that could break out of the app-centric mold.</p>
<p>I&#8217;m also very intrigued to see what Apple do in iOS7, I suspect that will show what they consider the next direction.</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2013/04/peak-appification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to hold your iPad</title>
		<link>http://alastairc.ac/2013/02/how-to-hold-your-ipad/</link>
		<comments>http://alastairc.ac/2013/02/how-to-hold-your-ipad/#comments</comments>
		<pubDate>Mon, 11 Feb 2013 01:46:37 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Front-end code]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=992</guid>
		<description><![CDATA[<img src="http://alastairc.ac/wp-content/uploads/2013/02/responsive-typography-mac-iPad-iPhone2-150x113.png" alt=" width="150" height="113" class="alignleft">Taking my arguments about pixels being relative another step, the CSS pixel sizes that device makers use actually tell us the distance away from your eye that they think you should hold a device. Applying a bit of maths lets us work out what that distance is.]]></description>
				<content:encoded><![CDATA[<h2>CSS Pixel sizes reveal the distance manufacturers think you should hold a device</h2>
<p>I&#8217;ve been thinking about writing a post about this for a while, but I didn&#8217;t have the right visualisation. Unfortunately my design skills weren&#8217;t up to the task, but I just came across <a href="http://informationarchitects.net/blog/responsive-typography-the-basics/">a great article from iA</a> that demonstrates what I was thinking:</p>
<blockquote cite="http://informationarchitects.net/blog/responsive-typography-the-basics/" title="Responsive Typography: The Basics, by Oliver Reichenstein"><p><img src="http://alastairc.ac/wp-content/uploads/2013/02/responsive-typography-mac-iPad-iPhone2.png" alt="iMac, iPad, iPhone being held in front of you."class="centered white" /></p></blockquote>
<p>The article talks about typography being dependant on viewing distance, and at closer (typical) viewing distance the smaller text on the iPhone actually matches a desktop. </p>
<p>This is the same point I was making about <a href="/2012/11/in-defence-of-pixels/#css-pixels-per-inch">CSS pixels</a>: The unit manufacturers use to define how their browser renders website sizes.<br />
For example, the iPad mini has a CSS pixel width of 768px (in portait), the same as the larger iPad with retina display, even though they are different sizes and different pixel densities.</p>
<p>What I would like to add is some Maths. (Or &#8216;Math&#8217; if you&#8217;re from the US):</p>
<p><strong>As the size of a CSS pixel is based on an angle, we can work out how far away the device should be held.</strong></p>
<p>Working out the intended viewing distance was relatively straightforward, once I revised a little school level trig:</p>
<table class="data col3">
<thead>
<tr>
<th>Device</th>
<th>CSS PPI</th>
<th>Intended viewing distance (m)</th>
</tr>
</thead>
<tbody>
<tr>
<td>iPhone</td>
<td>163</td>
<td>0.41</td>
</tr>
<tr>
<td>iPad mini</td>
<td>163</td>
<td>0.41</td>
</tr>
<tr>
<td>Nexus 7</td>
<td>162</td>
<td>0.41</td>
</tr>
<tr>
<td>Galaxy Nexus</td>
<td>147.7</td>
<td>0.45</td>
</tr>
<tr>
<td>iPad</td>
<td>132</td>
<td>0.51</td>
</tr>
<tr>
<td>Macbook Pro 15&#8243;</td>
<td>110</td>
<td>0.61</td>
</tr>
<tr>
<td>iMac 27&#8243;</td>
<td>109</td>
<td>0.62</td>
</tr>
<tr>
<td>Trad Desktop (96 DPI)</td>
<td>96</td>
<td>0.71</td>
</tr>
<tr>
<td>32&#8243; TV with Xbox IE</td>
<td>32.4</td>
<td>3.5</td>
</tr>
</tbody>
</table>
<p>Putting that into a graph shows a smooth line, as you would expect from maths based on an angle:</p>
<p><img src="http://alastairc.ac/wp-content/uploads/2013/02/pixel-distance-graph.png" alt="Graph of the pixel distances" width="600" height="400" class="aligncenter size-full wp-image-1016" /></p>
<p>So to answer the question in the title, you should hold the iPad mini 41cm away from your eye, and the large iPad 51cm.</p>
<p>Does that seem right to you?</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2013/02/how-to-hold-your-ipad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Screen resolution by ratio</title>
		<link>http://alastairc.ac/2013/01/screen-resolution-by-ratio/</link>
		<comments>http://alastairc.ac/2013/01/screen-resolution-by-ratio/#comments</comments>
		<pubDate>Fri, 18 Jan 2013 19:06:31 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=978</guid>
		<description><![CDATA[<img src="http://alastairc.ac/wp-content/uploads/2013/01/screen-res-dec-150x113.png" alt="" width="150" class="alignleft" />Daniel Davis posted a simple survey of screen sizes which jogged my memory and I thought I would add some more data. I looked at the Google Analytics (GA) for a site I have access to with traffic in the low millions per month, and took a sample of that for December.]]></description>
				<content:encoded><![CDATA[<p>Daniel Davis posted a <a href="http://my.opera.com/ODIN/blog/2013/01/17/a-simple-survey-of-screen-sizes">simple survey of screen sizes</a>, which jogged my memory for something I had been looking into as well. I looked at the Google Analytics (GA) for a site I have access to with traffic in the low millions per month, and took a sample of that for December.</p>
<p><a href="http://alastairc.ac/wp-content/uploads/2013/01/screen-res-dec.png"><img class="aligncenter size-full wp-image-979" alt="Bubble chart showing popular screen resolutions, with lines drawn highlighting the screen ratios." src="http://alastairc.ac/wp-content/uploads/2013/01/screen-res-dec.png" /></a></p>
<p>What I noticed (given <a href="http://alastairc.ac/2012/12/text-size-and-screen-rations/">my recent experience</a>) is how the screen ratios are starting to line up. You have:</p>
<ul>
<li>Apple devices lining up in the 3:4 (virtually all were used in portrait mode unless GA mis-reports that?)</li>
<li>Traditional desktops at 4:3.</li>
<li>Laptops (and probably some desktops) with 16:10 or 16:9 ratios in the 1280-1920 width range.</li>
<li>Televisions or other monitors at HD size (1920&#215;1080), this was mostly Windows (67%), some OSX (30%).</li>
<li>iMacs at 2560&#215;1440 (not an assumption &#8211; 98% of visits at that resolution were OSX).</li>
</ul>
<p>The site in question had about 20% mobile device usage that month (as defined by GA), and is not technology focused. It is also worth noting that this is reported screen resolution, not viewport size (i.e. it doesn&#8217;t account for browser chrome or browser windows that are not full-screen).</p>
<p>I can&#8217;t help thinking that we should account for screen ratios in media queries in some way, but I&#8217;m not sure how yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2013/01/screen-resolution-by-ratio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text size and screen ratios</title>
		<link>http://alastairc.ac/2012/12/text-size-and-screen-rations/</link>
		<comments>http://alastairc.ac/2012/12/text-size-and-screen-rations/#comments</comments>
		<pubDate>Fri, 28 Dec 2012 23:34:08 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=948</guid>
		<description><![CDATA[<img class="alignleft size-thumbnail wp-image-962" alt="bbc side-by-side -comparison" src="http://alastairc.ac/wp-content/uploads/2012/12/bbc-comparison-150x110.png" width="150" height="110" />The recent '<a href="http://www.alistapart.com/articles/vexing-viewports/">vexing viewports</a>' article on Alistapart is a call on device manufacturers to choose a reasonable CSS-pixel resolution for each device so that responsive design works. This is something I totally agree with and support, but I'm not sure the iPad mini example they use is as clear it seems.]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-962" alt="bbc side-by-side -comparison" src="http://alastairc.ac/wp-content/uploads/2012/12/bbc-comparison-150x110.png" width="150" height="110" />The recent &#8216;<a href="http://www.alistapart.com/articles/vexing-viewports/">vexing viewports</a>&#8216; article on Alistapart is a call on device manufacturers to choose a reasonable CSS-pixel resolution for each device so that responsive design works. This is something I totally agree with and support, but I&#8217;m not sure the iPad mini example they use is as clear it seems.</p>
<p>From the article:</p>
<blockquote><p>One would expect to see a <code>device-width</code> [for the iPad mini] more in line with those of similarly sized tablets like the BlackBerry PlayBook or second-generation Samsung Galaxy 7″—around 500 to 600 pixels, as <a href="http://quirksmode.org/tablets.html">shown in this chart</a>.</p></blockquote>
<p>However, the tablet comparison doesn&#8217;t seem to account for the difference screen size?</p>
<p>The width of the Nexus 7 is 3.75&#8243; inches, and of the iPad mini is 4.75&#8243;. which is a multiplier of 1.267.</p>
<p>The CSS pixel width of the Nexus 7 is 600px (in Chrome), so how many pixels wide should the iPad mini be?</p>
<p>600px * 1.267 = 760px.</p>
<p>That isn&#8217;t very  different from what the iPad mini actually is: 768. I put up a <a href="/testing/css-pixels/text.html">test page</a> and took <a href="/wp-content/uploads/2012/12/6T7A4345-sm.jpg">a photo</a> of them both at 16px, side by side:</p>
<p><a href="/wp-content/uploads/2012/12/6T7A4345-sm.jpg"><img class="centered size-medium wp-image-949" alt="iPad and Nexus 7 side by side." src="/wp-content/uploads/2012/12/6T7A4345-sm-300x200.jpg" /></a></p>
<p>Cropping down to just the text:</p>
<p><img class="centered size-full wp-image-950" alt="iPad mini &amp; Nexus 7 text comparison" src="/wp-content/uploads/2012/12/imini-N7_text-comparison.jpg" /></p>
<p>The snippet above is full size (from the camera), cropped to show the same bit of text side by side. The iPad is on the left, the Nexus 7 on the right. They seem the same size to me, although the Nexus&#8217; high pixel density looks better.</p>
<p>Interestingly, I&#8217;ve been taking screenshots of the Nexus 7 on some test pages for a while, and Google have recently upped the default text size. At the (now) default 17px the text is slightly bigger:</p>
<p><img class="centered size-full wp-image-951" alt="iPad mini &amp; Nexus 7 text comparison (default)" src="/wp-content/uploads/2012/12/imini-N7_text-comparison-default.jpg" /></p>
<p>But, that doesn&#8217;t affect when media queries will trigger, it just means text will take more space than expected.</p>
<h2>It&#8217;s about the ratio</h2>
<p>I&#8217;ve owned the Nexus 7 since it was released in the UK, and I like it, but I&#8217;m going to sell it because of the ratio.</p>
<p>The 16:9 ratio of the screen makes it either very tall (narrow columns) or a letterbox. It is great for movies, ok for reading books, but rubbish for websites. Reading websites matters to me more than movies.</p>
<p>Having played with the iPad mini I find the wider (4:3) screen more useful on websites, especially non-responsive ones. The picture below shows an BBC article. On the left I had double-tapped on the first paragraph, on the right the (default) mobile version on the Nexus 7.</p>
<p><a href="/wp-content/uploads/2012/12/bbc-comparison.png"><img class="centered size-full wp-image-962" alt="bbc side-by-side -comparison" src="/wp-content/uploads/2012/12/bbc-comparison.png" /></a></p>
<p>In practice I&#8217;ve found text on the iPad mini is often bigger than the Nexus 7. The increased of text-size in Chrome helps, but I still find the narrow width in portait makes reading less optimal than a 4:3 screen, and navigating most websites is quicker at full size.</p>
<p>Another interesting point is that Firefox on the Nexus 7 uses a viewport width of 533px, making things appear larger. Perhaps we should consider that the iPad mini is smaller and lighter, and intended to be held more at phone-distance than laptop/iPad distance? The large iPad is actually <a href="/2012/11/in-defence-of-pixels/#css-pixels-per-inch">more akin to laptops</a> in terms of CSS pixels per inch.</p>
<p>So overall, I agree with the conclusion of the Alistapart article. However, the iPad mini has roughly the same CSS pixels per inch as similar devices like the Nexus 7, so perhaps they all need to decrease their viewport width?</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2012/12/text-size-and-screen-rations/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>In defence of pixels</title>
		<link>http://alastairc.ac/2012/11/in-defence-of-pixels/</link>
		<comments>http://alastairc.ac/2012/11/in-defence-of-pixels/#comments</comments>
		<pubDate>Thu, 08 Nov 2012 11:29:37 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Front-end code]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=892</guid>
		<description><![CDATA[<img class="alignleft" src="/images/w3c-pixel1.png" alt="diagram showing definition of a pixel." width="150" />I keep reading recommendations for using EMs or other typographical units for layout, which I still don't understand. At best it is an extra layer of abstraction, at worst it is misleading and likely to cause more issues than it solves. I will try to demonstrate why pixels are the best <em>relative</em> unit.]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft" src="/images/w3c-pixel1.png" alt="diagram showing definition of a pixel." width="150" />I keep reading recommendations for using EMs or other typographical units for layout, which I still don&#8217;t understand. At best it is an extra layer of abstraction, at worst it is misleading and likely to cause more issues than it solves. I will try to demonstrate why pixels is the best <em>relative</em> unit.</p>
<h2>EMs for layout</h2>
<p class="cl">A recent example is <a href="http://www.netmagazine.com/features/stop-thinking-pixels-improving-web-layout">an article by Steve Hickey on EMs for layout</a> in my favourite web-design &amp; dev magazine <a href="http://www.netmagazine.com/">.net</a> (ok, I may be biased as I also write for them!).</p>
<p>I struggle with the positive reasons for using EMs for layout though:</p>
<blockquote><p>using pixels as a measurement unit messes up zooming for users who require it because it declares your font-size in units that are locked to a physical property of your screen.</p></blockquote>
<p>That hasn&#8217;t been an issue since IE6, all browsers now default to a zoom mechanism which increases the size of all elements on the page. With the exception of <a href="http://alastairc.ac/2012/01/zooming-bug-in-webkit/">a glaring Webkit bug</a>, zoom and pixel-based media queries work very well for accessibility in IE and Firefox.</p>
<p>Also, what is wrong with using a unit that is a property of your screen?</p>
<p>As far as I can tell, browsers have to convert EMs (and other units) into CSS pixels anyway, so using EMs simply adds <em>another</em> layer of abstraction. It makes sense for managing CSS when relatively sizing your text, but not for layout.</p>
<blockquote><p>it’s more theoretically pure to use ems for measuring type because it’s a typographic measurement, and if you’re already defining your content parameters in a typographic unit of measurement and proportion, it makes sense to apply the same idea across the rest of your layout as well.</p></blockquote>
<p>It might be theoretically pure to use a typographic measurement for typography, but that doesn&#8217;t mean it transfers to layout. Making the layout relative to the device makes a lot more sense to me, i.e. percentages or pixels. That way the layout can flex to the resolution of the screen, whereas EMs may not be relative to the screen.</p>
<h2>Hi PPI devices</h2>
<p>Think about the difference between and iPhone 3 and iPhone 4 (&#8220;retina&#8221;) display. The iPhone 4 literally has 4 times the pixels (double height <em>and</em> double width) compared to the previous versions, making it a high <acronym title="Pixels Per Inch">PPI</acronym> device.</p>
<p>If &#8220;a pixel is a pixel&#8221;, regular text would be unreadable. Therefore Apple doubles the width and height of everything on the screen, so it looks the same size (but sharper).</p>
<p><a href="http://www.engadget.com/2010/06/07/iphone-4-pixel-density-examined-video/">Engadget posted some pictures</a> of the difference at the release of the iPhone 4:</p>
<p><a href="http://www.engadget.com/2010/06/07/iphone-4-pixel-density-examined-video/"><img class="alignnone size-full wp-image-929" title="iPhone pixel density pic from Engadget." src="http://alastairc.ac/wp-content/uploads/2012/11/iphone-pixel-dens-rm-eng.jpg" alt="iPhone pixel density pic from Engadget." width="600" height="334" /></a></p>
<p>In browser terms you do this using &#8220;CSS pixels&#8221;, where a CSS pixel can be bigger or smaller than the &#8220;device pixel&#8221;.</p>
<p>Talking about the future, Steve Hickey says we should move away from pixels:</p>
<blockquote><p>instead of thinking in an abstract measurement system of device pixels, why don’t we just fall back to real-world measurements? And as luck would have it, we already have a basis for this system: points and ems.</p></blockquote>
<p>But this misses a vital point about screen devices &#8211; <strong>variable viewing distance</strong>.</p>
<p>The W3C spec uses a <a href="http://www.w3.org/TR/CSS21/syndata.html#img-pixel1">CSS reference pixel</a> to allow CSS pixels to vary by device based on viewing distance:</p>
<p><img class="centred" src="/images/w3c-pixel1.png" alt="diagram showing definition of a pixel." /></p>
<p>Without the abstraction layer of CSS pixels, text readable on your phone (e.g. 0.5cm high) would be unreadable on a desktop or TV device.</p>
<h2 id="css-pixels-per-inch">How many CSS pixels per inch?</h2>
<p>I did a few tests to see what various devices would report as their CSS pixel-width. Then I divided the device pixel width by CSS pixel width to get the ratio. Then I divided the PPI by the ratio to get CSS pixels per inch (CSS PPI).</p>
<p>A lower CSS PPI will make page elements look bigger.</p>
<table>
<tbody>
<tr>
<th>Device</th>
<th>Device pixels</th>
<th>CSS pixels</th>
<th>Device <acronym title="Pixels Per Inch.">PPI</acronym></th>
<th><span title="Ratio of device pixel to CSS pixel.">Ratio</span></th>
<th>CSS <acronym title="Pixels Per Inch.">PPI</acronym></th>
</tr>
<tr>
<th colspan="6">Phones and small tablets</th>
</tr>
<tr>
<td>iPhone 3GS</td>
<td>480&#215;320</td>
<td>480</td>
<td>163</td>
<td>1</td>
<td>163</td>
</tr>
<tr>
<td>iPhone 4S</td>
<td>960×640 (614,400)</td>
<td>480</td>
<td>326</td>
<td>2</td>
<td>163</td>
</tr>
<tr>
<td>Galaxy Nexus</td>
<td>1280&#215;720</td>
<td>598</td>
<td>316</td>
<td>2.14</td>
<td>147.7</td>
</tr>
<tr>
<td>Nexus 7</td>
<td>1280×800</td>
<td>966</td>
<td>216</td>
<td>1.33</td>
<td>162</td>
</tr>
<tr>
<td>Pad mini</td>
<td>1024&#215;768</td>
<td>1024</td>
<td>163</td>
<td>1</td>
<td>163</td>
</tr>
<tr>
<th colspan="6">Large Tablets</th>
</tr>
<tr>
<td>iPad 1 / 2</td>
<td>1024&#215;768</td>
<td>1024</td>
<td>132</td>
<td>1</td>
<td>132</td>
</tr>
<tr>
<td>iPad 3 / 4</td>
<td>2048&#215;1536</td>
<td>1024</td>
<td>264</td>
<td>2</td>
<td>132</td>
</tr>
<tr>
<th colspan="6">Laptops / Desktops</th>
</tr>
<tr>
<td>Macbook Air 11</td>
<td>1366×768</td>
<td>1366</td>
<td>135</td>
<td>1</td>
<td>135</td>
</tr>
<tr>
<td>Macbook pro 15R</td>
<td>2880&#215;1800</td>
<td>1440</td>
<td>220</td>
<td>2</td>
<td>110</td>
</tr>
<tr>
<td>Dell 19&#8243; Monitor</td>
<td>1600&#215;1200</td>
<td>1600</td>
<td>105</td>
<td>1</td>
<td>105</td>
</tr>
<tr>
<th colspan="6">TVs</th>
</tr>
<tr>
<td>IE/Xbox on 32&#8243; HDTV</td>
<td>1920×1080</td>
<td>1050</td>
<td>69</td>
<td>1.83</td>
<td>37.7</td>
</tr>
</tbody>
</table>
<p>NB: If you have another device you&#8217;d like to add, please do <a href="/testing/css-pixels.html">check this page</a> and <a href="http://twitter.com/alastc">tell me</a> what the device is and the reported widths are.</p>
<p>You can see that small devices you hold close have a high CSS PPI, and large displays you view from a distance have a smaller CSS PPI. Also, despite the higher resolution of the Macbook Pro 15&#8243; Retina, text is actually bigger on that screen than the 11&#8243; Macbook Air.</p>
<p>I draw three conclusions from this table:</p>
<ol>
<li>Devices in the same category can have wildly different device PPI. Therefore device pixels are not a useful measurement for web design.</li>
<li>The CSS PPI decreases relative to the assumed distance of viewing, and each class of device is within a certain range.<br />
Therefore CSS pixels are a useful relative unit across device types.</li>
<li>The device PPI does not map easily to the size of the CSS pixel on non-Apple devices. Apple uses a straightforward multiplier, but other devices do not.<br />
Therefore you cannot rely on images that use sizes under 1 CSS pixel.</li>
</ol>
<p>With various devices out there (and TV possibly being an important one soon), browsers have to render the same content on a sliding scale of different sizes. A pixel is a relative unit, a building block, and it is a vital one so that content can be sized appropriately on different devices.</p>
<h2>Be relative &#8211; use pixels (or percentages)</h2>
<p>Using typographical units for layout works some degree at the moment because browsers convert them to CSS pixels. Using a real-world units like CM or picas would make content on larger screens impossible to read (or massive on small screens).</p>
<p>Using typographical units for some parts of layout (e.g. guttering, spacing between headings and paragraphs) makes sense in terms of managing your CSS rules. </p>
<p>For the main layout though, using a measure that is relative to the screen will work more effectively across devices. Percentages have been the traditional method of doing this, but when using media-queries (that work with pixel sizing), pixels can be just as effective.</p>
<p>Why go through the &#8216;math&#8217; of converting pixels to EMs only to have the browser convert them back to CSS pixels?</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2012/11/in-defence-of-pixels/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Relative pixels</title>
		<link>http://alastairc.ac/2012/04/relative-pixels/</link>
		<comments>http://alastairc.ac/2012/04/relative-pixels/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 13:55:32 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Front-end code]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=819</guid>
		<description><![CDATA[Layout methods in web design have gone through a transition in the last few years, unfortunately we're still using floats a lot, but flexible layouts have made a comeback in the form of responsive design - which is great. Recently though, I have been puzzled by people suggesting that we should use EMs for layout...]]></description>
				<content:encoded><![CDATA[<p>Layout methods in web design have gone through a transition in the last few years, unfortunately we&#8217;re still using floats a lot, but flexible layouts have made a comeback in the form of responsive design &#8211; which is great.</p>
<p>Recently though, I have been puzzled by people suggesting that we should use EMs for layout, for two main reasons:</p>
<ul>
<li>Browsers translate EMs to pixels anyway, so why add a layer of abstraction?</li>
<li>It is actually difficult for users to change the text size in browsers these days, so why do people think that EMs vary in a useful way?</li>
</ul>
<p>In this article from <a href="http://blog.cloudfour.com/the-ems-have-it-proportional-media-queries-ftw/">Cloudfour on EM media queries</a>, Lyza Gardner notes that the EM based media queries worked with zoom (in Webkit) and not with pixels.</p>
<p>However, that&#8217;s <a href="/2012/01/zooming-bug-in-webkit/">a bug in webkit</a>. If you try the same in Firefox/IE/Opera, pixel based media queries work great with zoom. It just happens that <a href="https://bugs.webkit.org/show_bug.cgi?id=41063">a webkit bug for zooming EM based media queries</a> has had some work, but not for pixels.</p>
<blockquote cite="http://blog.cloudfour.com/the-ems-have-it-proportional-media-queries-ftw/"><p>We noted that pixel measurement and divided it by the rough baseline of 16px to arrive at our em units. There may well be a better way to do this math, but this seems to do the trick so far.</p></blockquote>
<p>If and when the bug in webkit is fixed, there would be no need for that <span lang="en-gb">maths</span>, just note the pixel value!</p>
<p>Pixels (that is to say, CSS pixels) have always been a <a href="http://joeclark.org/appearances/atmedia2005/atmedia-NOTES-2.html#code-185">relative unit</a>, but with new devices coming out that have higher (physical) pixel densities the relativeness is more obvious than ever.</p>
<p>There are some issues at the moment that can be worked around by using EMs, as shown in <a href="http://www.alistapart.com/articles/a-pixel-identity-crisis/">the Alistapart article</a>. However, I think devices like the Kindle Fire are going to have to catch up and use CSS-pixels rather than hardware pixels. My Android phone does a great job of this, most websites have reasonable sized text and the site designers haven&#8217;t had to  jump through hoops.</p>
<p>Long term I bet that <strong>the pixel will be the most useful and consistent relative unit</strong>.</p>
<p>The people in the best position to decide what a (CSS) pixel should be on a device, are the people making the device. There are simply too many devices to test your website with; if web designers can&#8217;t rely on CSS pixels working across devices then those devices are going to loose out.</p>
<p>Device makers are going to have to make &#8216;normal&#8217; sites readable and useful, so CSS pixels will need to be relative to the screen size rather than pixel density. This will be equally important on TV displays, where the resolution is quite high, but the distance from screen to eye is greater. So for TVs CSS pixels could vary by TV size even though they all have 1920 pixel wide resolutions (for HD screens).</p>
<p>Lets just make sure when we talk about pixels in web design, we are talking about CSS pixels.</p>
<hr />
<h2 id="pictures">Sidenote &#8211;  foreground pictures</h2>
<p>Most things in web design scale to higher pixel-density displays nicely, for example, pixel sized text and css borders. Background images in the CSS can be adjusted with media queries, so you could have different background images depending on the pixel-density. (<a href="http://www.lukew.com/ff/entry.asp?1142">LukeW has some good resources</a> on workarounds.)</p>
<p>Where the water is murkier is foreground pictures. We can scale down larger images with CSS, but that doesn&#8217;t affect the file size, so someone on a mobile connection might still get a 1MB image scaled down to 200px.</p>
<p>Something like <a href="http://adaptive-images.com/">Adaptive Images</a> is probably the best solution to this at the moment, but I do wonder if it could be more automatic?</p>
<p>Progressive JPGs appear to offer a solution: You provide the biggest image as a progressive JPG (e.g. 3000px wide), and set the (CSS) pixels width in the HTML or CSS. The browser then downloads a sufficient amount of pixels to meet the device&#8217;s pixel density.</p>
<p>This thought was triggered by this <a href="http://duncandavidson.com/blog/2012/03/photography_on_retina">example of photography on the iPad 3</a>. However, to extend that idea, wouldn&#8217;t it be great if you could just use one image for every size from thumbnails up?</p>
<p>Having tried a quick test, unfortunately browsers (currently) download all the information, not just enough to fill the current size. Still, <em>could</em> it work? Is it worth considering?</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2012/04/relative-pixels/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Open Rights Group Conference</title>
		<link>http://alastairc.ac/2012/03/open-rights-group-conference/</link>
		<comments>http://alastairc.ac/2012/03/open-rights-group-conference/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 17:02:26 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Real life]]></category>
		<category><![CDATA[OpenRightsGroup]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=824</guid>
		<description><![CDATA[<img src="http://alastairc.ac/wp-content/uploads/2012/03/open-rights-group-conference.png" alt="Open Rights Group Conference" width="150" class="alignleft size-full wp-image-840" /> I just had an interesting day at the Open Rights GroupConference (#ORGcon). As someone that doesn't identify with any political party, it's the only (mildly) activistic group I'm involved in. That's probably due to the close connection with the tools I use everyday at work, like the Internet. 

A few things I learned from the day...]]></description>
				<content:encoded><![CDATA[<p><img src="http://alastairc.ac/wp-content/uploads/2012/03/open-rights-group-conference.png" alt="Open Rights Group Conference" width="178" height="167" class="alignleft size-full wp-image-840" />I just had an interesting day at the <a href="http://www.openrightsgroup.org/orgcon-2012">Open Rights Group</a> Conference (#ORGcon). As someone that doesn&#8217;t identify with any political party, it&#8217;s the only (mildly) activistic group I&#8217;m involved in. That&#8217;s probably due to the close connection with the tools I use everyday at work, like the Internet. </p>
<p>A few things I learned from today&#8230;</p>
<h2 id="doctrow">From Cory Doctrow:</h2>
<ul>
<li>Politicians struggle to regulate computers/networks in effective ways because computers are fundamentally flexible tools, you can&#8217;t restrict how they work without preventing them from working. (E.g. It&#8217;s like trying to regulate how a car works by changing the wheel.)</li>
<li>Efforts to restrict the functions of computers always end up in software like root-kits. (E.g. the Sony rootkit they installed when people played CDs, or Nintendo&#8217;s methods of restricting content on their DS3.) I recommend checking out &#8216;<a href="http://craphound.com/?p=3911">What’s Inside the Box?</a>&#8216;, which questions who should be in control of the software running on computers you get into (e.g. cars), and those put into you (e.g. hearing aids).</li>
<li>Efforts to restrict content end up in censorship. Part of his theme on &#8220;<a href="http://craphound.com/?p=3921">Censorship is inseparable from surveillance</a>&#8220;, pre-internet preventing someone from buying a book could be handled at the publisher end of the equation. Now everyone can be a publisher, attempts to control copying mean checking every book you read.</li>
<li>Software used for restricting internet access in schools is generally:
<ul>
<li>Ineffective, as kids routinely route around it.</li>
<li>Anti-education, as often teachers find resources they were going to use blocked.</li>
<li>Opaque, you cannot tell how it works. There is no central standard, so the black/white lists are either maintained by local sys-admins, or the company providing the software.</li>
<li>Provided by the same organisations supplying the countries we tend to think of as undemocratic.</li>
</ul>
</li>
<li>Copyright / copying is really only &#8216;level one&#8217; of a war on general computing, as other industries will find these universal tools that run software hinder their business model. For example, 3D printers making small goods at the press of a button.</li>
</ul>
<h2 id="archives">Should Digital Archives be open?</h2>
<p>The presentations from Nick Poole and Ben White kicked off a couple of ideas, the issues seemed to focus around the institutions having missions centred around physical access, and not having the resources to digitise or share their resources effectively.</p>
<p><strong>Reducing costs:</strong> I wonder what would happen if Libraries and Museums took a <a href="http://www.seti.org/">Seti</a>/BitTorrent approach to distributing their digital resources? I.e. Allow interested people to install a programme that stores a tiny little bit of the site or resources. When requests are made through the central website, it proxies through to one or more people who are looking after the content. For larger resources it would make sense to use a protocol like BitTorrent so that it distributes the load over several computers/connections.</p>
<p>I could see people running that at home, and plenty of Universities would probably be happy to do that.</p>
<p><strong>Making money:</strong> It seems the battle ground between institutions and the public is over the headline resources, the stuff people (in general) actually want to see. A win-win method might be to reverse what <a href="http://pinboard.in/">Pinboard</a> did, which was to charge a little more for every subscriber to the service.</p>
<p>Institutions could charge a small fee for each item, but that fee decreases every time someone pays for it, becoming free after a certain amount of money has been raised.</p>
<p>That would take advantage of the long-tail of (mostly) Academics who would want to delve into niche areas, but the popular stuff would be free for all.</p>
<h2 id="acta">Defeating Acta</h2>
<p>A great French duo treated us to a serious and funny couple of presentations, and although I didn&#8217;t follow it all, the politics involved are both intriguing and disturbing. At the very least <a href="http://en.wikipedia.org/wiki/Anti-Counterfeiting_Trade_Agreement">Acta</a> should be booted out because it&#8217;s trying to make legislation without going through the parliamentary process.</p>
<h2 id="lessig">Realising the fight we&#8217;re in</h2>
<p>Professor Lawrence Lessig is a very compelling speaker, and even though I&#8217;d seen some aspects of it before it was a great performance. It was one of those presentations where you won&#8217;t get much from just looking at the slides, so keep an eye out for the video on the <a href="http://www.openrightsgroup.org/">ORG website</a> soon.</p>
<p>The general argument was that copyright issues are important, but actually the core issue is the (over) influence of large business interests in the political system. A lot of the examples are from the US, but given that the same types of law are passed in the UK, there is something going on here as well.</p>
<p>Some of the points made me wonder about what type of organisations are best suited to different things. For example, the US has terrible broadband, and in many states they legally prevent citizen groups from providing their own. The for-profit science journals cost 9 times as much as not-for-profit organisations. In the UK we have better competition in mobile providers and much better deals than the US.</p>
<p>It seems that when dealing with a resource that cannot be competed with (e.g. cable broadband or the source material of journals) for-profit organisations seem to have the wrong incentives. </p>
<p>Where the aim is to provide a resource in a non-competitive situation, for-profit organisations are not effective.</p>
<p><a href="http://www.nytimes.com/2012/03/26/opinion/krugman-lobbyists-guns-and-money.html">Prison&#8217;s in the US</a> are another recent example, where lobbyists for private prison companies are literally drafting laws that will put more people in prison, and they often get passed.</p>
<p>The <a href="http://timharford.com/books/undercovereconomist/">undercover economist</a> uses health insurance as an example of why a non-mandatory insurance will simply never work well for health care.</p>
<p>Back to Lessig&#8217;s presentation, and his core theme was that we need to attack the roots of the problem, which is how money affects politics. Although he didn&#8217;t mention it directly, I had already come across <a href="http://rootstrikers.org/">Rootstrikers</a>, which outlines the plan. </p>
<p><iframe src="http://player.vimeo.com/video/39188615" width="500" height="375" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2012/03/open-rights-group-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is HDR equivalent to eye exposure?</title>
		<link>http://alastairc.ac/2012/01/hdr-like-eye-exposure/</link>
		<comments>http://alastairc.ac/2012/01/hdr-like-eye-exposure/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 22:32:24 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=802</guid>
		<description><![CDATA[<img src="/wp-content/uploads/2012/01/cathedral-new2-150x111.jpg" alt="" width="150" height="111" class="alignleft" />In a rare non-web related post, I had a thought on HDR (High Dynamic Range) photography I wanted to share. Some people seem anti-HDR, I've just been trying it out.]]></description>
				<content:encoded><![CDATA[<p>In a rare non-web related post, I had a thought on HDR (High Dynamic Range) photography I wanted to share. Some people seem anti-HDR, I&#8217;ve just been trying it out and explaining what I&#8217;ve found. NB: I&#8217;m relatively new to photography, so this is my experience, I&#8217;m not trying to be authoritative.</p>
<h2><abbr title="To long, didn't read">TL;DR</abbr> version</h2>
<p>When your eye looks around a scene, it will automatically adapt to the differences in brightness. In photographic terms, your eye creates many &#8216;exposures&#8217; as you look around a scene.</p>
<p>When you take a photograph at one exposure, it isn&#8217;t as adaptable so the contrast in a dark and bright scene is very harsh.</p>
<p>Therefore, an HDR pictures (multiple exposure combined into one) is more like what you would see than the &#8216;normal&#8217; pictures.</p>
<p>However, like any effect, it can be taken too far.</p>
<h2>Example</h2>
<p>Wondering around Bristol last weekend, a saw the sun behind the main Cathedral, which is a pretty impressive building.</p>
<p>The &#8216;normal&#8217; shot looks like this:</p>
<p><img src="http://alastairc.ac/wp-content/uploads/2012/01/1-shot.jpg" alt="Shot of the cathedral, wide angle from quite close, with very bright sky and quite dark building." title="Canon 550D, 17-55mm at 17mm, ISO 100, F5, 1/60" width="500" height="333" class="centered size-full wp-image-803" /></p>
<p>Ok, but nothing special. By normal, I just mean that I set the aperture to F5, and the camera took an average reading of the scene and decided on the exposure time. A lot of the time that means the sky gets washed out to white, as shown above. You can&#8217;t actually see the clouds that were there.</p>
<p>In this case, I took a bracketed shot, where you set the camera up to take three (or 5) shots. The first is the standard one, and then it takes an under-exposed version, and then an over-exposed version.</p>
<p>Those shots look like this, and you can see the sky properly in the middle one:</p>
<p><a href="/wp-content/uploads/2012/01/3-shots.jpg"><img src="http://alastairc.ac/wp-content/uploads/2012/01/3-shots-300x66.jpg" alt="Three shots, standard, dark and light." title="Second shot is at 1/250, third shot is at 1/30." width="300" height="66" class="centered size-medium wp-image-804" /></a></p>
<p>You then stick those shots into a programme like Photomatix or Photoshop and it blends them together to even out the exposure.</p>
<p>A lot of HDR looks rather fake, but the default isn&#8217;t necessarily unnatural looking:</p>
<p><img src="http://alastairc.ac/wp-content/uploads/2012/01/hdr-neutral.jpg" alt="A more even version of the cathedral image." title="PHotomatix version " width="497" height="330" class="centered size-full wp-image-806" /></p>
<p>The sky is a bit blue and the clouds a bit yellow, but you could handle that with any photo-editor.</p>
<p>You can also go mental with it, and you&#8217;ll see a few shots like this around:</p>
<p><img src="http://alastairc.ac/wp-content/uploads/2012/01/hdr-extreme.jpg" alt="An un-real looking picture where the cathedral is actually brighter and more colourful than the sky!"  width="500" height="333" class="centered size-full wp-image-807" /></p>
<p>However, if you aren&#8217;t so heavy handed, I quite like this version, especially at full size (click through for that):<br />
<a href="http://alastairc.ac/wp-content/uploads/2012/01/cathedral-new2.jpg"><img src="http://alastairc.ac/wp-content/uploads/2012/01/cathedral-new-sm.jpg" alt="A reasonable looking shot of the same thing, moderate shadows and sky."  class="centered size-medium wp-image-808" /></a></p>
<p>For me, that is closer to what I was seeing, because at the time, my eye would flick to the building and I could see the details, and then flick to the sky and not see a washed-out white thing.</p>
<p>People, sky and water are not easy to capture with HDR, but it has found a place in my arsenal. If you are interested in HDR photography, I recommend checking out <a href="https://plus.google.com/105237212888595777019/">Trey Ratcliff&#8217;s</a> <a href="http://www.stuckincustoms.com/hdr-tutorial">StuckinCustoms</a>. Apart from using <a href="http://www.pixelmator.com/">Pixelmator</a> instead of Photoshop (which I can&#8217;t use to save my life), I learned about HDR from his site.</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2012/01/hdr-like-eye-exposure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zooming bug in Webkit</title>
		<link>http://alastairc.ac/2012/01/zooming-bug-in-webkit/</link>
		<comments>http://alastairc.ac/2012/01/zooming-bug-in-webkit/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 00:08:12 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Front-end code]]></category>
		<category><![CDATA[media queries]]></category>
		<category><![CDATA[responsive design]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=786</guid>
		<description><![CDATA[<img class="alignleft size-thumbnail wp-image-794" title="Boston globe zoomed in Chrome" src="http://alastairc.ac/wp-content/uploads/2012/01/boston-globe-chrome-200-150x108.png" alt="Boston globe zoomed in Chrome" width="150" height="108" />I've noticed a bug in Webkit browsers that impacts accessibility: Zooming in does not trigger media queries. Responsive design techniques can really help people who zoom in with their browser, but not in Chrome or Safari at the moment.]]></description>
				<content:encoded><![CDATA[<p><ins datetime="2013-04-15T08:48:13+00:00">This bug <a href="https://bugs.webkit.org/show_bug.cgi?id=53186">appears to have been fixed</a>, we should see it from webkit version 528. Hopefully just in time to be included in Blink as well? I will leave the rest of this post here for posterity:</ins></p>
<p>I&#8217;ve noticed a bug in Webkit browsers (Chrome and Safari) that impacts accessibility: Zooming in does not trigger media queries.</p>
<p>To show the effect, take a recent responsive design such as the <a href="http://bostonglobe.com/">Boston Globe</a> and zoom in. In Firefox, Internet Explorer or Opera and it behaves how I expected, the media-queries trigger and the layout adapts:</p>
<p><a href="/wp-content/uploads/2012/01/boston-globe-ff-both.png"><img class="aligncenter size-full wp-image-792" title="Boston Globe Firefox screenshots" src="http://alastairc.ac/wp-content/uploads/2012/01/boston-globe-ff-both-small.png" alt="Two screen shots of the boston globe site at different zoom levels." width="500" height="187" /></a></p>
<p>&nbsp;</p>
<p>However, when you try the same thing with Chrome or Safari, the zoom works (text and images get bigger), but all within the same layout:</p>
<p><a href="/wp-content/uploads/2012/01/boston-globe-chrome-both.png"><img class="aligncenter size-full wp-image-793" title="Boston Globe Chrome screenshots." src="http://alastairc.ac/wp-content/uploads/2012/01/boston-globe-chrome-both-small.png" alt="Two screenshots using Chrome, where the zoomed in version has a lot of overlapping elements." width="500" height="182" /></a></p>
<p>&nbsp;</p>
<p>NB: I think it is around 200% zoom, but it may be a little off.</p>
<p>It gets even more obvious when you scroll down, as you have huge text in narrow columns.</p>
<h2>Accessibility</h2>
<p>It looks like a bug, but you might be asking what effect that has on accessibility? The main impact is on people with mild to moderate visual impairment who use browser controls to increase the visibility of websites.</p>
<p>The browser landscape has changed a lot in the last few years, including how browsers zoom. In ye-olde days most browsers allowed you to increase the text size. Now the default method across virtually all browsers is to &#8220;zoom&#8221;, which increases the size of <em>everything</em>.</p>
<p>Zoom works well for people who need things a bit bigger unless you immediately get <strong>horizontal scrolling</strong>. That is why <a href="http://www.alistapart.com/articles/responsive-web-design/">responsive designs</a> (which re-flows the layout at smaller resolutions) work well for zooming, because the layout adapts to the available width.</p>
<h2>What is a zoomed pixel?</h2>
<p>I don&#8217;t know what the root cause is, however, from a front-end development point of view it is as though Firefox and Internet Explorer increase the effective pixel size, so when you zoom in there are less pixels in the same area. Webkit does not seem to take the same approach.</p>
<p>It is not event-related, as reloading the page does not trigger the media queries (except the edge-case described below). Overall it is very odd, because the reported pixel size of the window does change, at least for JavaScript (<a href="/testing/window_sizing.html">test example</a>).</p>
<p>Mobile Webkit uses a different style of zooming, as when you &#8216;zoom in&#8217; the window stays the same, but your view zooms in without affecting the layout. I wonder if this is a conflicting method?</p>
<p>Another oddity is the difference when using EMs. I created a <a href="/testing/media-query-width.html">simple test case of max-width media queries</a> in pixels and EMs. If you zoom in so the page reports less than 500px of width, neither triggers. However, if you then refresh the page, the EM based query (only) does trigger. Bizarre, but another facet to the bug(s).</p>
<p>I suspect that Google is aware of some issues to do with this, otherwise you wouldn&#8217;t get a red-banner warning if you zoom in on a Google Doc:</p>
<p><a href="/wp-content/uploads/2012/01/Good-doc-warning.png"><img class="aligncenter size-medium wp-image-790" title="Google doc warning" src="http://alastairc.ac/wp-content/uploads/2012/01/Good-doc-warning-300x107.png" alt="Screenshot of a blank Google document with a red banner saying this zoom level is not supported." width="300" height="107" /></a></p>
<p>It might not affect many people at the moment (although that is debatable), but Chrome is rapidly gathering market share, so either it will affect people or it reduces Webkit browsers usefulness on the desktop.</p>
<p>I&#8217;m not in the Webkit browser world, so my question is: where&#8217;s the best place to report this?</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2012/01/zooming-bug-in-webkit/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The &#8220;Open Web Stack&#8221; &#8211; Snappy acronym needed</title>
		<link>http://alastairc.ac/2011/01/the-open-web-stack-snappy-acronym-needed/</link>
		<comments>http://alastairc.ac/2011/01/the-open-web-stack-snappy-acronym-needed/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 18:13:50 +0000</pubDate>
		<dc:creator>AlastairC</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://alastairc.ac/?p=759</guid>
		<description><![CDATA[<img src="/wp-content/uploads/2011/01/is_it_really_html5.png" alt="The W3C&#039;s new logo for HTML5 with a whacking great question mark next to it." title="HTML5, really?" width="180" height="128" class="alignleft size-full wp-image-761" />Chris Mills at the Web Standards project posted up <a href="http://www.webstandards.org/2011/01/18/regarding-the-html5-logo/">an open letter to the W3C</a> about the new "<a href="http://www.w3.org/html/logo/">HTML5 logo</a>", which I commented on, but it seems comments are off. So here's what I wrote...]]></description>
				<content:encoded><![CDATA[<p><img src="/wp-content/uploads/2011/01/is_it_really_html5.png" alt="The W3C&#039;s new logo for HTML5 with a whacking great question mark next to it." title="HTML5, really?" width="180" height="128" class="alignleft size-full wp-image-761" />Chris Mills at the Web Standards project posted up <a href="http://www.webstandards.org/2011/01/18/regarding-the-html5-logo/">an open letter to the W3C</a> about the new &#8220;<a href="http://www.w3.org/html/logo/">HTML5 logo</a>&#8220;, which I commented on, but it seems comments are off. So here&#8217;s what I wrote:</p>
<p class="cl">Good points, and I certainly agree with not using HTML5 as the umbrella term.</p>
<p>However, I’m not sure <a href="http://adactio.com/journal/4289/">Jeremy’s point</a> that we didn’t need a catch-all term for “HTML4.01 plus JavaScript” is going to help. (We did have DHTML as an umbrella term. Ok, that is a tarnished example, but my point is that people still remember the acronym.).</p>
<p>Presumably the aim of the logo is to let (non-developers) know that a site is built with a certain set of technologies?</p>
<p>So the next question is: <strong>What should the umbrella term be?</strong></p>
<p>I believe Eric Meyer has been using “Open web stack”, which is accurate and works with developers. However, I think we need something a little shorter and snappier (preferably an acronym of 6 letters or less that can be pronounced easily. Like AJAX.).</p>
<p>Something that combines W3C, open, web… the WOW stack? Maybe not, <strong>any other ideas?</strong></p>
<p>We need <em>something else</em>, or HTML5 will become entrenched as the umbrella term.</p>
]]></content:encoded>
			<wfw:commentRss>http://alastairc.ac/2011/01/the-open-web-stack-snappy-acronym-needed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
