Skip to content

Commit

Permalink
Custom CSS: add CSS Grid Layout support. (#8445)
Browse files Browse the repository at this point in the history
Add all current properties for the CSS Grid Layout Module Level 1
specification to Custom CSS whitelist.
  • Loading branch information
danielwrobert authored and oskosk committed Jan 5, 2018
1 parent 48b9ffb commit d709f31
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion modules/custom-css/csstidy/data.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,26 @@
$GLOBALS['csstidy']['all_properties']['font-style'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
$GLOBALS['csstidy']['all_properties']['font-variant'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
$GLOBALS['csstidy']['all_properties']['font-weight'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-area'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-auto-columns'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-auto-flow'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-auto-rows'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-column'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-columns'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-column-end'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-column-gap'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-column-start'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-gap'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-row'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-rows'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-row-end'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-row-gap'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-row-start'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-template'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-template-areas'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-template-columns'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['grid-template-rows'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['hanging-punctuation'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['height'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
$GLOBALS['csstidy']['all_properties']['hyphenate-after'] = 'CSS3.0';
Expand All @@ -440,6 +458,8 @@
$GLOBALS['csstidy']['all_properties']['image-resolution'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['inline-box-align'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['justify-content'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['justify-items'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['justify-self'] = 'CSS3.0';
$GLOBALS['csstidy']['all_properties']['left'] = 'CSS2.0,CSS2.1,CSS3.0';
$GLOBALS['csstidy']['all_properties']['letter-spacing'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
$GLOBALS['csstidy']['all_properties']['line-break'] = 'CSS3.0';
Expand Down Expand Up @@ -670,4 +690,4 @@
$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span>'."\n"; // after comment
$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n";

require dirname( __FILE__ ) . '/data-wp.inc.php';
require dirname( __FILE__ ) . '/data-wp.inc.php';

0 comments on commit d709f31

Please sign in to comment.