<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Dynamic Drive Forums - Blogs - Snookerman</title>
		<link>http://www.dynamicdrive.com/forums/blog.php?34497-Snookerman</link>
		<description>Dynamic Drive help forum</description>
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 09:14:22 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>10</ttl>
		<image>
			<url>http://www.dynamicdrive.com/forums/images/misc/rss.jpg</url>
			<title>Dynamic Drive Forums - Blogs - Snookerman</title>
			<link>http://www.dynamicdrive.com/forums/blog.php?34497-Snookerman</link>
		</image>
		<item>
			<title>CSS selector wish list</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?42-CSS-selector-wish-list</link>
			<pubDate>Tue, 23 Mar 2010 11:18:02 GMT</pubDate>
			<description><![CDATA[With CSS3, we have gotten many new pseudo selectors that give us a great deal of options. However, the short list of combinator selectors has only been increased from 3 to 4: 
 
Code: 
--------- 
foo bar 
foo>bar 
foo+bar 
foo~bar 
--------- 
The first combinator is the most used selector and...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">With CSS3, we have gotten many new pseudo selectors that give us a great deal of options. However, the short list of combinator selectors has only been increased from 3 to 4:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:72px;">foo bar
foo&gt;bar
foo+bar
foo~bar</pre>
</div>The first combinator is the most used selector and selects any element bar that is a descendant of foo. The second combinator selects any element bar that is a child (direct descendant) of foo. The third combinator selects any element bar that is an adjacent sibling to (comes directly after) foo. The fourth one, that was defined in CSS3, selects any element bar that is a general sibling (comes after but not necessarily directly after) foo.<br />
<br />
The problem here is that there is no way to select foo. One case that I often come across is when foo is a parent to bar. To select bar, we use <code style="background-color: #FFFFBB">foo&gt;bar</code> so it makes a lot of sense to select foo using <code style="background-color: #FFFFBB">bar&lt;foo</code>. In the adjacent sibling case we use a plus sign to go forward: <code style="background-color: #FFFFBB">foo+bar</code> so it would make sense to use a minus sign to go backward: <code style="background-color: #FFFFBB">bar-foo</code>. This is fine for elements but can be problematic for class and id values where the minus sign can be mistaken for a hyphen. The same goes for XML elements that (I think) can contain hyphens. The solution could be to only allow combinators separated by spaces: <code style="background-color: #FFFFBB">bar - foo</code> (now, the spaces are optional (except for the first case of course)).<br />
<br />
The opposite symbols to use for the other two cases are less obvious, but we could for instance use <code style="background-color: #FFFFBB">bar^foo</code> for the first case and <i>*looks at keyboard to find a symbol*</i> maybe <code style="background-color: #FFFFBB">bar=foo</code> for the last case (although an equal sign doesn't make that much sense here (then again, neither does an exclamation point when it means <i>not</i> in some languages (except for <code style="background-color: #FFFFBB">!important</code> in CSS which I always think of as <i>not important</i> although it means the exact opposite (am I alone?)))).<br />
<br />
So my wish list would look something like this:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:120px;">foo bar
<font color="Red">bar ^ foo</font>
foo &gt; bar
<font color="Red">bar &lt; foo</font>
foo + bar
<font color="Red">bar - foo</font>
foo ~ bar
<font color="Red">bar = foo</font></pre>
</div>The selectors in red are my suggestions and don't work now, so don't use them!<br />
<br />
So please W3C, can I has selectors?<br />
Eddy Proca</blockquote>

]]></content:encoded>
			<dc:creator>Snookerman</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?42-CSS-selector-wish-list</guid>
		</item>
		<item>
			<title>Happy belated/early Naked Day!</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?22-Happy-belated-early-Naked-Day!</link>
			<pubDate>Fri, 10 Apr 2009 08:10:14 GMT</pubDate>
			<description>Yesterday, April 9th was the fourth annual CSS Naked Day. Participating websites get rid of their stylesheets and feed their naked markup to the world. The reason for this is to promote web standards and semantics. 
 
To learn more about this and sign up (for next year) go to this page:...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Yesterday, April 9th was the fourth annual CSS Naked Day. Participating websites get rid of their stylesheets and feed their naked markup to the world. The reason for this is to promote web standards and semantics.<br />
<br />
To learn more about this and sign up (for next year) go to this page: <a href="http://naked.dustindiaz.com/" target="_blank"><font color="RoyalBlue"><b>http://naked.dustindiaz.com/</b></font></a><br />
<br />
P.S. I know it would have been better if I posted this <i>before</i> April 9th but I forgot :rolleyes: about it. Well, instead of seeing this as a late post about CSS Naked Day 2009, you can think of it as a really early announcement for CSS Naked Day 2010 :D</blockquote>

]]></content:encoded>
			<dc:creator>Snookerman</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?22-Happy-belated-early-Naked-Day!</guid>
		</item>
		<item>
			<title>Earth Hour 2009 8:30-9:30pm</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?17-Earth-Hour-2009-8-30-9-30pm</link>
			<pubDate>Sat, 28 Mar 2009 07:32:07 GMT</pubDate>
			<description>*Saturday _28 March 2009_ at _8:30PM_ local time, wherever you live on planet earth.* 
 
Image: http://www.earthhour.org/images/voteearth/voteearth_en.png  
 
Today, Saturday March 28 at *8:30PM* your local time you can do something for our planet by switching off your lights for just one hour. You...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><div style="background-color:#FAF5AD; border:1px solid gray; padding:5px"><div style="margin-left:40px"><b><font color="Green"><font size="3">Saturday <u>28 March 2009</u> at <u>8:30PM</u> local time, wherever you live on planet earth.</font></font></b></div></div><br />
<div style="text-align: center;"><img src="http://www.earthhour.org/images/voteearth/voteearth_en.png" border="0" alt="" /></div><br />
Today, Saturday March 28 at <b><font color="Green">8:30PM</font></b> your local time you can do something for our planet by switching off your lights for just one hour. You can go to the <a href="http://www.earthhour.org/" target="_blank"><font color="RoyalBlue"><b>Earth Hour website</b></font></a> and register to let everyone know that you will VOTE EARTH today. The goal is 1 billion people and the results will be presented at the Global Climate Change Conference in Copenhagen. The policies decided there will replace the Kyoto Protocol.<br />
<br />
You can also take a look at the <a href="http://www.youtube.com/earthhour2009" target="_blank"><font color="RoyalBlue"><b>Earth Hour YouTube channel</b></font></a> to see what people will be doing during Earth Hour.<br />
<br />
So remember to switch off your lights today, <b><font color="Green">Saturday, March 28, 8:30-9:30pm</font></b>.</blockquote>

]]></content:encoded>
			<dc:creator>Snookerman</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?17-Earth-Hour-2009-8-30-9-30pm</guid>
		</item>
	</channel>
</rss>
