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
Fixeswhatwg#1198. Browsers all behave differently here, the spec matches
none. The basic behavior selected was that of Chrome, except for very
high values where we don't spec its overflow behavior. The colspan
limit of 1000 matches Firefox/Edge (Firefox is not willing to raise its
limit), instead of higher limits of 8190 in Chrome or more in WebKit.
The rowspan limit of 65534 matches Firefox and Chrome, as opposed to
65535 in Edge or 8190 in WebKit.
For setting, I followed Firefox because it's the simplest. Chrome
converts negative numbers to 0, and Edge throws in some cases and clamps
in others.
Tests: whatwg#1993
<h4>Attributes common to <code>td</code> and <code>th</code> elements</h4>
40218
40228
40219
40229
<p>The <code>td</code> and <code>th</code> elements may have a <dfn><code data-x="attr-tdth-colspan">colspan</code></dfn> content attribute specified, whose value must
40220
-
be a <span>valid non-negative integer</span> greater than zero.</p>
40230
+
be a <span>valid non-negative integer</span> greater than zero and less than or equal to 1000.</p>
40221
40231
40222
40232
<p>The <code>td</code> and <code>th</code> elements may also have a <dfn><code data-x="attr-tdth-rowspan">rowspan</code></dfn> content attribute specified, whose value must
40223
-
be a <span>valid non-negative integer</span>. For this attribute, the value zero means that the
40233
+
be a <span>valid non-negative integer</span> less than or equal to 65534.
40234
+
For this attribute, the value zero means that the
40224
40235
cell is to span all the remaining rows in the row group.</p> <!-- only in no-quirks and
0 commit comments