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

Clean up -webkit-background-clip data #4291

Merged
merged 5 commits into from
Jun 13, 2019
Merged

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Jun 12, 2019

This PR fixes a number of issues with the background-clip data. It was kind of a mess. This also contributes to #3804 and #3805.

Update -webkit-background-clip property data for WebKit and Chromium

While working on #4290, I found that -webkit-background-clip was added to WebKit at the same time as appearance: https://trac.webkit.org/changeset/13874/webkit

Because this predates Chromium, I've set the -webkit-background-clip version
on Chromium and derived browsers to their first releases.

Since I was changing this data anyway, I also corrected the style of the notes, to refer to the browsers specifically (rather than WebKit generically).

Update content-box value data for Chromium

This blog post on the WebKit post establishes that the content-box value was original to -webkit-background-clip, so I updated the Chromiums accordingly: https://webkit.org/blog/164/background-clip-text/

Clean up text value data

First, I cleaned up the version data itself:

Then I cleaned up the messy prefix data and notes. Mostly, I replaced prefix data with partial_implementation to catch that apparently some browsers only allow text with the -webkit- prefix on the property itself (not the value), or I removed the data where it didn't appear to be applicable. Since I was changing the notes, I also corrected for style, splitting the distinct notes into arrays.

ddbeck added 5 commits June 12, 2019 12:13
While working on mdn#4290, I found that `-webkit-background-clip` was added to
WebKit at the same time as `appearance`:
https://trac.webkit.org/changeset/13874/webkit

Because this predates Chromium, I've set the `-webkit-background-clip` version
on Chromium and derived browsers to their first releases.
This blog post on the WebKit post establishes that the `content-box` value was
original to `-webkit-background-clip`, so I also updated the Chromiums
accordingly:
https://webkit.org/blog/164/background-clip-text/
This page establishes that Safari 4 first shipped the `text` value:
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html

I derived the iOS version from Safari 4's WebKit engine number.

The discussion on this Chromium bug suggests that the `text` value started
working in Chrome 3:
https://crbug.com/8872
@ddbeck ddbeck added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Jun 12, 2019
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.

Woah! Amazing research and clean-up, Daniel! 🎉
Thank you! 👍

@Elchi3 Elchi3 merged commit 93e91e8 into mdn:master Jun 13, 2019
@ddbeck ddbeck deleted the webkit-background-clip branch June 13, 2019 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants