:has() CSS relational pseudo-class External Link

Select elements containing specific content. For example, a:has(img) selects all <a> elements that contain an <img> child.

IE

Edge

Firefox

Chrome

Safari

Safari iOS

Opera Mini

Chrome Android

Android Browser

Samsung Internet

6 0.00%
125 0.03%
127 0.02%
125 0.26%
17.3 0.04%
17.3 0.14%
4 0.00%
21 0.04%
7 0.00%
126 0.06%
128 0.04%
126 0.42%
17.4 0.11%
17.4 0.31%
4.1 0.00%
22 0.04%
8 0.04%
127 0.19%
129 0.3%
127 1.16%
17.5 0.31%
17.5 1.49%
4.3 0.00%
23 0.05%
9 0.04%
128 3.17%
130 1.3%
128 12.47%
17.6 1.54%
17.7 7.92%
4.4 0.00%
24 0.07%
10 0.00%
129 1.29%
131 0.01%
129 4.06%
18.0 0.15%
18.0 1%
4.4.4 0.00%
25 0.21%
11 0.45%
130 0.00%
132 0.00%
130 0.01%
18.1 0.01%
18.1 0.05%
all 0.05%
130 43.66%
130 0.27%
26 1.87%
133 0.00%
131 0.00%
18.2 0.00%
18.2 0.00%
134 0.00%
132 0.00%
TP 0.00%
135 0.00%
133 0.00%
Globals: 93.43%
Partial Support