JavaFX CSS: How to inherit background color from other CSS settings?
<p>I have a CSS file to set styles in JavaFX <code>TabPane</code> and <code>Tab</code>.</p>

<p>Is there a way to set the <code>TabPane</code>'s background color and inherit <code>Tab</code> background colors?</p>

<p>If I set the <code>tab-content-area</code> background color, can I pick this up for the tab without having specifically nominate the color again? </p>

<pre><code>.tab-content-area 
{
  -fx-background-color: #d9d9d9; /* I want to apply this color to tab background */ 
}

.tab:selected 
{
  -fx-background-color : -fx-something; &lt;?? what do i put here??&gt;
  -fx-background-insets: 0, 1 1 0 1;
  -fx-background-radius: 5 5 0 0, 4 4 0 0;
}
</code></pre>