Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Test a webpage for Retina display

By editor , 19 June, 2017
Question

How to test a webpage meant for Retina display ?

To test retina display, just adjust the screen pixel ratio.

On Firefox

1. Go to the  Firefox advance configuration. (Type about:config on address bar)
2. Find layout.css.devPixelsPerPx
3. Set ratio to 1.5, 2.0 .... (1 is normal, -1.0 is default value)
Firefox

Default : layout.css.devPixelsPerPx = -1.0


On Chrome

1. F12 to open developer tools
2. Enable mobile emulation (Ctrl + Shift + M or Click on Mobile/Tablet icon)
3. At the top right of the page, click on menu icon (Three small points â‹® ) Then "Add device pixel ration".
4. Now you can see a new dropdown menu "DPR:....", Set Device type to Responsive to change manually

Tags

  • Testing
  • CSS
  • Theming
CSS Styling tips for Print
Add CSS stylesheets to a module (CKEditor)
Display a web page as print. Media Print Emulate For development and test

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer