| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * @author Florian Schmitz, Brett Zamir, Nikolay Matsievsky, Cedric Morin, Christopher Finke, Mark Scherer, Tobias Bäthge |
| 8 | 8 | * @since 1.0.0 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +declare(strict_types=1); | |
| 12 | + | |
| 11 | 13 | // Prohibit direct script loading. |
| 12 | 14 | defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); |
| 13 | 15 | |
| 14 | 16 | /** |
| @@ -72,14 +74,15 @@ | ||
| 72 | 74 | '-webkit-viewport' => 'at', |
| 73 | 75 | '-moz-viewport' => 'at', |
| 74 | 76 | '-ms-viewport' => 'at', |
| 75 | 77 | 'supports' => 'at', |
| 78 | + 'container' => 'at', | |
| 76 | 79 | ); |
| 77 | 80 | |
| 78 | 81 | /** |
| 79 | 82 | * Properties that need a value with unit. |
| 80 | 83 | * |
| 81 | - * @TODO CSS3 properties. | |
| 84 | + * @todo CSS3 properties. | |
| 82 | 85 | * @see compress_numbers(); |
| 83 | 86 | */ |
| 84 | 87 | $data['csstidy']['unit_values'] = array( |
| 85 | 88 | 'background', |
| @@ -135,9 +138,9 @@ | ||
| 135 | 138 | |
| 136 | 139 | /** |
| 137 | 140 | * Properties that allow <color> as value. |
| 138 | 141 | * |
| 139 | - * @TODO CSS3 properties | |
| 142 | + * @todo CSS3 properties | |
| 140 | 143 | * @see compress_numbers(); |
| 141 | 144 | */ |
| 142 | 145 | $data['csstidy']['color_values'] = array( 'background-color', 'border-color', 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color', 'color', 'outline-color', 'column-rule-color' ); |
| 143 | 146 | |
| @@ -143,9 +146,9 @@ | ||
| 143 | 146 | |
| 144 | 147 | /** |
| 145 | 148 | * Default values for the background properties. |
| 146 | 149 | * |
| 147 | - * @TODO Possibly property names will change during CSS3 development. | |
| 150 | + * @todo Possibly property names will change during CSS3 development. | |
| 148 | 151 | * @see dissolve_short_bg() |
| 149 | 152 | * @see merge_bg() |
| 150 | 153 | */ |
| 151 | 154 | $data['csstidy']['background_prop_default'] = array(); |
| @@ -682,8 +685,9 @@ | ||
| 682 | 685 | $data['csstidy']['all_properties']['width'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0'; |
| 683 | 686 | $data['csstidy']['all_properties']['word-break'] = 'CSS3.0'; |
| 684 | 687 | $data['csstidy']['all_properties']['word-spacing'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0'; |
| 685 | 688 | $data['csstidy']['all_properties']['word-wrap'] = 'CSS3.0'; |
| 689 | +$data['csstidy']['all_properties']['writing-mode'] = 'CSS3.0'; | |
| 686 | 690 | $data['csstidy']['all_properties']['z-index'] = 'CSS2.0,CSS2.1,CSS3.0'; |
| 687 | 691 | $data['csstidy']['all_properties']['zoom'] = 'CSS3.0'; |
| 688 | 692 | $data['csstidy']['all_properties']['--custom'] = 'CSS3.0'; // Placeholder for custom properties, used in TablePress_CSSTidy::property_is_valid(). |
| 689 | 693 | |
| @@ -838,6 +842,13 @@ | ||
| 838 | 842 | $data['csstidy']['all_properties']['-webkit-backdrop-filter'] = 'CSS3.0'; |
| 839 | 843 | $data['csstidy']['all_properties']['backdrop-filter'] = 'CSS3.0'; |
| 840 | 844 | $data['csstidy']['all_properties']['-webkit-box-orient'] = 'CSS3.0'; |
| 841 | 845 | $data['csstidy']['all_properties']['-webkit-line-clamp'] = 'CSS3.0'; |
| 846 | +$data['csstidy']['all_properties']['-webkit-box-orient'] = 'CSS3.0'; | |
| 847 | +$data['csstidy']['all_properties']['contain'] = 'CSS3.0'; | |
| 848 | +$data['csstidy']['all_properties']['contain-intrinsic-size'] = 'CSS3.0'; | |
| 849 | +$data['csstidy']['all_properties']['container'] = 'CSS3.0'; | |
| 850 | +$data['csstidy']['all_properties']['container-name'] = 'CSS3.0'; | |
| 851 | +$data['csstidy']['all_properties']['container-type'] = 'CSS3.0'; | |
| 852 | +$data['csstidy']['all_properties']['content-visibility'] = 'CSS3.0'; | |
| 842 | 853 | |
| 843 | 854 | return $data; |