Skip to content

Commit 5c7520d

Browse files
committed
[css-variables] markup tweak
1 parent 89a8099 commit 5c7520d

3 files changed

Lines changed: 47 additions & 17 deletions

File tree

css-variables/Overview.html

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
<link href="http://purl.org/dc/terms/" rel=schema.DC>
99
<meta content="CSS Cascading Variables Module Level 1" name=DC.title>
1010
<meta content=text name=DC.type>
11-
<meta content=2012-08-31 name=DC.issued>
11+
<meta content=2012-09-01 name=DC.issued>
1212
<meta content="http://dev.w3.org/csswg/css-variables/" name=DC.creator>
1313
<meta content=W3C name=DC.publisher>
14-
<meta content="http://www.w3.org/TR/2012/ED-css-variables-20120831/"
14+
<meta content="http://www.w3.org/TR/2012/ED-css-variables-20120901/"
1515
name=DC.identifier>
1616
<link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
1717
rel=DC.rights>
18-
<link href="http://dev.w3.org/csswg/default.css" rel=stylesheet
19-
type="text/css">
18+
<link href="../default.css" rel=stylesheet type="text/css">
2019
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
2120
type="text/css">
2221

@@ -27,14 +26,15 @@
2726

2827
<h1>CSS Cascading Variables Module Level 1</h1>
2928

30-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 31 August 2012</h2>
29+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 September
30+
2012</h2>
3131

3232
<dl>
3333
<dt>This version:
34-
<!--<dd><a href="http://www.w3.org/TR/2012/WD-css-variables-20120831/">http://www.w3.org/TR/2012/ED-css-variables-20120831/</a>-->
34+
<!--<dd><a href="http://www.w3.org/TR/2012/WD-css-variables-20120901/">http://www.w3.org/TR/2012/ED-css-variables-20120901/</a>-->
3535

3636
<dd><a href="http://dev.w3.org/csswg/css-variables/">Editor's draft</a>
37-
(version of 31 August 2012)
37+
(version of 1 September 2012)
3838

3939
<dt>Latest version:
4040

@@ -691,22 +691,27 @@ <h3 id=invalid-variables><span class=secno>3.1. </span> Invalid Variables</h3>
691691
<h2 id=cssom><span class=secno>4. </span> APIs</h2>
692692

693693
<h3 id=the-cssstyledeclaration-interface><span class=secno>4.1. </span>
694-
Extensions to the <code>CSSStyleDeclaration</code> Interface</h3>
694+
Extensions to the <a
695+
href="#cssstyledeclaration"><code>CSSStyleDeclaration</code></a> Interface</h3>
695696

696-
<p> The <code>CSSStyleDeclaration</code> interface is amended as follows:
697+
<p> The <dfn id=cssstyledeclaration><code>CSSStyleDeclaration</code></dfn>
698+
interface is amended as follows:
697699

698700
<pre class=idl>
699701
partial interface CSSStyleDeclaration {
700702
attribute CSSVariablesDeclaration var;
701703
}</pre>
702704

703705
<h3 id=the-cssvariablesdeclaration-interface><span class=secno>4.2. </span>
704-
The <code>CSSVariablesDeclaration</code> Interface</h3>
706+
The <a
707+
href="#cssvariablesdeclaration"><code>CSSVariablesDeclaration</code></a>
708+
Interface</h3>
705709

706-
<p> The <code>CSSVariablesDeclaration</code> interface exposes the <a
707-
href="#custom-property"><i>custom properties</i></a> declared in the
708-
block, in a more convenient fashion than the
709-
<code>getPropertyValue()</code>/etc. functions.
710+
<p> The <dfn
711+
id=cssvariablesdeclaration><code>CSSVariablesDeclaration</code></dfn>
712+
interface exposes the <a href="#custom-property"><i>custom
713+
properties</i></a> declared in the block, in a more convenient fashion
714+
than the <code>getPropertyValue()</code>/etc. functions.
710715

711716
<pre class=idl>
712717
interface CSSVariablesDeclaration {
@@ -1004,6 +1009,15 @@ <h2 class=no-num id=index>Index</h2>
10041009
<li>creator, <a href="#cssvariablesdeclaration-creator"
10051010
title=creator><strong>4.2.</strong></a>
10061011

1012+
<li><a href="#cssstyledeclaration"><code>CSSStyleDeclaration</code></a>,
1013+
<a href="#cssstyledeclaration"
1014+
title=CSSStyleDeclaration><strong>4.1.</strong></a>
1015+
1016+
<li><a
1017+
href="#cssvariablesdeclaration"><code>CSSVariablesDeclaration</code></a>,
1018+
<a href="#cssvariablesdeclaration"
1019+
title=CSSVariablesDeclaration><strong>4.2.</strong></a>
1020+
10071021
<li>custom properties, <a href="#custom-property"
10081022
title="custom properties"><strong>2.</strong></a>
10091023

css-variables/Overview.src.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<title>CSS Cascading Variables Module Level 1</title>
6-
<link rel="stylesheet" type="text/css" href="http://dev.w3.org/csswg/default.css">
6+
<link rel="stylesheet" type="text/css" href="../default.css">
77
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css">
88
</head>
99

@@ -539,7 +539,7 @@ <h3 id='the-cssstyledeclaration-interface'>
539539
Extensions to the <code>CSSStyleDeclaration</code> Interface</h3>
540540

541541
<p>
542-
The <code>CSSStyleDeclaration</code> interface is amended as follows:
542+
The <dfn><code>CSSStyleDeclaration</code></dfn> interface is amended as follows:
543543

544544
<pre class='idl'>
545545
partial interface CSSStyleDeclaration {
@@ -550,7 +550,7 @@ <h3 id='the-cssvariablesdeclaration-interface'>
550550
The <code>CSSVariablesDeclaration</code> Interface</h3>
551551

552552
<p>
553-
The <code>CSSVariablesDeclaration</code> interface exposes the <i>custom properties</i> declared in the block,
553+
The <dfn><code>CSSVariablesDeclaration</code></dfn> interface exposes the <i>custom properties</i> declared in the block,
554554
in a more convenient fashion than the <code>getPropertyValue()</code>/etc. functions.
555555

556556
<pre class='idl'>

default.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ code.xml { color: #600 } /* inline XML */
143143
.type { font-style: italic } /* A <type> value for a property */
144144

145145
dfn { font-weight: bolder; }
146+
a > i { font-style: normal; } /* Instance of term */
146147

147148
.issue, .note, div.example, pre.example {
148149
padding: .5em;
@@ -395,6 +396,21 @@ table.proptable td .property {
395396
font-weight: bold;
396397
}
397398

399+
400+
/* Styling for IDL fragments */
401+
402+
pre.idl {
403+
padding: .5em 1em;
404+
background: #DEF;
405+
margin: 1.2em 0;
406+
border-left: 0.5em solid #8CCBF2;
407+
}
408+
pre.idl :link, pre.idl :visited {
409+
color:inherit;
410+
background:transparent }
411+
}
412+
413+
398414
/* CSS modules typically don't use MUST, SHOULD etc. from RFC 2119,
399415
or, if they do, they don't put them in uppercase. But the following
400416
class is provided in case a spec wants to use RFC 2119 terms in

0 commit comments

Comments
 (0)