Skip to content

html.elements.col - Chrome appears to support span attribute for <col> #28753

@calvincramer

Description

@calvincramer

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/col

What specific section or headline is this issue about?

Browser compatibility

What information was incorrect, unhelpful, or incomplete?

It appears Chrome (v 142.0.xxxx.xxx) supports the span attribute for <col>, while it is listed as unsupported.

Using a test page (see below HTML and screenshot) I can see background color applied to <col> with a span of 3.


HTML

<!DOCTYPE html>
<html lang="us-US">

<head>
    <meta charset='UTF-8'>
    <style>
        table {
            border: 2px solid red;
        }

        th {
            background-color: rgb(190, 190, 190);
        }

        th,
        td {
            border: 1px solid black;
            width: 50px;
            text-align: center;

        }
    </style>
</head>

<body>
    <table>
        <colgroup style="background-color: lightgoldenrodyellow"></colgroup>
        <colgroup style="background-color: lightcyan;" span="2"></colgroup>
        <colgroup>
            <col style="background-color: lightcoral" />
            <col span="3" style="background-color: lightgreen;" />
            <col style="background-color: lightsalmon;" />
            <col style="background-color: lightseagreen;" />
        </colgroup>

        <tr>
            <th>1</th>
            <th>2</th>
            <th>3</th>
            <th>4</th>
            <th>5</th>
            <th>6</th>
            <th>7</th>
            <th>8</th>
            <th>9</th>
        </tr>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            <td>5</td>
            <td>6</td>
            <td>7</td>
            <td>8</td>
            <td>9</td>
        </tr>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            <td>5</td>
            <td>6</td>
            <td>7</td>
            <td>8</td>
            <td>9</td>
        </tr>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            <td>5</td>
            <td>6</td>
            <td>7</td>
            <td>8</td>
            <td>9</td>
        </tr>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            <td>5</td>
            <td>6</td>
            <td>7</td>
            <td>8</td>
            <td>9</td>
        </tr>
    </table>
</body>

</html>


Chrome screenshot

Image

What did you expect to see?

Accurate representation of support of span attribute for Chrome

Do you have any supporting links, references, or citations?

No.

Do you have anything more you want to share?

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/col#browser_compatibility

MDN metadata

Page report details

Metadata

Metadata

Assignees

Labels

data:htmlCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions