[go: up one dir, main page]

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

Remove textLength as a global SVG attribute #23135

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

foolip
Copy link
Collaborator
@foolip foolip commented May 20, 2024

It can only be used on SVG <text>, <tspan>, and <textPath>, and
previously <tref> which has been removed now.

@github-actions github-actions bot added the data:svg 🖌️ Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG label May 20, 2024
@foolip foolip requested a review from queengooborg May 20, 2024 09:25
@Elchi3 Elchi3 added the needs content update 📝 This PR needs a corresponding update to mdn/content to update the documentation label May 27, 2024
Copy link
Member
@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

This would break the MDN page at https://developer.mozilla.org/docs/Web/SVG/Attribute/textLength

We usually try to have a content PR before merging. I'm assuming this data is available in BCD elsewhere?

Copy link
Collaborator
@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

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

This attribute is added under the <text> element in BCD, but we need to add it to the other three elements as well.

@foolip
Copy link
Collaborator Author
foolip commented Jun 5, 2024

I've sent mdn/content#33939 to update MDN.

Rumyra pushed a commit to mdn/content that referenced this pull request Jun 5, 2024
It can only be used on SVG <text>, <tspan>, and <textPath>, and
previously <tref> which has been removed now.
@foolip
Copy link
Collaborator Author
foolip commented Jun 5, 2024

And now I've updated this PR to also add the attribute to <textPath>. I don't think we should add it to <tref> because that's already removed from Safari and just waiting for enough time to pass before we remove the whole entry.

@Elchi3 Elchi3 removed the needs content update 📝 This PR needs a corresponding update to mdn/content to update the documentation label Jun 17, 2024
Copy link
Member
@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@Elchi3 Elchi3 merged commit 35faa27 into mdn:main Jun 17, 2024
6 checks passed
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