Export (0) Print
Expand All

Existence property

Matches the property, whatever its value.

[attr] { sRules }

attr

Either an identifier or a string.

sRules

A string that specifies one or more cascading style sheet property/value pairs.

Property selectors are enabled only in standards-compliant mode (strict !DOCTYPE).

Attributes are case-sensitive.

The following style rule selects elements that use the special property:

<style>
    .test     {display: none;}
    [special] {display: block;}
</style>

<div class="test" special>Test for [] (Existence) succeeded.</div>

Community Additions

ADD
Show:
© 2015 Microsoft