Re: Will CSS ever be programmable?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Quoted text here. Click to load it

Any decent editor has a S&R feature

Search: color:blue
Replace: color:red

Only takes a few seconds

Btw, this is off topic in alt.html.critique, crossposted and follow-up
set to alt.html


Re: Will CSS ever be programmable?

Quoted text here. Click to load it

This would break down if he started with:


and he wanted to change it to his example.  "Replace all" would change
his body border and h2 foreground to blue as well.  Inspect/confirm S&R
would certainly save keystrokes, but it would have increased cognitive
load (have to determine, for every "red" you find, whether it was one of
the ones you wanted to change).

It's really the old issue of separating the *name* of something from its
*value*.  We all, hopefully, know that CSS class names should reflect the
*purpose* of the class rather than its *appearance*, not just because it
lets us easily change them, but also because we might start out with two
or more areas with different purposes but the same appearance, and later
want them to have different appearances.

However, what the OP wants could easily be achieved by using any old text
preprocessor like m4.

Site Timeline