Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Reference another property value from the same containing block.

Restricted to referencing properties that don't already reference other properties.

this( property-name, fallback )

Parameters

  • property-name Property name
  • fallback A CSS value

Returns

The referenced property value, or the fallback if it has not been set.

Examples

.foo {
  width: this( height );
  height: 100em;
}

/* The following both fail because they create circular references. */
.bar {
  height: this( width );
  width: this( height );
}