E /foo/ F

Reference Combinator

Removed from specification

The reference combinator is made up of two slashes involving a CSS qualified name, and separates two compound selectors. The first element references the second element.

Browser Support (tested using latest versions)

Desktop
Google Chrome
No
Mozilla Firefox
No
Safari
No
Opera Browser
No
Internet Explorer
No
Mobile
Android Browser
No
Chrome for Android
No
Mozilla Firefox Mobile
No
Safari iOS
No
Opera Mobile
No
IE Mobile
No

Syntax

E /foo/ F { /* Style properties */ }

Example

/* In this example, all input elements referenced by their label will have a yellow background when the input element is focused. */

label:focus /for/ input {
background: yellow;
}

Information is based on Selectors Level 4 - W3C Working Draft (last updated on May 2, 2013)
Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.