mask-type

  • Revision slug: Web/CSS/mask-type
  • Revision title: mask-type
  • Revision id: 449907
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{ CSSRef() }}

Summary

  • {{ Xref_cssinitial() }} luminance
  • Applies to {{SVGElement("mask")}}
  • {{ Xref_cssinherited() }} no
  • Media {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}
  • Animatable yes

Syntax

mask: luminance | alpha

Values

luminance
...
alpha
...

Examples


Specifications

Specification Status Comment
{{ SpecName('CSS Masks', '#mask-type', 'mask') }} {{ Spec2('CSS Masks') }} Initial definition.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 24.0 {{CompatGeckoDesktop("20.0")}} {{ CompatNo() }} 15.0 {{ CompatNo() }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{CompatGeckoMobile("20.0")}} {{ CompatNo() }} 15.0 {{ CompatNo() }}

See also

  • Other mask-related properties: {{cssxref("mask")}}

Revision Source

<div>
  {{ CSSRef() }}</div>
<h2 id="Summary" name="Summary">Summary</h2>
<ul class="cssprop">
  <li><dfn>{{ Xref_cssinitial() }}</dfn> <code>luminance</code></li>
  <li><dfn>Applies to</dfn> {{SVGElement("mask")}}</li>
  <li><dfn>{{ Xref_cssinherited() }}</dfn> no</li>
  <li><dfn>Media</dfn> {{ Xref_cssvisual() }}</li>
  <li><dfn>{{ Xref_csscomputed() }}</dfn></li>
  <li><dfn>Animatable</dfn> yes</li>
</ul>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="syntaxbox">
mask: luminance | alpha</pre>
<h3 id="Values" name="Values">Values</h3>
<dl>
  <dt>
    <code>luminance</code></dt>
  <dd>
    ...</dd>
  <dt>
    <code>alpha</code></dt>
  <dd>
    ...</dd>
</dl>
<h2 id="Examples" name="Examples">Examples</h2>
<pre class="brush: css">
</pre>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ SpecName('CSS Masks', '#mask-type', 'mask') }}</td>
      <td>{{ Spec2('CSS Masks') }}</td>
      <td>Initial definition.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_Compatibility" name="Browser_Compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari (WebKit)</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>24.0</td>
        <td>{{CompatGeckoDesktop("20.0")}}</td>
        <td>{{ CompatNo() }}</td>
        <td>15.0</td>
        <td>{{ CompatNo() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{CompatGeckoMobile("20.0")}}</td>
        <td>{{ CompatNo() }}</td>
        <td>15.0</td>
        <td>{{ CompatNo() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also" name="See_also">See also</h2>
<ul>
  <li>Other mask-related properties: {{cssxref("mask")}}</li>
</ul>
Revert to this revision