Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (26 sloc) 621 Bytes

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 );
}
You can’t perform that action at this time.