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

Demix LinkStyle mixin #10724

Merged
merged 9 commits into from
Jun 9, 2021
Merged

Demix LinkStyle mixin #10724

merged 9 commits into from
Jun 9, 2021

Conversation

queengooborg
Copy link
Contributor

@queengooborg queengooborg commented Jun 2, 2021

This PR demixes the LinkStyle mixin and separates it into the individual API files. Its version numbers have been determined by running the mdn-bcd-collector project in various browsers, along with some mirroring in certain cases.

Additionally, the member this mixin exposed, sheet, was included normally on the HTMLStyleElement API's data. This PR removes it as to prevent de-duplication (and mitigate a loader crash, see #10734).

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jun 2, 2021
"HTMLLinkElement": {
"sheet": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet",
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't exist, at least not yet. Will you also prepare a PR for https://github.com/mdn/content that removes all references to LinkStyle, similar to mdn/content#5579? https://github.com/mdn/content#moving-one-or-more-documents might come in handy if so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't contributed to the content repository yet, but I'd be happy to write a PR to go along with this one!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apparently there's no page for LinkStyle.sheet, so I can't move/copy it. Additionally, there aren't any pages for the sheet property on any of the inheriting APIs. Not really sure what to do on the content repo, would love some assistance!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the main task here is to remove mentions of LinkStyle.sheet. There's no page, but there are references to it. Searching that string should mostly turn up variations on {{domxref("LinkStyle.sheet")}}—there's just a few of them, but you'll need to read it in context to figure out what exactly to cut out (e.g., a <dt>-<dd> pair).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've sent mdn/content#5669 to accompany this PR!

api/_mixins/LinkStyle__HTMLLinkElement.json Show resolved Hide resolved
api/_mixins/LinkStyle__HTMLLinkElement.json Outdated Show resolved Hide resolved
api/_mixins/LinkStyle__HTMLStyleElement.json Outdated Show resolved Hide resolved
api/_mixins/LinkStyle__HTMLLinkElement.json Outdated Show resolved Hide resolved
api/_mixins/LinkStyle__HTMLStyleElement.json Outdated Show resolved Hide resolved
api/_mixins/LinkStyle__ProcessingInstruction.json Outdated Show resolved Hide resolved
api/_mixins/LinkStyle__ProcessingInstruction.json Outdated Show resolved Hide resolved
api/_mixins/LinkStyle__ProcessingInstruction.json Outdated Show resolved Hide resolved
queengooborg and others added 2 commits June 2, 2021 21:43
@queengooborg
Copy link
Contributor Author

From the review of the mdn/content PR, it's been determined that SVGStyleElement also inherits from the LinkStyle mixin. I've updated this PR accordingly!

@foolip
Copy link
Contributor

foolip commented Jun 4, 2021

https://svgwg.org/svg2-draft/styling.html#InterfaceSVGStyleElement confirms that SVGStyleElement includes this mixin (MDN saying so wasn't enough to convince me).

@foolip
Copy link
Contributor

foolip commented Jun 4, 2021

mdn/content#5669 in the MDN change (posting here to make it easier to find for myself)

Copy link
Contributor

@foolip foolip left a comment

Choose a reason for hiding this comment

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

Looks good, but let's merge when the MDN change is ready.

@foolip
Copy link
Contributor

foolip commented Jun 9, 2021

I'll go ahead and merge this, betting that mdn/content#5669 is merged by the time the next BCD release rolls into yari.

@foolip foolip merged commit 3e4bb5f into mdn:main Jun 9, 2021
@ddbeck
Copy link
Collaborator

ddbeck commented Jun 9, 2021

Making a note here for myself, for the release notes:

Removed

  • api.LinkStyle
  • api.LinkStyle.sheet

Added

  • api.HTMLLinkElement.sheet
  • api.ProcessingInstruction.sheet
  • api.SVGStyleElement.sheet

@queengooborg queengooborg deleted the api/LinkStyle/demix branch June 9, 2021 10:17
ddbeck added a commit to ddbeck/browser-compat-data that referenced this pull request Jun 9, 2021
ddbeck added a commit that referenced this pull request Jun 10, 2021
* Bump version to v3.3.7

* Add release note for #10745

* Add release note for #10686

* Add release note for #10744

* Add release note for #10820

* Add release note for #10582

* Add release note for #9464

* Add release note for #10724

* Add release note for #10827

* Add release note for #10829

* Add release note for #10782

* Add stats

* Add release date

* Update stats one last time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants