Skip to content

text-decoration : data from MDN#104

Merged
ai merged 3 commits intobrowserslist:mainfrom
romainmenke:add-text-decoration-from-mdn--practical-peacock-f2a3435f83
Sep 12, 2022
Merged

text-decoration : data from MDN#104
ai merged 3 commits intobrowserslist:mainfrom
romainmenke:add-text-decoration-from-mdn--practical-peacock-f2a3435f83

Conversation

@romainmenke
Copy link
Copy Markdown
Contributor

This adds data for :

  • text-decoration (as shorthand)
  • text-decoration-color
  • text-decoration-line
  • text-decoration-style

This data is needed to correctly resolve postcss/autoprefixer#1473

copy-mdn.js Outdated
'text-decoration shorthand property'
)
writeFileSync(
'./node_modules/caniuse-db/features-json/css-text-decoration_shorthand.json',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ai Is the underscore ok here?
I followed the convention from caniuse (mdn-css_properties_text-decoration_shorthand)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I used just mdn- prefix. But maybe it is a good idea to copy all. afe96e5

What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've renamed to mdn-text-decoration-shorthand.json I think this fits better with mdn-css-unicode-bidi-isolate-override.json

@ai
Copy link
Copy Markdown
Member

ai commented Sep 12, 2022

(You will also need to rebase PR since I added my data too)

@ai ai merged commit 4847f45 into browserslist:main Sep 12, 2022
@ai
Copy link
Copy Markdown
Member

ai commented Sep 12, 2022

Now let’s wait next caniuse-db release

@romainmenke romainmenke deleted the add-text-decoration-from-mdn--practical-peacock-f2a3435f83 branch September 12, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

text-decoration prefixing inconsistent

2 participants