Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unifyCompound is not commutative when applied to pseudo classes of pseudo elements #2335

Open
mattrberry opened this issue Sep 5, 2024 · 1 comment · May be fixed by #2350
Open

unifyCompound is not commutative when applied to pseudo classes of pseudo elements #2335

mattrberry opened this issue Sep 5, 2024 · 1 comment · May be fixed by #2350
Assignees
Labels

Comments

@mattrberry
Copy link

The following produces .y.x::scrollbar:vertical as expected

print(unifyCompound(
  CompoundSelector.parse('.x'),
  CompoundSelector.parse('.y::scrollbar:vertical'),
));

However, swapping the operands produces .x.y:vertical::scrollbar

print(unifyCompound(
  CompoundSelector.parse('.y::scrollbar:vertical'),
  CompoundSelector.parse('.x'),
));
@Goodwine Goodwine added the bug label Sep 10, 2024
@Goodwine Goodwine self-assigned this Sep 12, 2024
@Goodwine
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants