1--TEST-- 2CSS Selectors - Pseudo elements 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7 8require __DIR__ . '/test_utils.inc'; 9 10$dom = DOM\XMLDocument::createFromString(<<<XML 11<container> 12 <a/> 13</container> 14XML); 15 16// Pseudo-elements can't work in a static DOM 17test_failure($dom, 'a::after'); 18test_failure($dom, 'a::before'); 19test_failure($dom, 'a::backdrop'); 20test_failure($dom, 'a::first-letter'); 21test_failure($dom, 'a::first-line'); 22test_failure($dom, 'a::grammar-error'); 23test_failure($dom, 'a::inactive-selection'); 24test_failure($dom, 'a::marker'); 25test_failure($dom, 'a::placeholder'); 26test_failure($dom, 'a::selection'); 27test_failure($dom, 'a::spelling-error'); 28test_failure($dom, 'a::target-text'); 29 30?> 31--EXPECT-- 32--- Selector: a::after --- 33Code 12 Invalid selector (Selectors. Not supported: after) 34--- Selector: a::before --- 35Code 12 Invalid selector (Selectors. Not supported: before) 36--- Selector: a::backdrop --- 37Code 12 Invalid selector (Selectors. Not supported: backdrop) 38--- Selector: a::first-letter --- 39Code 12 Invalid selector (Selectors. Not supported: first-letter) 40--- Selector: a::first-line --- 41Code 12 Invalid selector (Selectors. Not supported: first-line) 42--- Selector: a::grammar-error --- 43Code 12 Invalid selector (Selectors. Not supported: grammar-error) 44--- Selector: a::inactive-selection --- 45Code 12 Invalid selector (Selectors. Not supported: inactive-selection) 46--- Selector: a::marker --- 47Code 12 Invalid selector (Selectors. Not supported: marker) 48--- Selector: a::placeholder --- 49Code 12 Invalid selector (Selectors. Not supported: placeholder) 50--- Selector: a::selection --- 51Code 12 Invalid selector (Selectors. Not supported: selection) 52--- Selector: a::spelling-error --- 53Code 12 Invalid selector (Selectors. Not supported: spelling-error) 54--- Selector: a::target-text --- 55Code 12 Invalid selector (Selectors. Not supported: target-text) 56