LeaVerou / css3test

How does your browser score for its CSS3 support?
http://css3test.com
MIT License
214 stars 83 forks source link

Added DOM feature checks #236

Closed SebastianZ closed 1 year ago

SebastianZ commented 1 year ago

I've added the methods interface and attributeOrMethod that check for DOM feature support.

Based on this new functionality, I've added all the DOM API feature and event checks I could find for the different specs. I probably missed a few features, though I believe that's a good start.

Note that with this addition I could also add a bunch of new specs which previously weren't covered because they only (or mostly) define DOM APIs.

This fixes #211.

Sebastian

Zefling commented 1 year ago

mdn is already used for link overwrites

SebastianZ commented 1 year ago

What @Zefling says. See https://github.com/LeaVerou/css3test/blob/537290913c4c7b42108333962158070a319232a2/tests/css-color-4.js#L97 for an example.

Also, mdnGroup already existed before this patch. If we want to change that, it should be handled in a separate issue/patch.

Thanks for approving the PR!

Sebastian