Skip to main content

Responsive layouts

DrevOps\BehatSteps\Steps\Web\ResponsiveTrait - Source, Steps

Test responsive layouts with viewport control.

public function responsiveGetAllBreakpoints(): array

Get all available breakpoints

public function responsiveGetBreakpoint(string $breakpoint): string

Get breakpoint dimensions by name

public function responsiveGetCurrentDimensions(): array

Get current viewport dimensions

public function responsiveResize(int $width, int $height): void

Resize the browser window

public function responsiveResizeToBreakpoint(string $breakpoint): void

Resize viewport to a named breakpoint

public function responsiveSetBreakpoint(string $name, string $dimensions): void

Set a custom breakpoint

public function responsiveSetBreakpoints(array $breakpoints): void

Set custom breakpoints