File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -513,28 +513,28 @@ namespace Sass {
513
513
// check for pseudo elements because they are always last
514
514
size_t i, L;
515
515
bool found = false ;
516
- if (typeid (*this ) == typeid (Pseudo_Selector) || typeid (*this ) == typeid (Wrapped_Selector))
516
+ if (typeid (*this ) == typeid (Pseudo_Selector) || typeid (*this ) == typeid (Wrapped_Selector) || typeid (* this ) == typeid (Attribute_Selector) )
517
517
{
518
518
for (i = 0 , L = rhs->length (); i < L; ++i)
519
519
{
520
- if ((Cast<Pseudo_Selector>((*rhs)[i]) || Cast<Wrapped_Selector>((*rhs)[i])) && (*rhs)[L-1 ]->is_pseudo_element ())
520
+ if ((Cast<Pseudo_Selector>((*rhs)[i]) || Cast<Wrapped_Selector>((*rhs)[i]) || Cast<Attribute_Selector>((*rhs)[i]) ) && (*rhs)[L-1 ]->is_pseudo_element ())
521
521
{ found = true ; break ; }
522
522
}
523
523
}
524
524
else
525
525
{
526
526
for (i = 0 , L = rhs->length (); i < L; ++i)
527
527
{
528
- if (Cast<Pseudo_Selector>((*rhs)[i]) || Cast<Wrapped_Selector>((*rhs)[i]))
528
+ if (Cast<Pseudo_Selector>((*rhs)[i]) || Cast<Wrapped_Selector>((*rhs)[i]) || Cast<Attribute_Selector>((*rhs)[i]) )
529
529
{ found = true ; break ; }
530
530
}
531
531
}
532
532
if (!found)
533
533
{
534
534
rhs->append (this );
535
- return rhs;
535
+ } else {
536
+ rhs->elements ().insert (rhs->elements ().begin () + i, this );
536
537
}
537
- rhs->elements ().insert (rhs->elements ().begin () + i, this );
538
538
return rhs;
539
539
}
540
540
You can’t perform that action at this time.
0 commit comments