The Calculation Process

In order to choose a model from the ruleset, Thinfinity® Remote Workspace uses the client device type, dimensions, resolution, orientation and browser:

  • If match-mobile exists, it tests if device is a mobile.

  • If match-user-agent exists, it tests the browser’s User Agent.

  • If match-device-pixel-ratio exists, it tests the device’s pixel ratio.

  • If match-orientation exists, it tests the device’s orientation.

  • If match-screen-width-range or match-screen-height-range exist, it tests to see if the screen size is in range.

  • If match-screen-width or match-screen-height exist, it tests the exact screen size.

Once the model is selected, the parameters are applied in this way:

  • If the width and height properties exist, then it applies them.

  • If the browser width is less than the min-width, it applies min-width.

  • If the browser height is less than the min-height, it applies min-height.

  • If the browser width is greater than the max-width, it applies max-width.

  • If the browser height is greater than the max-height, it applies max-height.

  • If a specific device-pixel-ratio was specified, it applies it.

  • If a max-device-ratio was specified, it takes the minimum of the real device pixel ratio and max-device-ratio property and applies it.

Last updated