{"id":265965,"date":"2015-09-18T20:48:02","date_gmt":"2015-09-18T16:48:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=265965"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=265965","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 CSS4 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0441 cssnext"},"content":{"rendered":"<p>       <img decoding=\"async\" align=\"right\" src=\"https:\/\/habrastorage.org\/files\/e26\/73a\/861\/e2673a8612de4ae597a136d9e19dc3f2.png\" alt=\"cssnext\"\/>\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043b\u0435\u0442, \u0441 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f 2011 \u0433. W3C \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 CSS4. \u041c\u043e\u0434\u0443\u043b\u0438 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u0430\u0441\u043a\u0430\u0434\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0441\u0442\u0438\u043b\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 CSS3 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0438\u0445 \u043d\u043e\u0432\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 CSS4 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f, \u043e <a href=\"http:\/\/cssnext.io\/\">cssnext<\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, cssnext \u2014 \u044d\u0442\u043e CSS \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 CSS \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f. \u041e\u043d \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 CSS \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0442\u0430\u043a, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3><b>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/b><\/h3>\n<p>  <\/p>\n<h5><b>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0435\u043d\u0434\u043e\u0440\u043d\u044b\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432<\/b><\/h5>\n<p>  \u0412\u0435\u043d\u0434\u043e\u0440\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f (\u0438\u043b\u0438 \u0436\u0435, \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c\u0438, \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f) \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PostCSS \u043f\u043b\u0430\u0433\u0438\u043d\u0430 <a href=\"https:\/\/github.com\/postcss\/autoprefixer\">Autoprefixer<\/a>.<\/p>\n<h5><b>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 CSS<\/b><\/h5>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c cssnext \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0435 :root \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u043d\u0430\u0448\u0438\u0445 CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445.<\/p>\n<pre><code class=\"css\">:root {   --fontSize: 1rem;   --mainColor: #ddd; }  a {   color: var(--mainColor);   font-size: var(--fontSize); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/www.w3.org\/TR\/css-variables\/\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-custom-properties\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e calc(). \u0414\u0430\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u043d\u043e \u0438 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438.<\/p>\n<pre><code class=\"css\">:root {   --fontSize: 1rem; }  h2 {   font-size: calc(var(--fontSize)*2); } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/MoOx\/reduce-css-calc\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043c\u0435\u0434\u0438\u0430-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/b><\/h5>\n<pre><code class=\"css\">@custom-media --small-viewport (max-width: 30em);  @media (--small-viewport) {   \/* \u0421\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 *\/ } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/mediaqueries\/#custom-mq\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-custom-media\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0423\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043c\u0435\u0434\u0438\u0430-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f &gt;= \u0438 &lt;= \u0432\u043c\u0435\u0441\u0442\u043e min-width \u0438 max-width \u0432 \u043c\u0435\u0434\u0438\u0430-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445.<\/p>\n<pre><code class=\"css\">@media (width &gt;= 500px) and (width &lt;= 1200px) {   \/* \u0412\u0430\u0448\u0438 \u0441\u0442\u0438\u043b\u0438 *\/ } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/mediaqueries\/#mq-ranges\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-media-minmax\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b.<\/p>\n<pre><code class=\"css\">@custom-selector :--heading h1, h2, h3, h4, h5, h6;  :--heading {   margin-top: 0; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-extensions\/#custom-selectors\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-custom-selector\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0446\u0432\u0435\u0442\u0430<\/b><\/h5>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u0446\u0432\u0435\u0442\u0430. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f <a href=\"https:\/\/github.com\/postcss\/postcss-color-function#list-of-color-adjuster\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<pre><code class=\"css\">a {   color: color(red alpha(-10%)); }  a:hover {   color: color(red blackness(80%)); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-color\/#modifying-colors\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-color-function\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0446\u0432\u0435\u0442\u043e\u0432 hwb()<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c W3C CSS hwb() \u0446\u0432\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u044b \u0432 rgb() \u0438\u043b\u0438 rgba()<\/p>\n<pre><code class=\"css\">body {   color: hwb(90, 0%, 0%, 0.5); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-color\/#the-hwb-notation\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-color-hwb\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0411\u043e\u043b\u0435\u0435 \u0447\u0435\u043c 50 \u043e\u0442\u0442\u0435\u043d\u043a\u043e\u0432 \u0441\u0435\u0440\u043e\u0433\u043e<\/b><\/h5>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e gray(). \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0442 0 \u0434\u043e 255 \u0438\u043b\u0438 \u043e\u0442 0 \u0434\u043e 100 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"css\">.foo {   color: gray(85); }  .bar {   color: gray(10%, 50%); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-color\/#grays\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-color-gray\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0426\u0432\u0435\u0442\u0430 #rrggbbaa<\/b><\/h5>\n<p>  \u0414\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0451\u0442\u044b\u0440\u0451\u0445 \u0438\u043b\u0438 \u0432\u043e\u0441\u044c\u043c\u0438\u0437\u043d\u0430\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430.<\/p>\n<pre><code class=\"css\">.boo {   color: #9d9c; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-color\/#hex-notation\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-color-hex-alpha\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0426\u0432\u0435\u0442 rebeccapurple<\/b><\/h5>\n<p>  \u041d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442.<\/p>\n<pre><code class=\"css\">.foo {   background: rebeccapurple; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-color\/#valdef-color-rebeccapurple\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-color-rebeccapurple\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e font-variant<\/b><\/h5>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e font-variant \u0432 CSS \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c\u0438 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438.<\/p>\n<pre><code class=\"css\">h2 {   font-variant-caps: small-caps; }  table {   font-variant-numeric: lining-nums; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/css-fonts\/#propdef-font-variant\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-font-variant\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0424\u0438\u043b\u044c\u0442\u0440\u044b<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 10 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 CSS \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432:  <\/p>\n<ul>\n<li>grayscale<\/li>\n<li>sepia<\/li>\n<li>saturate<\/li>\n<li>hue-rotate<\/li>\n<li>invert<\/li>\n<li>opacity<\/li>\n<li>brightness<\/li>\n<li>contrast<\/li>\n<li>blur<\/li>\n<li>drop-shadow<\/li>\n<\/ul>\n<pre><code class=\"css\">.blur {     filter: blur(4px); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/www.w3.org\/TR\/filter-effects\/\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/iamvdo\/pleeease-filters\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0415\u0434\u0438\u043d\u0438\u0446\u044b rem<\/b><\/h5>\n<p>  \u0415\u0434\u0438\u043d\u0438\u0446\u044b rem \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 px.<\/p>\n<pre><code class=\"css\">h1 {     font-size: 1.5rem; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/www.w3.org\/TR\/css3-values\/#rem-unit\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/robwierzbowski\/node-pixrem\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441 :any-link<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 :any-link \u0434\u043b\u044f \u0441\u0441\u044b\u043b\u043e\u043a.<\/p>\n<pre><code class=\"css\">\/* \u0418\u0437: *\/  nav :any-link &gt; span {     background-color: yellow; }  \/* \u0412: *\/  nav :link &gt; span, nav :visited &gt; span {     background-color: yellow; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/selectors\/#any-link-pseudo\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/jonathantneal\/postcss-pseudo-class-any-link\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441 :matches<\/b><\/h5>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 :matches().<\/p>\n<pre><code class=\"css\">\/* \u0418\u0437: *\/  p:matches(:first-child, .special) {   color: red; }  \/* \u0412: *\/  p:first-child, p.special {   color: red; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/selectors-4\/#matches\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-selector-matches\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u041f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441 :not<\/b><\/h5>\n<p>  \u0427\u0442\u043e-\u0442\u043e \u0441\u0445\u043e\u0436\u0435\u0435 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441\u043e\u043c, \u043d\u043e \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c.<\/p>\n<pre><code class=\"css\">p:not(:first-child, .special) {   color: red; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/dev.w3.org\/csswg\/selectors-4\/#negation\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-selector-NOT\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<h5><b>\u0410\u043b\u044c\u0444\u0430-\u0446\u0432\u0435\u0442\u0430<\/b><\/h5>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0435 \u0444\u043e\u043b\u0431\u044d\u043a\u0438 \u0434\u043b\u044f rgba \u0446\u0432\u0435\u0442\u043e\u0432 (\u0434\u043b\u044f \u0441\u0442\u0430\u0440\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432).<\/p>\n<pre><code class=\"css\">body {   background: rgba(153, 221, 153, 0.8); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/www.w3.org\/TR\/css3-color\/\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> | <a href=\"https:\/\/github.com\/postcss\/postcss-color-rgba-fallback\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 cssnano, \u043a\u0440\u043e\u043c\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0440\u044f\u0434 \u0431\u043e\u043d\u0443\u0441\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0438\u043c\u043f\u043e\u0440\u0442(@import) \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 CSS \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0432\u0430\u0448 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 CSS \u0444\u0430\u0439\u043b, \u0438\u0434\u0443\u0449\u0438\u0439 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d \u0438 \u0441\u0436\u0430\u0442\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e CSS \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSSNano.<\/p>\n<h3><b>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/b><\/h3>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c cssnext \u043a\u0430\u043a \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0431\u043e\u0440\u043a\u0438 <a href=\"https:\/\/github.com\/cssnext\/grunt-cssnext\">Grunt<\/a>, <a href=\"https:\/\/github.com\/cssnext\/gulp-cssnext\">Gulp<\/a>, <a href=\"https:\/\/github.com\/cssnext\/broccoli-cssnext\">Broccoli<\/a>, <a href=\"https:\/\/github.com\/cssnext\/cssnext-loader\">Webpack<\/a>, <a href=\"https:\/\/github.com\/cssnext\/fly-cssnext\">Fly<\/a> \u0438 \u0442.\u0434. \u0438\u043b\u0438 \u0436\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0434\u043b\u044f PostCSS.<\/p>\n<p>  \u041c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e \u0434\u0443\u0448\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0433\u043e \u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <a href=\"http:\/\/habrahabr.ru\/post\/265449\/\">\u0432 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435<\/a> \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0430\u043c \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 cssnext.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/267181\/\"> http:\/\/habrahabr.ru\/post\/267181\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" align=\"right\" src=\"https:\/\/habrastorage.org\/files\/e26\/73a\/861\/e2673a8612de4ae597a136d9e19dc3f2.png\" alt=\"cssnext\"\/>\u0412\u043e\u0442 \u0443\u0436\u0435 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043b\u0435\u0442, \u0441 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f 2011 \u0433. W3C \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 CSS4. \u041c\u043e\u0434\u0443\u043b\u0438 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u0430\u0441\u043a\u0430\u0434\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0441\u0442\u0438\u043b\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 CSS3 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0438\u0445 \u043d\u043e\u0432\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 CSS4 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f, \u043e <a href=\"http:\/\/cssnext.io\/\">cssnext<\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, cssnext \u2014 \u044d\u0442\u043e CSS \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 CSS \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f. \u041e\u043d \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 CSS \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0442\u0430\u043a, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-265965","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265965"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265965\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}