Skip to content

Commit 549b0e4

Browse files
committed
[css-speech-1] Add obsoletion notice
1 parent b4b7d03 commit 549b0e4

File tree

2 files changed

+57
-2
lines changed

2 files changed

+57
-2
lines changed

css-speech-1/Overview.html

+56-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@
9292
}
9393
-->
9494

95-
<link href="https://www.w3.org/StyleSheets/TR/2016/W3C-WG-NOTE-NOTE"
96-
rel=stylesheet type="text/css">
95+
<link href="https://www.w3.org/StyleSheets/TR/W3C-RNOTE" rel="stylesheet">
9796

9897
<body>
9998
<div class=head> <!--begin-logo-->
@@ -183,6 +182,8 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
183182
was developed in cooperation with the <a
184183
href="http://www.w3.org/Voice/">Voice Browser Activity</a>.
185184

185+
<p class="mtb"><strong>This specification is obsolete. Please see the latest <a href="https://www.w3.org/TR/CSS/">CSS Snapshot</a> for the specifications that make up CSS.</strong></p>
186+
186187
<h2 class="no-num no-toc" id=status>Status of this document</h2>
187188
<!--begin-status-->
188189

@@ -3860,3 +3861,56 @@ <h3 class=no-num id=other-references>Other references</h3>
38603861

38613862
<script src="//www.w3.org/scripts/TR/2016/fixup.js"
38623863
type="application/javascript"></script>
3864+
3865+
3866+
<script>
3867+
var ESCAPEKEY = 27;
3868+
/* Deprecation warning */
3869+
document.body.classList.add("outdated-spec");
3870+
var node = document.createElement("p");
3871+
node.classList.add("outdated-warning");
3872+
node.tabIndex = -1;
3873+
node.setAttribute("role", "dialog");
3874+
node.setAttribute("aria-modal", "true");
3875+
node.setAttribute("aria-labelledby", "outdatedWarning");
3876+
var frag = document.createDocumentFragment();
3877+
var heading = document.createElement("strong");
3878+
heading.id = "outdatedWarning";
3879+
heading.innerHTML = "Retired NOTE";
3880+
frag.appendChild(heading);
3881+
var warning = document.createElement("span");
3882+
warning.innerText = "The CSS Working Group has discontinued work on this document.";
3883+
frag.appendChild(warning);
3884+
var button = document.createElement("button");
3885+
var handler = makeClickHandler(node);
3886+
button.addEventListener("click", handler);
3887+
button.innerHTML = "&#9662; collapse";
3888+
frag.appendChild(button);
3889+
node.appendChild(frag);
3890+
function makeClickHandler(node) {
3891+
var isOpen = true;
3892+
return function collapseWarning(event) {
3893+
var button = event.target;
3894+
isOpen = !isOpen;
3895+
node.classList.toggle("outdated-collapsed");
3896+
document.body.classList.toggle("outdated-spec");
3897+
button.innerText = (isOpen) ? '\u25BE collapse' : '\u25B4 expand';
3898+
}
3899+
}
3900+
document.body.appendChild(node);
3901+
button.focus();
3902+
window.onkeydown = function (event) {
3903+
var isCollapsed = node.classList.contains("outdated-collapsed");
3904+
if (event.keyCode === ESCAPEKEY && !isCollapsed) {
3905+
button.click();
3906+
}
3907+
}
3908+
document.addEventListener("focus", function(event) {
3909+
var isCollapsed = node.classList.contains("outdated-collapsed");
3910+
var containsTarget = node.contains(event.target);
3911+
if (!isCollapsed && !containsTarget) {
3912+
event.stopPropagation();
3913+
node.focus();
3914+
}
3915+
}, true); // use capture to enable event delegation as focus doesn't bubble up
3916+
</script>

css-speech-1/Overview.src.html

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ <h2 class="no-num no-toc" id="abstract">Abstract</h2>
126126
documents via speech synthesis, and using optional audio cues. Note that this standard was
127127
developed in cooperation with the <a href="http://www.w3.org/Voice/">Voice Browser
128128
Activity</a>.</p>
129+
<p class="mtb"><strong>This specification is obsolete. Please see the latest <a href="https://www.w3.org/TR/CSS/">CSS Snapshot</a> for the specifications that make up CSS.</strong></p>
129130
<h2 class="no-num no-toc" id="status">Status of this document</h2>
130131
<!--status-->
131132
<!-- <h3 class="no-num no-toc" id="maturity">Maturity Level</h3> -->

0 commit comments

Comments
 (0)