1--TEST--
2CSS Selectors - Pseudo classes: nth-(last-)col
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8require __DIR__ . '/test_utils.inc';
9
10$dom = DOM\HTMLDocument::createFromString(<<<HTML
11<!DOCTYPE html>
12<html>
13    <body>
14        <table>
15            <tr>
16                <th>Col 1</th>
17                <th>Col 2</th>
18            </tr>
19            <tr>
20                <td>1</td>
21                <td>2</td>
22            </tr>
23        </table>
24    </body>
25</html>
26HTML);
27
28test_failure($dom, ':nth-col(1)', true);
29test_failure($dom, ':nth-last-col(1)', true);
30
31?>
32--EXPECT--
33--- Selector: :nth-col(1) ---
34Code 12 Invalid selector (Selectors. Not supported: nth-col)
35--- Selector: :nth-last-col(1) ---
36Code 12 Invalid selector (Selectors. Not supported: nth-last-col)
37