|
Last change
on this file since 2058e5c was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Working / before login
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | # Autoprefixer [![Cult Of Martians][cult-img]][cult]
|
|---|
| 2 |
|
|---|
| 3 | <img align="right" width="94" height="71"
|
|---|
| 4 | src="https://postcss.github.io/autoprefixer/logo.svg"
|
|---|
| 5 | title="Autoprefixer logo by Anton Lovchikov">
|
|---|
| 6 |
|
|---|
| 7 | [PostCSS] plugin to parse CSS and add vendor prefixes to CSS rules using values
|
|---|
| 8 | from [Can I Use]. It is recommended by Google and used in Twitter and Alibaba.
|
|---|
| 9 |
|
|---|
| 10 | Write your CSS rules without vendor prefixes (in fact, forget about them
|
|---|
| 11 | entirely):
|
|---|
| 12 |
|
|---|
| 13 | ```css
|
|---|
| 14 | ::placeholder {
|
|---|
| 15 | color: gray;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | .image {
|
|---|
| 19 | width: stretch;
|
|---|
| 20 | }
|
|---|
| 21 | ```
|
|---|
| 22 |
|
|---|
| 23 | Autoprefixer will use the data based on current browser popularity and property
|
|---|
| 24 | support to apply prefixes for you. You can try the [interactive demo]
|
|---|
| 25 | of Autoprefixer.
|
|---|
| 26 |
|
|---|
| 27 | ```css
|
|---|
| 28 | ::-moz-placeholder {
|
|---|
| 29 | color: gray;
|
|---|
| 30 | }
|
|---|
| 31 | ::placeholder {
|
|---|
| 32 | color: gray;
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | .image {
|
|---|
| 36 | width: -webkit-fill-available;
|
|---|
| 37 | width: -moz-available;
|
|---|
| 38 | width: stretch;
|
|---|
| 39 | }
|
|---|
| 40 | ```
|
|---|
| 41 |
|
|---|
| 42 | Twitter account for news and releases: [@autoprefixer].
|
|---|
| 43 |
|
|---|
| 44 | <a href="https://evilmartians.com/?utm_source=autoprefixer">
|
|---|
| 45 | <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
|
|---|
| 46 | </a>
|
|---|
| 47 |
|
|---|
| 48 | [interactive demo]: https://autoprefixer.github.io/
|
|---|
| 49 | [@autoprefixer]: https://twitter.com/autoprefixer
|
|---|
| 50 | [Can I Use]: https://caniuse.com/
|
|---|
| 51 | [cult-img]: https://cultofmartians.com/assets/badges/badge.svg
|
|---|
| 52 | [PostCSS]: https://github.com/postcss/postcss
|
|---|
| 53 | [cult]: https://cultofmartians.com/tasks/autoprefixer-grid.html
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | ## Docs
|
|---|
| 57 | Read full docs **[here](https://github.com/postcss/autoprefixer#readme)**.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.