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

Update SVG attribute data from null to false based on collector results #23129

Closed
wants to merge 1 commit into from

Conversation

foolip
Copy link
Collaborator

@foolip foolip commented May 19, 2024

These are changes that the collector can make after this bugfix:
openwebdocs/mdn-bcd-collector#1473

@github-actions github-actions bot added the data:svg 🖌️ Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG label May 19, 2024
@foolip foolip requested a review from queengooborg May 19, 2024 16:44
@@ -43,12 +43,12 @@
"spec_url": "https://svgwg.org/svg2-draft/struct.html#LangSpaceAttrs",
"support": {
"chrome": {
"version_added": null
"version_added": false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://mdn-bcd-collector.gooborg.com/tests/svg/global_attributes/lang looks to me like an invalid test for this. It's looking for a lang property, but there is no lang IDL attribute on SVGElement or any subinterface.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...if there isn't a matching IDL attribute, what's our best way to test this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the lang attribute has any observable effect to a web developer, but perhaps it affects the accessibility tree. But testing ancient browsers with ancient screen readers to figure this out doesn't seem justified.

I think we can set these versions to the earliest version that SVG was supported at all.

@@ -760,12 +760,12 @@
"spec_url": "https://www.w3.org/TR/SVG11/struct.html#RequiredFeaturesAttribute",
"support": {
"chrome": {
"version_added": null
"version_added": false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://mdn-bcd-collector.gooborg.com/tests/svg/global_attributes/requiredFeatures also seems invalid, there is no requiredFeatures IDL attribute.

@@ -794,12 +794,12 @@
"spec_url": "https://svgwg.org/svg2-draft/struct.html#ConditionalProcessingSystemLanguageAttribute",
"support": {
"chrome": {
"version_added": null
"version_added": false
Copy link
Collaborator Author

@foolip foolip May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is defined in https://svgwg.org/svg2-draft/types.html#InterfaceSVGTests but https://mdn-bcd-collector.gooborg.com/tests/svg/global_attributes/systemLanguage is invalid because it's looking for the property on a generic SVGElement, but but the IDL attribute is on SVGAnimationElement and SVGGraphicsElement.

@@ -902,12 +902,12 @@
"spec_url": "https://drafts.fxtf.org/css-masking/#clip-property",
"support": {
"chrome": {
"version_added": null
"version_added": false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No spec defines a clip IDL attribute so https://mdn-bcd-collector.gooborg.com/tests/svg/global_attributes/clip is invalid I think.

@foolip
Copy link
Collaborator Author

foolip commented May 20, 2024

I've gone through about half of the changes and found that the tests are invalid. I'll mark this draft and file an issue on the collector instead.

@foolip foolip marked this pull request as draft May 20, 2024 08:43
@foolip
Copy link
Collaborator Author

foolip commented May 20, 2024

I have sent openwebdocs/mdn-bcd-collector#1474.

@Elchi3
Copy link
Member

Elchi3 commented Jun 28, 2024

Closing this given openwebdocs/mdn-bcd-collector#1474 and other fixes.

@Elchi3 Elchi3 closed this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:svg 🖌️ Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants