W3C home > Mailing lists > Public > www-style@w3.org > November 2014

Multiple assignment structure (suggestion)

From: Felipe Nascimento de Moura <felipenmoura@gmail.com>
Date: Wed, 26 Nov 2014 20:52:57 -0200
Message-ID: <CAJVBkVkGpUov87HnvJ8Ww+S_bAy4XynxD_qZPYK4U33jNDik0w@mail.gmail.com>
To: www-style <www-style@w3.org>
Hi there.

I was wondering if this would make any sense to you.
If someone has already suggested it, or it has already been discussed,
sorry, but I couldn't find it(may, a different name?).

The idea is to add a syntax support to set properties like this:

selector-1,
selector-2 {
    border:
    padding:
    opacity:
    margin: 0;
    position: absolute;
    left:
    top: 0;
}

This would helps us have even smaller css files.
Another example:

selector-1,
selector-2 {
    color:
    border-color: #009;
}

What do you think?

Regards.

-- 
*Felipe N. Moura*
Senior Web Developer

Website:  http://felipenmoura.org
Twitter:    @felipenmoura <http://twitter.com/felipenmoura>
LinkedIn: http://goo.gl/qGmq

Meet some of my projects:
BrazilJS Conference <http://braziljs.com.br/>  |  BrazilJS Foundation
<http://braziljs.org>  |  Power Polygon
<http://github.com/braziljs/power-polygon>  |  TheWebMind
<http://thewebmind.org/>  |  PHPDevBar
<https://addons.mozilla.org/pt-BR/firefox/addon/php-developer-toolbar/>
---------------------------------
LinuxUser #508332
*Changing  the  world*  is the least I expect from  myself!
Received on Wednesday, 26 November 2014 22:54:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:26 UTC