tomhodgins / element-queries-spec

A spec for a Container-Style Element Query Syntax
https://tomhodgins.github.io/element-queries-spec/element-queries.html
367 stars 14 forks source link

Combining multiple @element-querries #13

Open SlawaGurevich opened 6 years ago

SlawaGurevich commented 6 years ago

Hi guys,

is it possible to combine multiple @element-querries. What I'm thinking of is something like

@element ".button__container" and (min-children:3){ 
  @element ".button" and (min-width:276px) {
    :self {
      width: 100%; 
    }

    :parent {      
      flex-basis: 476px;
    }
  }
}

I would like to apply the style to the buttons, but only if the button__container has more than 2 buttons. However, this doesn't seem to work.

Regards Slawa