Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:31:46+00:00 2026-06-01T08:31:46+00:00

I am trying to find a script that detects if a device places position:

  • 0

I am trying to find a script that detects if a device places position: fixed elements relative to the ViewPort and not to the entire document.

Currently, standard desktop browsers and Mobile Safari (for iOS 5) do so, whereas Android devices place the fixed elements relative to the entire document.

I have found a couple of tests to detect this, but none of the seem to work:

  • http://kangax.github.com/cft/ Gives me a false positive when I pass it from an Android device.
  • https://gist.github.com/1221602 Gives me a false negative when I pass it in an iPhone with iOS 5.

Does anybody know where to find / how to write a test that actually detects that? I don’t want to rely on browser sniffing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:31:48+00:00Added an answer on June 1, 2026 at 8:31 am

    According to the contributors at Modernizr, you cannot do this without detecting the browser in use. The contributors are quite well-established in the field.

    Testing for position: fixed on iOS and Android devices is listed under the Undetectables wiki page in the Modernizr project.

    The MobileHTML5 website lists the support for position:fixed. http://mobilehtml5.org/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly large script and am trying to find out, why $(document).on(
I'm trying to find a replacement for popBox, a script that opens a textarea
So im trying to find a script that can start me off with creating
I'm trying to find a bash script that will recursively look for files with
Im trying to find a php/js script that will let me take an image,
I am trying to find a sliding gallery that automatically slides. I am not
I'm trying to do a bash script that will find & copy similar files
I'm trying a simple F# script that will find pythagoras. Here's the code: open
I'm trying to write a script that will find a particular process based on
I'm trying to find a tried and tested script that sniffs the browser version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.