# elementor/4.3.0-beta3/modules/atomic-widgets/styles/grid-track-renderer.php

Elementor Website Builder – more than just a page builder, version 4.3.0-beta3. 24 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/atomic-widgets/styles/grid-track-renderer.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/raw/modules/atomic-widgets/styles/grid-track-renderer.php
- Modified: 2026-07-20T13:54:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/atomic-widgets/styles/grid-track-renderer.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\AtomicWidgets\Styles;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Grid_Track_Renderer {
	public const GRID_TRACK_PROPERTIES = [ 'grid-template-columns', 'grid-template-rows' ];

	public static function is_grid_track_property( ?string $css_property ): bool {
		return in_array( $css_property, self::GRID_TRACK_PROPERTIES, true );
	}

	public static function format_repeat( int $count ): ?string {
		if ( $count < 1 ) {
			return null;
		}

		return "repeat({$count}, 1fr)";
	}
}

```
