I do several manipulations in td tags with jQuery - I set their width in the same way as the width of td in another table (this is actually a plugin with a fixed table header, so I have tables - one for the header and one for the main content The corresponding th and td must have the same width).
Problem
All calculators work fine if I look at the "Calculated style" in Chrome - the width is set correctly.
However, the actual width is different from the "calculated width"!
See this image of the computed style of the td element:

Now you might think that the actual width of the element will be 1 + 1 + 96 + 1 + 1 = 100 , but it's 99! 
I found this question - The calculated column width is different from the width of the declared css width. How does the browser determine the width? and following the recommendations I used table-layout: fixed; . I used border-collapse: collapse; to remove the space between the columns, so I do not expect this to be a problem.
The code
Here is the part of my code that sets td width s:
$('thead th, tbody tr:first td').each(function(i, el){ i %= col_count;
I should notice that thead th and tbody td are taken from different tables (as I mentioned earlier)
Another attempt
Another thing I've tried is adding one pixel to each column - $(this).width(new_width + 1); . And on the demo page it worked. I copied the new code to this page and to almost all the tables in which it works! There was only one table where there was a problem.
He proved that the container (where the table was located) was not wide enough, so the scroll bar βmadeβ the columns shorter. Of course, I expanded the width of the container. The problem has disappeared.
Real question
And when I asked (wrote) this long question, I solved it! So now it is changing a bit: why ?
Why, when I added one extra pixel, the problem disappeared? Why is computed width different from real width ?
Of course, I will be glad if you provide me with a different, more professional solution :)
JSFIDDLE (with already set widths copied from the chrome console). Resize the result window to see the whole table correctly.