Skip to content

Commit 63cab96

Browse files
committed
[css-color-5] Define interface for @color-profile, #7151
1 parent ccf5fdc commit 63cab96

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

css-color-5/Overview.bs

+51
Original file line numberDiff line numberDiff line change
@@ -2570,6 +2570,57 @@ unless trailing zeroes have been omitted.
25702570
the black ("k") color component value
25712571
from the alpha value.
25722572

2573+
<!--
2574+
███ ████████ ████ ██████
2575+
██ ██ ██ ██ ██ ██ ██
2576+
██ ██ ██ ██ ██ ██
2577+
██ ██ ████████ ██ ██████
2578+
█████████ ██ ██ ██
2579+
██ ██ ██ ██ ██ ██
2580+
██ ██ ██ ████ ██████
2581+
-->
2582+
2583+
<h2 id="apis">APIs</h2>
2584+
2585+
<h3 id="the-csscolorprofilerule-interface">The <code>CSSColorProfileRule</code> interface</h3>
2586+
2587+
The <a interface>CSSColorProfileRule</a> interface represents a ''@color-profile'' rule.
2588+
2589+
<pre class='idl'>
2590+
[Exposed=Window]
2591+
interface CSSColorProfileRule : CSSRule {
2592+
readonly attribute CSSOMString name ;
2593+
readonly attribute CSSOMString src ;
2594+
readonly attribute CSSOMString renderingIntent ;
2595+
readonly attribute CSSOMString components ;
2596+
};
2597+
</pre>
2598+
2599+
<dl dfn-type="attribute" dfn-for="CSSColorProfileRule">
2600+
<dt><dfn>name</dfn></dt>
2601+
<dd>
2602+
The <var>name</var> attribute on getting must return
2603+
a <code>CSSOMString</code> object
2604+
that contains the serialization
2605+
of the <a>color profile's</a> name
2606+
defined for the associated rule.
2607+
</dd>
2608+
<dt><dfn>src</dfn></dt>
2609+
<dt><dfn>renderingIntent</dfn></dt>
2610+
<dt><dfn>components</dfn></dt>
2611+
<dd>
2612+
The remaining attributes on getting
2613+
must return a <code>CSSOMString</code> object
2614+
that contains the serialization of the
2615+
associated descriptor defined for the associated rule.
2616+
If the descriptor was not specified in the associated rule,
2617+
the attribute must return an empty string.
2618+
</dd>
2619+
</dl>
2620+
2621+
2622+
2623+
25732624
<!--
25742625
██████ ████████ ██ ██ ██ ████████ ████████ ██ ██ ██ ████████ ██████
25752626
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██

0 commit comments

Comments
 (0)