Closed mattrberry closed 1 month ago
The following produces .y.x::scrollbar:vertical as expected
.y.x::scrollbar:vertical
print(unifyCompound( CompoundSelector.parse('.x'), CompoundSelector.parse('.y::scrollbar:vertical'), ));
However, swapping the operands produces .x.y:vertical::scrollbar
.x.y:vertical::scrollbar
print(unifyCompound( CompoundSelector.parse('.y::scrollbar:vertical'), CompoundSelector.parse('.x'), ));
To clarify, because I was confused, the issue is not that .x and .y switched places. The issue is that :vertical and ::scrollbar switched places
.x
.y
:vertical
::scrollbar
The following produces
.y.x::scrollbar:vertical
as expectedHowever, swapping the operands produces
.x.y:vertical::scrollbar