CSS WG Blog Selectors Level 4 Updated

This is a page from the Cascading Style Sheets Working Group Blog. Some other places to find information are the “current work” page, the www-style mailing list, the Future of CSS syndicator, and the issue list on Github.

Do you want to know how the CSS WG works? Fantasai has written about:csswg, An Inside View of the CSS Working Group at W3C.

Selectors Level 4 Updated

By fantasai May 2, 2013 (Permalink)
Categories: publications

The CSS Working Group has published an updated Working Draft of Selectors Level 4. Selectors is a pattern-matching syntax for identifying sets of elements in a document, and is used e.g. for applying CSS declarations to elements in a document tree.

Additions include some new selectors: :blank for elements that are empty or contain only white space, and :placeholder-shown for inputs that are showing a placeholder. Review and improved naming suggestions are particularly welcome on these—and also on the drag and drop pseudos.

Another important change is lifting restrictions on :matches() and :not() to accept complex selectors, and the definition of two profiles, one for CSS matching and another for less performance-intensive uses like querySelector. We particularly encourage implementers to comment on whether this split is reasonable, or whether different things should be included/excluded.

The Working Draft includes a list of changes since the previous WD.

As always, please send feedback to the (archived) public mailing list www-style@w3.org with the spec code ([selectors]) and your comment topic in the subject line. (Alternatively, you can email one of the editors and ask them to forward your comment.)

« Previous article Next article »

[Photo: group photo of the CSS working group in Lyon, France] Contact: Bert Bos
Copyright © 2017 W3C®

Last updated 2013-05-02 23:25:46