On Mon, 2016-06-06 at 22:54 +0530, Kamalpreet Grewal wrote:
On Mon, Jun 6, 2016 at 12:49 PM, Tavmjong Bah <tavmjong@...8...> wrote:
Yes, a comma separated list:
#MyRect1, #MyRect2, #MyRect3 { fill: red; }
For a single selected object as well as selection of multiple objects, this has been implemented. Though there is not much distinction between classes and ids yet, which will be done shortly, ids are separated by commas yet.
A selector can be appended to another if it already exists for an object.
My work can be checked here: https://code.launchpad.net/~grewalkamal005/inkscape/css-suppor
Good to see you making progress. I've had a look at your code. A few comments:
1. ID's should not be added to the class attribute. They need to be added to the style sheet which is not easy to do at the moment. The SPStyle class is not very complete.
2. The style dialog should show the selectors from the style sheet so it should show:
1 .red 2 #MyRect1, #MyRect2, #MyRect3
This is so the user immediately know what selectors are defined.
3. The automake build is broken. I've attached a patch.
4. In loops, use 'unsigned' values to prevent warnings about comparing unsigned and signed quantities:
for( unsigned i = 0; i < selected.size(); ++i ) {
Tav