AjaxLine weekly

Weekly 05.05-12.05

JavaScript Libraries

Silverlight

XML

Perl

Social Networks

Google

PHP

XML

Eclipse

Java

Web Design

Javascript

 

Databases

Various

Eclipse

Python

GWT

Ruby

.NET

ASP.NET

CSS Qualified Selectors

Shaun Inman post an article about qualified selectors in his blog. He writes the following:

«I’m considering writing a proposal for CSS Qualified Selectors to be submitted to the CSS Working Group. But before I do I wanted to open the idea up for discussion. I’m looking for comments on the proposed feature’s utility and hopefully, offers to help write the implementation details, specifically changes to CSS Grammar and Lexical Scanner—I’m pretty sure I can handle the rest.

What exactly are Qualified Selectors?

Descendant selectors are a pretty common sight so let’s start there.

a img { ... }

This style is applied to any image inside of any anchor element. But what if we already have an anchor style defined

a

{

text-decoration: none;

color: #A10;

border-bottom: 1px dashed #A10;

}

but don’t want this style applied to our image links? Currently we must add a new class to each of our image links so we have a hook to disable the unwanted style (in this exampe, the border-bottom).

What if we could just write:

a < img { border: none; }

That is a qualified selector. A qualified selector can only contain one <. The element immediately to the left of the < is the target of the selector, everything after is the qualifier. In this case, the style would only apply to anchors that contain an image.»

You can read the full version of this article in Shaun Inman blog.

Dayli news 08.05

Weekly 28.04-05.05

Syndicate content