Test screen size determination for validation
Useful for testing and debugging responsive breakpoints. Screen size is determined by width (breakpoints), but height is included in the result for testing portrait/landscape orientations.
Viewport width to test
Viewport height to test
Test result with screen size and device type flags
const result = testScreenSize(768, 1024);console.log(result.screenSize); // 'tablet'console.log(result.isTablet); // trueconsole.log(result.isMobile); // false Copy
const result = testScreenSize(768, 1024);console.log(result.screenSize); // 'tablet'console.log(result.isTablet); // trueconsole.log(result.isMobile); // false
화면크기테스트
Test screen size determination for validation
Useful for testing and debugging responsive breakpoints. Screen size is determined by width (breakpoints), but height is included in the result for testing portrait/landscape orientations.