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 ElementCSSInlineStyle #10686

Merged
merged 1 commit into from
Jun 8, 2021
Merged

Demix ElementCSSInlineStyle #10686

merged 1 commit into from
Jun 8, 2021

Conversation

foolip
Copy link
Contributor

@foolip foolip commented May 31, 2021

Tests used (staging because a test bug was just fixed):
http://staging-dot-mdn-bcd-collector.appspot.com/tests/api/HTMLElement
http://staging-dot-mdn-bcd-collector.appspot.com/tests/api/MathMLElement
http://staging-dot-mdn-bcd-collector.appspot.com/tests/api/SVGElement

As a starting point, the existing api.Element.attributeStyleMap and
api.HTMLElement.style entries were combined into
ElementCSSInlineStyle__HTMLElement.json without modification.

MathMLElement data is based on mdn-bcd-collector results from Firefox
and Safari desktop. Mobile data was mirrored. The api.MathMLElement
parent entry was also updated. Note that there's no
api.MathMLElement.attributeStyleMap entry because no browser supports
it.

SVGElement data is hard to be 100% confident in because it goes back so
far. api.SVGElement.style support was confirmed in:

  • Chrome ≤15
  • IE 9
  • Firefox ≤4
  • Opera ≤12.1
  • Safari ≤4

The following were assumed/mirrored:

  • Chrome 1 / for Android 18
  • Edge 12
  • Firefox 1.5 / for Android 4
  • Opera for Android ≤12.1
  • Safari 3 / for iOS 1
  • Samsung Internet 1.0
  • WebView 1

SVGElement itself was changed to Firefox 1.5 too, as the only
SVG-related entry marked as shipped in Firefox 1.

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label May 31, 2021
@foolip foolip requested a review from Elchi3 June 1, 2021 11:25
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.

Looks good to me.

Not sure where we are with a policy regarding 404 MDN links in BCD. I guess we could remove these...

Also, as a general fyi, mixins are also allowed to appear inline with the interfaces. I've done this sometimes when the mixin is relatively small (like it is here). However, I'm fine with having them in the _mixins folder, too. Just saying :)

@Elchi3
Copy link
Member

Elchi3 commented Jun 1, 2021

Let me know if you want to remove the 404 links, otherwise this is good to merge.

@foolip
Copy link
Contributor Author

foolip commented Jun 1, 2021

I'll prepare the MDN PR for this first to see which of the URLs end up existing again...

foolip added a commit to foolip/content that referenced this pull request Jun 1, 2021
Redirect ElementCSSInlineStyle.style to HTMLElement.style, as that's
seemingly what many of these instances pointed at originally, and it's
the most common case when used in examples/explanations.

Of the six pages that should exist here, only HTMLElement.style actually
exists.

BCD cleanup: mdn/browser-compat-data#10686
@foolip
Copy link
Contributor Author

foolip commented Jun 1, 2021

I've sent mdn/content#5556 and will remove mdn_urls that will still be 404 after that.

Tests used (staging because a test bug was just fixed):
http://staging-dot-mdn-bcd-collector.appspot.com/tests/api/HTMLElement
http://staging-dot-mdn-bcd-collector.appspot.com/tests/api/MathMLElement
http://staging-dot-mdn-bcd-collector.appspot.com/tests/api/SVGElement

As a starting point, the existing api.Element.attributeStyleMap and
api.HTMLElement.style entries were combined into
ElementCSSInlineStyle__HTMLElement.json without modification.

MathMLElement data is based on mdn-bcd-collector results from Firefox
and Safari desktop. Mobile data was mirrored. The api.MathMLElement
parent entry was also updated. Note that there's no
api.MathMLElement.attributeStyleMap entry because no browser supports
it.

SVGElement data is hard to be 100% confident in because it goes back so
far. api.SVGElement.style support was confirmed in:
 - Chrome ≤15
 - IE 9
 - Firefox ≤4
 - Opera ≤12.1
 - Safari ≤4

The following were assumed/mirrored:
 - Chrome 1 / for Android 18
 - Edge 12
 - Firefox 1.5 / for Android 4
 - Opera for Android ≤12.1
 - Safari 3 / for iOS 1
 - Samsung Internet 1.0
 - WebView 1

SVGElement itself was changed to Firefox 1.5 too, as the only
SVG-related entry marked as shipped in Firefox 1.
@foolip foolip force-pushed the ElementCSSInlineStyle branch from 78e2bb4 to a058d28 Compare June 1, 2021 22:22
foolip added a commit to foolip/content that referenced this pull request Jun 7, 2021
Redirect ElementCSSInlineStyle.style to HTMLElement.style, as that's
seemingly what many of these instances pointed at originally, and it's
the most common case when used in examples/explanations.

Of the six pages that should exist here, only HTMLElement.style actually
exists.

BCD cleanup: mdn/browser-compat-data#10686
foolip added a commit to foolip/content that referenced this pull request Jun 7, 2021
Redirect ElementCSSInlineStyle.style to HTMLElement.style, as that's
seemingly what many of these instances pointed at originally, and it's
the most common case when used in examples/explanations.

Of the six pages that should exist here, only HTMLElement.style actually
exists.

BCD cleanup: mdn/browser-compat-data#10686
@foolip
Copy link
Contributor Author

foolip commented Jun 8, 2021

@Elchi3 I expect mdn/content#5556 will be merged soon, if you'd care to review this.

@foolip
Copy link
Contributor Author

foolip commented Jun 8, 2021

Oh wait what am I saying, this is already approved. I'll merge it myself when the MDN change is merged, if nobody else does.

@foolip
Copy link
Contributor Author

foolip commented Jun 8, 2021

mdn/content#5556 was merged.

@foolip foolip merged commit b07d872 into mdn:main Jun 8, 2021
@foolip foolip deleted the ElementCSSInlineStyle branch June 8, 2021 12:57
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