Skip to content

Style attributes in a condition #7

@vvoovv

Description

@vvoovv

It's desirable to access some variables in the condition of a style block.

Example. A small building can have only one entrance. A larger building can have exactly two entrances.

That can be realized by using the style variable count in the condition. It's proposed to prefix it with the style namespace.

facade[item.front and style.count<=1] {
  class: facade_with_door;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions