Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Adam Heckler

    (@adamkheckler)

    The Custom CSS module will indeed validate and sanitize the CSS you enter in the Custom CSS editor. The CSS properties whitelist in Jetpack 3.3 is shown here:

    https://github.com/Automattic/jetpack/blob/3.3/modules/custom-css/csstidy/data.inc.php#L289

    If you do not want your custom CSS to be sanitized, I would suggest that you add it to your theme stylesheet, under wp-content/themes/your-theme/style.css.

    Thread Starter jphogan

    (@jphogan)

    Right. As mentioned, I do see that it validates and sanitizes the CSS, but it’s also removing valid CSS. Thanks. I am adding it to the theme’s stylesheet for now. I thought you would want to be aware that it’s removing valid CSS.

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    I thought you would want to be aware that it’s removing valid CSS.

    We are aware that it does strip some valid CSS, yes. Specifically, it strips properties that aren’t included in the whitelist above, even if they are valid.

    If you’d like, you can open a GitHub issue to have this particular property added:

    https://github.com/Automattic/jetpack/issues/new

    … though you should also note that we tend to reject properties that lack support in all three major browsers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS editor removing shape-outside on update’ is closed to new replies.