Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check if selector exists in selectors.json #687
I've tested that this makes the macro error go away for pages like :matches and ::slotted that don't yet have entries in mdn/data, and spot-checked some other CSS pages to check they are not regressed.
Since this is a fix for an error that's already in production, let's merge it. We should have regression tests for this macro though (but I do hope to replace the macro fairly soon, so I'm not sure it'a worth writing full tests).