Skip to content

Commit e7ec0e4

Browse files
committed
[css-variables] Make the var.foo interface only contain custom props with non-initial values.
--HG-- extra : rebase_source : 272c60b9151190ac0340607b2bd34dea20b40403
1 parent b26b79f commit e7ec0e4

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

css-variables/Overview.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
content="CSS Custom Properties for Cascading Variables Module Level 1"
1414
name=dcterms.title>
1515
<meta content=text name=dcterms.type>
16-
<meta content=2013-02-28 name=dcterms.issued>
16+
<meta content=2013-03-01 name=dcterms.issued>
1717
<meta content="http://dev.w3.org/csswg/css-variables/"
1818
name=dcterms.creator>
1919
<meta content=W3C name=dcterms.publisher>
@@ -31,8 +31,7 @@
3131

3232
<h1>CSS Custom Properties for Cascading Variables Module Level 1</h1>
3333

34-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 February
35-
2013</h2>
34+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 March 2013</h2>
3635

3736
<dl>
3837
<dt>This version:
@@ -778,9 +777,8 @@ <h3 id=the-cssvariablesdeclaration-interface><span class=secno>4.2. </span>
778777
<p> The <dfn
779778
id=cssvariablesdeclaration><code>CSSVariablesDeclaration</code></dfn>
780779
interface exposes the <a href="#custom-property"><i>custom
781-
properties</i></a> declared in the parent declaration block, in a more
782-
convenient fashion than the <code>getPropertyValue()</code>/etc.
783-
functions.
780+
properties</i></a> declared in the parent declaration block that have a
781+
non-initial value.
784782

785783
<pre class=idl>interface CSSVariablesDeclaration {
786784
<a
@@ -800,7 +798,8 @@ <h3 id=the-cssvariablesdeclaration-interface><span class=secno>4.2. </span>
800798
<a
801799
href="http://dev.w3.org/csswg/cssom/#css-declaration-block-declarations"><dfn
802800
id=css-declaration-block-declarations>CSS declaration block
803-
declarations</dfn></a>, with the "var-" prefix removed.
801+
declarations</dfn></a> with a non-initial value, with the "var-" prefix
802+
removed.
804803

805804
<p> Before running any of the algorithms in this section, prepend "var-" to
806805
<var>varName</var><code class=css>s value. </code>

css-variables/Overview.src.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ <h4 id='serializing-custom-props'>
568568
<h3 id='the-cssvariablesdeclaration-interface'>
569569
The <code>CSSVariablesDeclaration</code> Interface</h3>
570570

571-
The <dfn><code>CSSVariablesDeclaration</code></dfn> interface exposes the <i>custom properties</i> declared in the parent declaration block,
572-
in a more convenient fashion than the <code>getPropertyValue()</code>/etc. functions.
571+
The <dfn><code>CSSVariablesDeclaration</code></dfn> interface
572+
exposes the <i>custom properties</i> declared in the parent declaration block
573+
that have a non-initial value.
573574

574575
<pre class='idl'>
575576
interface CSSVariablesDeclaration {
@@ -581,7 +582,8 @@ <h3 id='the-cssvariablesdeclaration-interface'>
581582

582583
The <a href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-names">supported property names</a>
583584
on a CSSStyleDeclaration object
584-
are the property names of all the <i>custom properties</i> in the <a href="http://dev.w3.org/csswg/cssom/#css-declaration-block-declarations"><dfn>CSS declaration block declarations</dfn></a>,
585+
are the property names of all the <i>custom properties</i> in the <a href="http://dev.w3.org/csswg/cssom/#css-declaration-block-declarations"><dfn>CSS declaration block declarations</dfn></a>
586+
with a non-initial value,
585587
with the "var-" prefix removed.
586588

587589
Before running any of the algorithms in this section,

0 commit comments

Comments
 (0)