Trying to find max length of tooltip in different browsers - cross-browser

I want to show some amount of data on tooltip. But different browsers having different max length for for tootip.
Max length of tooltip for IE is 512 and Fount max length for tooltip for chrome browser 618 Charecters. Still didn't get any valid proof for chrome.
Can anybody please help to find the max length of tooltips in different browser?

Related

What determines the max size of the canvas html element in IE11?

I'm trying to use a canvas element, but the height can't exceed 16384 pixels. If i try with 16385 pixels, I get a IndexSizeError in IE11. This works fine in Chrome. The canvas is used in a PDF generation, and I don't really have time to move the generation to the server.
I've googled a bit, and it seems like the size might be different based on platform and browser.
Is it the browsers assigned memory and memory settings that decide this?
EDIT: I found some information here:
Note The maximum size of the rendered area on a canvas is from 0,0 to 8192
x 8192 pixels, regardless of the size of the canvas. For example, a canvas
is created with a width and height of 8292 pixels. A rectangular fill is
then applied as "ctx.fillRect (0,0, canvas.width, canvas.height)".Only the
area within the coordinates (0, 0, 8192, 8192) can be rendered, leaving a
100 pixel border on the right and bottom of the canvas.
Seem like I can have twice the size. Maybe this is just for IE9.
The maximum area, width, and height of an HTML canvas element is dependent on the browser, operating system, and hardware available. Unfortunately, browsers do not provide a way to determine what their limitations are, nor do they provide any kind of feedback after an unusable canvas has been created.
It is possible to detect the canvas limitations of browser, but unfortunately not using native APIs. See my answer in the Maximum size of a <canvas> element thread for details.
The Canvas Specification states "the element can be sized arbitrarily by a style sheet", so based on this and the information you shared from the link, IE must likely be implementing their own maximum size. This seems useful, but does not provide any sources to back up the numbers shown (the favourite answer).

Is there a maximum content size for option element?

I have a web app with a form in it. The form in turn has a select element with options containing a bunch of users' info, their names being set as the label/content of the option elements.
Now apparently one of the users' parents think it's fun to give their child a name with 3000 characters of gibberish in it.
I wouldn't want to make his life any harder than it is, but unfortunately I'll have to remove his account because the long name seems to introduce some interesting limitations on browsers that I didn't know about.
I started highly scientific testing using this fiddle with a few browsers in two computers and found out that
Chrome v50 (64bit) displayed a black box instead of the dropdown when the label length hit 1510
FF v46 refused to open the dropdown at all when the content length was 2716
IE v11 doesn't even break a sweat with tens of thousands of characters
Chrome v49 was the least fun of all. It rendered the whole window and all the other open tabs fully black so I had to close them all and start again. Didn't bother to find the exact limit for that
It seems though that the actual limits are much more related to the content width and not the length, as changing the character from "a" to "i" using proportional font affected the results.
The question: is there a reason Chrome and FF flip out with content of this size? Is there a specific limit on how long/wide the option's label can be (other than the subjective opinions about aesthetic/usable form inputs)?

HTML max number of <img> elements

Anybody know what's the upper limit for how many img elements can be loaded in a given web page? I'm doing some image processing analysis that I'm presenting in the browser but the page keeps crashing until I trim it down to more limited figures. This may be a function of the image size as well, which in my case is a bunch of 500x500 images. I'll wind up doing a pagination solution but it would be nice to max out the page lengths at the same time. This is a local page stored on my desktop referencing a bunch of local bmp files.
To throw some upper limit figures, both IE 10 and Chrome crashed with a page with 12,000 images.
A limit to the number of img tags is not part of the HTML standard. Browser implementations like Chrome and IE may have some arbitrary limits, but it would not be part of the HTML standard. 12,000 images is quite a few to store in RAM, and that could be your issue.
If each image were 1 MB, and your opened 12,000, that would be about 12 GB of RAM right there. I'm not sure what you're trying to do exactly, but HTML is not normally used for browser rendering of that size, that's supercomputing territory.

How long can a webpage be?

Bit of a bizarre question, but does anyone know the actual limit to the length of a webpage, and why it is the limit?
As an experiment, I'm using HTML and CSS to make a site that represents a journey to a scale of 1:1. I have a ul list of markers along the way that I have separated with large margins in the css. However, the longest margin I can get to work so far is
top-margin:100000cm;
Since there are 43 list items, that equates to 4,300,000cm, or 43Km. Does anyone know why it's hitting a limit around this mark, or how I might go about getting it longer? I'm using Safari for testing currently.
There is no limit, as per any HTML/XHTML specification, so this is just the practical limit of the browser that you're hitting. How long a webpage can be is the same as asking how long a book can be.
It appears to simply be a maximum value that margin-top property can be set to. I've tried values up to 400,000cm with 100 elements and the page loads them all fine. I even tried incrementing that up to 1000 elements to see if the number was affected by load time, but nothing. It does appear to be an exact number somewhere between 400,000 and 500,000 that it cuts off at and shortens down past that value.
Code I used (which worked, showed in full):
<?php
print "<ul>";
for ($i = 1; $i <= 1000; $i++) print "<li style=\"margin-top: 400000cm;\">{$i}</li>";
print "</ul>";
die();
?>
Just a guess but 2147483647; max int value (probably pixels)
Interestingly though IE9 seems to go up to 214748.3px and when I go higher it goes into the negative.
18.939 kilometers, to be exact:
http://worlds-highest-website.com/
This will depend on the browser. There shouldn't be any clear limit on the length of the HTML file. The pure "length", as in pixels, shouldn't have any clearly defined limit either. Only, the more elements there are in the page, the more the browser has to do, and the sooner it may run out of memory. Memory is about the only limit there is.
There is no limitation. Even in terms of size of integer, you can create divs in other divs and have all of them biggest value of margin value so your page will not be limited.
It's a browser / memory / os architecture issue.
Measuring it in anything but pixels won't be very useful unless you are referring to the size of a printed webpage on a specific paper size, orientation and scale. Screens have different sizes and DPI's.
Besides a possible maximum int value, you need to consider the load time for the page. If your web page takes longer than a few seconds to show any interesting content, than you will lose people browsing your content. That's a more meaningful metric than a 1:1 scale metric.

Html printed page resolution (or size in pixels)

Does anybody know what is the resolution that will be used to render a printed HTML page. I'd like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know this value will change if I set the zoom value (IE and FF), but I am interested in the default value (when zoom is at 100%).
Also, is there any way of controlling this resolution from CSS?
Thanks
either 72ppi or 96ppi, depending on combination of OS/browser. Margins are an issue too.
If this is for a site with login users, get them to set their resolution, or try to guess from the browser. Remember that anyone can change this setting on their computer.
I think you can control the size, but not the resolution, of the printed page. Relevant units of size, for print css, would include
Centimetres (cm)
Millimetres (mm)
Points (pt)
Pica (pc)
Inches (in)
M (em)
X (ex)