Wiki  |   Blog  |   Sitemap  |   Search  
HomeBlogUpcoming changes to CSS

Upcoming change to ::pseudo-elements / :pseudo-classes syntax

It looks like we have mistreated CSS syntax regarding using pseudo-elements and pseudo-classes when they are specified in the same selector. The order does matter and it should be different.

This is wrong:

<style type="text/ample+css"> @namespace xul ""; xul|textbox::value:focus { color: red; } </style>

While this is correct:

<style type="text/ample+css"> @namespace xul ""; xul|textbox:focus::value { color: red; } </style>

Expect the order to be changed in the next version of Ample SDK.