1

I would like to check supportability for the ellipsis overflow , not by querying the browser type or version. Is that possible?

I know that firefox versions < 7 are not supporting this.

thanks, Tal

2 Answers 2

3

Didn't try such approach but this may work:

function checkEllipsis() { var d = document.createElement('div'); if(typeof d.style.textOverflow == 'undefined') return false; d.style.textOverflow = 'ellipsis'; return d.style.textOverflow == 'ellipsis'; } 
Sign up to request clarification or add additional context in comments.

1 Comment

Interesting...i'll try that one. question is whether unsupported browsers may take the textOverflow but not use it.
1

CanIUse is a very helpful site for checking browser support - http://caniuse.com/#search=ellipsis.

Don't know how you can test if a browser supports something without testing which browser it is?! This thread covers a similar topic and may be of use.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.