You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
Compare outputs of phantomjs test-phantom.js https://duckduckgo.com 1 and phantomjs test-phantom.js https://duckduckgo.com 2
The outputs of both script runs should be the same.
Which operating system are you using? Mac OS X 10.11
Did you use binary PhantomJS or did you compile it from source? Binary, via homebrew
Please provide any additional information below.
It seems that PhantomJS is not properly handling em sizes in media queries when the zoomFactor is set to 2. My testing of actual css led me to write a test script that uses window.matchMedia to show this problem. Media queries using px sizes seem unaffected by zoomFactor.
The test script loads an arbitrary web page at a given zoomLevel, measures the size of an em by creating a div element, then tests an em-based media query and a px-based media query that are roughly equivalent using window.matchMedia.
The media query tested is min-width: windowWidth - 100 pixels. Adjusting the 100 pixels sometimes yields different results, but I haven't been able to determine a pattern there.
The text was updated successfully, but these errors were encountered:
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
phantomjs --version
. 2.1.1phantomjs test-phantom.js https://duckduckgo.com 1
andphantomjs test-phantom.js https://duckduckgo.com 2
It seems that PhantomJS is not properly handling em sizes in media queries when the zoomFactor is set to 2. My testing of actual css led me to write a test script that uses
window.matchMedia
to show this problem. Media queries using px sizes seem unaffected by zoomFactor.The test script loads an arbitrary web page at a given zoomLevel, measures the size of an
em
by creating a div element, then tests an em-based media query and a px-based media query that are roughly equivalent usingwindow.matchMedia
.The media query tested is
min-width: windowWidth - 100 pixels
. Adjusting the 100 pixels sometimes yields different results, but I haven't been able to determine a pattern there.The text was updated successfully, but these errors were encountered: