-
Notifications
You must be signed in to change notification settings - Fork 13
/
policies.html
657 lines (606 loc) · 29.5 KB
/
policies.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
<!DOCTYPE html><html lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="ReSpec 35.1.1">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
dfn{cursor:pointer}
.dfn-panel{position:absolute;z-index:35;min-width:300px;max-width:500px;padding:.5em .75em;margin-top:.6em;font-family:"Helvetica Neue",sans-serif;font-size:small;background:#fff;background:var(--indextable-hover-bg,#fff);color:#000;color:var(--text,#000);box-shadow:0 1em 3em -.4em rgba(0,0,0,.3),0 0 1px 1px rgba(0,0,0,.05);box-shadow:0 1em 3em -.4em var(--tocsidebar-shadow,rgba(0,0,0,.3)),0 0 1px 1px var(--tocsidebar-shadow,rgba(0,0,0,.05));border-radius:2px}
.dfn-panel:not(.docked)>.caret{position:absolute;top:-9px}
.dfn-panel:not(.docked)>.caret::after,.dfn-panel:not(.docked)>.caret::before{content:"";position:absolute;border:10px solid transparent;border-top:0;border-bottom:10px solid #fff;border-bottom-color:var(--indextable-hover-bg,#fff);top:0}
.dfn-panel:not(.docked)>.caret::before{border-bottom:9px solid #a2a9b1;border-bottom-color:var(--indextable-hover-bg,#a2a9b1)}
.dfn-panel *{margin:0}
.dfn-panel b{display:block;color:#000;color:var(--text,#000);margin-top:.25em}
.dfn-panel ul a[href]{color:#333;color:var(--text,#333)}
.dfn-panel>div{display:flex}
.dfn-panel a.self-link{font-weight:700;margin-right:auto}
.dfn-panel .marker{padding:.1em;margin-left:.5em;border-radius:.2em;text-align:center;white-space:nowrap;font-size:90%;color:#040b1c}
.dfn-panel .marker.dfn-exported{background:#d1edfd;box-shadow:0 0 0 .125em #1ca5f940}
.dfn-panel .marker.idl-block{background:#8ccbf2;box-shadow:0 0 0 .125em #0670b161}
.dfn-panel a:not(:hover){text-decoration:none!important;border-bottom:none!important}
.dfn-panel a[href]:hover{border-bottom-width:1px}
.dfn-panel ul{padding:0}
.dfn-panel li{margin-left:1em}
.dfn-panel.docked{position:fixed;left:.5em;top:unset;bottom:2em;margin:0 auto;max-width:calc(100vw - .75em * 2 - .5em - .2em * 2);max-height:30vh;overflow:auto}
</style>
<title>Web Sustainability Laws & Policies</title>
<style>
.center { text-align: center; }
.flow { overflow-x: auto; }
table { border-collapse:collapse; border-spacing:0; white-space: nowrap; }
td, th { border: 1px solid #000000; max-width: 100%; white-space: initial; }
</style>
<style id="respec-mainstyle">
@keyframes pop{
0%{transform:scale(1,1)}
25%{transform:scale(1.25,1.25);opacity:.75}
100%{transform:scale(1,1)}
}
a.internalDFN{color:inherit;border-bottom:1px solid #99c;text-decoration:none}
a.externalDFN{color:inherit;border-bottom:1px dotted #ccc;text-decoration:none}
a.bibref{text-decoration:none}
.respec-offending-element:target{animation:pop .25s ease-in-out 0s 1}
.respec-offending-element,a[href].respec-offending-element{text-decoration:red wavy underline}
@supports not (text-decoration:red wavy underline){
.respec-offending-element:not(pre){display:inline-block}
.respec-offending-element{background:url(data:image/gif;base64,R0lGODdhBAADAPEAANv///8AAP///wAAACwAAAAABAADAEACBZQjmIAFADs=) bottom repeat-x}
}
#references :target{background:#eaf3ff;animation:pop .4s ease-in-out 0s 1}
cite .bibref{font-style:normal}
a[href].orcid{padding-left:4px;padding-right:4px}
a[href].orcid>svg{margin-bottom:-2px}
ol.tof,ul.tof{list-style:none outside none}
.caption{margin-top:.5em;font-style:italic}
#issue-summary>ul{column-count:2}
#issue-summary li{list-style:none;display:inline-block}
details.respec-tests-details{margin-left:1em;display:inline-block;vertical-align:top}
details.respec-tests-details>*{padding-right:2em}
details.respec-tests-details[open]{z-index:999999;position:absolute;border:thin solid #cad3e2;border-radius:.3em;background-color:#fff;padding-bottom:.5em}
details.respec-tests-details[open]>summary{border-bottom:thin solid #cad3e2;padding-left:1em;margin-bottom:1em;line-height:2em}
details.respec-tests-details>ul{width:100%;margin-top:-.3em}
details.respec-tests-details>li{padding-left:1em}
.self-link:hover{opacity:1;text-decoration:none;background-color:transparent}
aside.example .marker>a.self-link{color:inherit}
.header-wrapper{display:flex;align-items:baseline}
:is(h2,h3,h4,h5,h6):not(#toc>h2,#abstract>h2,#sotd>h2,.head>h2){position:relative;left:-.5em}
:is(h2,h3,h4,h5,h6):not(#toch2)+a.self-link{color:inherit;order:-1;position:relative;left:-1.1em;font-size:1rem;opacity:.5}
:is(h2,h3,h4,h5,h6)+a.self-link::before{content:"§";text-decoration:none;color:var(--heading-text)}
:is(h2,h3)+a.self-link{top:-.2em}
:is(h4,h5,h6)+a.self-link::before{color:#000}
@media (max-width:767px){
dd{margin-left:0}
}
@media print{
.removeOnSave{display:none}
}
</style>
<meta name="color-scheme" content="light">
<meta name="description" content="This document lists governmental policies related to Web sustainability, although it is not a comprehensive or definitive listing. Additionally, details of recognized sustainability standards and noteworthy best practices are included. It is also a supplement to the Web Sustainability Guidelines (WSG) 1.0 specification.">
<style>
var{position:relative;cursor:pointer}
var[data-type]::after,var[data-type]::before{position:absolute;left:50%;top:-6px;opacity:0;transition:opacity .4s;pointer-events:none}
var[data-type]::before{content:"";transform:translateX(-50%);border-width:4px 6px 0 6px;border-style:solid;border-color:transparent;border-top-color:#222}
var[data-type]::after{content:attr(data-type);transform:translateX(-50%) translateY(-100%);background:#222;text-align:center;font-family:"Dank Mono","Fira Code",monospace;font-style:normal;padding:6px;border-radius:3px;color:#daca88;text-indent:0;font-weight:400}
var[data-type]:hover::after,var[data-type]:hover::before{opacity:1}
</style>
<script id="initialUserConfig" type="application/json">{
"editors": [
{
"name": "Alexander Dawson",
"url": "https://alexanderdawson.com/",
"w3cid": 49702
},
{
"name": "Ines Akrap",
"url": "https://inesakrap.com/",
"company": "Storyblok"
},
{
"name": "Mike Gifford",
"url": "https://civicactions.com/",
"company": "CivicActions"
},
{
"name": "Tim Frick",
"url": "https://www.mightybytes.com/",
"company": "Mightybytes",
"w3cid": 62394
}
],
"edDraftURI": "https://w3c.github.io/sustyweb/policies.html",
"github": "https://github.com/w3c/sustyweb/",
"group": "sustyweb",
"latestVersion": "https://w3c.github.io/sustyweb/policies.html",
"specStatus": "CG-DRAFT",
"publishISODate": "2024-08-22T00:00:00.000Z",
"generatedSubtitle": "Draft Community Group Report 22 August 2024"
}</script>
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2021/cg-draft"></head>
<body class="h-entry informative"><div class="head">
<h1 id="title" class="title">Web Sustainability Laws & Policies</h1>
<p id="w3c-state">
<a href="https://www.w3.org/standards/types#reports">Draft Community Group Report</a>
<time class="dt-published" datetime="2024-08-22">22 August 2024</time>
</p>
<dl>
<dt>Latest published version:</dt><dd>
<a href="https://w3c.github.io/sustyweb/policies.html">https://w3c.github.io/sustyweb/policies.html</a>
</dd>
<dt>Latest editor's draft:</dt><dd><a href="https://w3c.github.io/sustyweb/policies.html">https://w3c.github.io/sustyweb/policies.html</a></dd>
<dt>Editors:</dt><dd class="editor p-author h-card vcard" data-editor-id="49702">
<a class="u-url url p-name fn" href="https://alexanderdawson.com/">Alexander Dawson</a>
</dd><dd class="editor p-author h-card vcard">
<a class="u-url url p-name fn" href="https://inesakrap.com/">Ines Akrap</a> (<span class="p-org org h-org">Storyblok</span>)
</dd><dd class="editor p-author h-card vcard">
<a class="u-url url p-name fn" href="https://civicactions.com/">Mike Gifford</a> (<span class="p-org org h-org">CivicActions</span>)
</dd><dd class="editor p-author h-card vcard" data-editor-id="62394">
<a class="u-url url p-name fn" href="https://www.mightybytes.com/">Tim Frick</a> (<span class="p-org org h-org">Mightybytes</span>)
</dd>
<dt>Feedback:</dt><dd>
<a href="https://github.com/w3c/sustyweb/">GitHub w3c/sustyweb</a>
(<a href="https://github.com/w3c/sustyweb/pulls/">pull requests</a>,
<a href="https://github.com/w3c/sustyweb/issues/new/choose">new issue</a>,
<a href="https://github.com/w3c/sustyweb/issues/">open issues</a>)
</dd>
</dl>
<p class="copyright">
<a href="https://www.w3.org/policies/#copyright">Copyright</a>
©
2024
the Contributors to the Web Sustainability Laws & Policies
Specification, published by the
<a href="https://www.w3.org/groups/cg/sustyweb">Sustainable Web Design Community Group</a> under the
<a href="https://www.w3.org/community/about/agreements/cla/">W3C Community Contributor License Agreement (CLA)</a>. A human-readable
<a href="https://www.w3.org/community/about/agreements/cla-deed/">summary</a>
is available.
</p>
<hr title="Separator for header">
</div>
<section id="abstract" class="introductory"><h2>Abstract</h2>
<p>This document lists governmental policies related to Web sustainability, although it is not a comprehensive or definitive listing. Additionally, details of recognized sustainability standards and noteworthy best practices are included. It is also a supplement to the <a href="https://w3c.github.io/sustyweb/">Web Sustainability Guidelines</a> (<abbr title="Web Sustainability Guidelines">WSG</abbr>) 1.0 specification.</p>
<p>The information on this page is not legal advice. Please consult legal authorities for the appropriate jurisdiction. Neither the <abbr title="World Wide Web Consortium">W3C</abbr> nor the <a href="https://www.w3.org/groups/cg/sustyweb">Sustainable Web Design Community Group</a> can guarantee the sustainability of these external resources.</p>
<p>Help improve this page by sharing your ideas, suggestions, or comments via <a href="https://github.com/w3c/sustyweb/issues/">GitHub issues</a>.</p>
</section>
<section id="sotd" class="override introductory"></section><nav id="toc"><h2 class="introductory" id="table-of-contents">Table of Contents</h2><ol class="toc"><li class="tocline"><a class="tocxref" href="#abstract">Abstract</a></li><li class="tocline"><a class="tocxref" href="#laws-and-policies"><bdi class="secno">1. </bdi>Laws and Policies</a></li><li class="tocline"><a class="tocxref" href="#standards"><bdi class="secno">2. </bdi>Standards</a></li><li class="tocline"><a class="tocxref" href="#best-practices"><bdi class="secno">3. </bdi>Best Practices</a></li><li class="tocline"><a class="tocxref" href="#glossary"><bdi class="secno">4. </bdi>Glossary</a></li><li class="tocline"><a class="tocxref" href="#acknowledgments"><bdi class="secno">A. </bdi>Acknowledgments</a><ol class="toc"><li class="tocline"><a class="tocxref" href="#participants-of-the-swd-cg-active-in-the-development-of-this-document"><bdi class="secno">A.1 </bdi>Participants of the SWD-CG Active in the Development of This Document</a></li></ol></li></ol></nav>
<section id="laws-and-policies"><div class="header-wrapper"><h2 id="x1-laws-and-policies"><bdi class="secno">1. </bdi>Laws and Policies</h2><a class="self-link" href="#laws-and-policies" aria-label="Permalink for Section 1."></a></div>
<table class="flow">
<thead>
<tr>
<th>Country / Region</th>
<th>Name</th>
<th>Date Enacted</th>
<th>Type</th>
<th>Maturity</th>
<th>Responsible Entity</th>
</tr>
</thead>
<tbody>
<tr>
<td>European Union</td>
<td><a href="https://www.dora-info.eu/">Digital Operational Resilience Act (DORA)</a></td>
<td>2024</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://artificialintelligenceact.eu/the-act/">EU Artificial Intelligence Act (AI Act)</a></td>
<td>2024</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://commission.europa.eu/business-economy-euro/doing-business-eu/sustainability-due-diligence-responsible-business/corporate-sustainability-due-diligence_en">Corporate Sustainability Due Diligence Directive (CS3D)</a></td>
<td>2024</td>
<td>Directive</td>
<td><a href="https://www.tlt.com/insights-and-events/insight/eu-corporate-sustainability-due-diligence-directive-moving-forward-but-pared-back/">Awaiting</a></td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://commission.europa.eu/energy-climate-change-environment/standards-tools-and-labels/products-labelling-rules-and-requirements/sustainable-products/ecodesign-sustainable-products-regulation_en">Ecodesign for Sustainable Products Regulation (ESPR)</a></td>
<td>2024</td>
<td>Law</td>
<td>Awaiting</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://www.europarl.europa.eu/legislative-train/theme-a-european-green-deal/file-substantiating-green-claims">Green Claims Directive</a></td>
<td>2024</td>
<td>Directive</td>
<td><a href="https://www.europarl.europa.eu/topics/en/article/20240111STO16722/stopping-greenwashing-how-the-eu-regulates-green-claims">Awaiting</a></td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>United States</td>
<td><a href="https://legiscan.com/CA/text/SB253/2023">Climate Corporate Data Accountability Act (CCDAA)</a></td>
<td>2023</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://leginfo.legislature.ca.gov/faces/home.xhtml">State of California</a></td>
</tr>
<tr>
<td>United States</td>
<td><a href="https://legiscan.com/CA/text/SB261/2023">Climate-Related Financial Risk Act (CFRA)</a></td>
<td>2023</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://leginfo.legislature.ca.gov/faces/home.xhtml">State of California</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://finance.ec.europa.eu/capital-markets-union-and-financial-markets/company-reporting-and-auditing/company-reporting/corporate-sustainability-reporting_en">Corporate Sustainability Reporting Directive (CSRD)</a></td>
<td>2023</td>
<td>Directive</td>
<td>Passed</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://energy.ec.europa.eu/topics/energy-efficiency/energy-efficiency-targets-directive-and-rules/energy-efficiency-directive_en">Energy Efficiency Directive</a></td>
<td>2023</td>
<td>Directive</td>
<td>Passed</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>Germany</td>
<td><a href="https://www.bundesregierung.de/breg-en/federal-government/the-energy-efficiency-act-2184958">Energy Efficiency Act (EnEfG)</a></td>
<td>2023</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://www.bundesregierung.de/breg-en">Federal Government (Bundesregierung)</a></td>
</tr>
<tr>
<td>Germany</td>
<td><a href="https://www.csr-in-deutschland.de/EN/Business-Human-Rights/Supply-Chain-Act/supply-chain-act.html">Supply Chain and Due Diligence Act (SCDDA)</a></td>
<td>2023</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://www.bmas.de/EN/Home/home.html">Federal Ministry of Labour and Social Affairs</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:02009L0125-20121204&from=EN">Ecodesign for Sustainable Products Directive (ESPD)</a> (<em>PDF</em>)</td>
<td>2022</td>
<td>Directive</td>
<td>Passed</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>India</td>
<td><a href="https://community.sap.com/t5/sustainability-blogs/business-responsibility-and-sustainability-report-brsr-in-nutshell/ba-p/13573959">Business Responsibility and Sustainability Report (BRSR)</a></td>
<td>2021</td>
<td>Policy</td>
<td>Passed</td>
<td><a href="https://www.sebi.gov.in/">Securities and Exchange Board of India (SEBI)</a></td>
</tr>
<tr>
<td>France</td>
<td><a href="https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000044327272">Visant à Réduire L'empreinte Environnementale Du Numérique (REEN)</a></td>
<td>2021</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://www.legifrance.gouv.fr/">French Republic</a></td>
</tr>
<tr>
<td>France</td>
<td><a href="https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000044330841/2022-02-15">Anti-gaspillage pour une économie circulaire' (AGEC)</a></td>
<td>2021</td>
<td>Law</td>
<td>Passed</td>
<td><a href="https://www.legifrance.gouv.fr/">French Republic</a></td>
</tr>
</tbody>
</table>
</section>
<section id="standards"><div class="header-wrapper"><h2 id="x2-standards"><bdi class="secno">2. </bdi>Standards</h2><a class="self-link" href="#standards" aria-label="Permalink for Section 2."></a></div>
<ol>
<li><a href="https://www.globalreporting.org/how-to-use-the-gri-standards/gri-standards-english-language/">Global Reporting Initiative (GRI)</a></li>
<li><a href="https://finance.ec.europa.eu/news/commission-adopts-european-sustainability-reporting-standards-2023-07-31_en">European Sustainability Reporting Standards (ESRS)</a></li>
<li><a href="https://www.iso.org/sdgs.html">International Standards Organization (ISO)</a><ul>
<li><a href="https://www.iso.org/standard/86105.html">Digital Services Ecodesign (ISO/IEC CD TS 20125)</a></li>
</ul></li>
</ol>
</section>
<section id="best-practices"><div class="header-wrapper"><h2 id="x3-best-practices"><bdi class="secno">3. </bdi>Best Practices</h2><a class="self-link" href="#best-practices" aria-label="Permalink for Section 3."></a></div>
<p>For the below, best practices are recognized by international standing, associations with a public body (or recognized group), or they are evidence-based and aligned to existing standards and conformance criteria for legislation stated above in the field of digital sustainability (giving such practices increased credibility).</p>
<table class="flow">
<thead>
<tr>
<th>Country / Region</th>
<th>Name</th>
<th>Published</th>
<th>Maturity</th>
<th>Responsible Entity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Global</td>
<td><a href="https://w3c.github.io/sustyweb/">Web Sustainability Guidelines (WSGs)</a></td>
<td>2024</td>
<td><a href="https://github.com/w3c/sustyweb/releases">Awaiting</a></td>
<td><a href="https://www.w3.org/community/sustyweb/"><abbr title="World Wide Web Consortium">W3C</abbr> Sustainable Web Design Community Group</a></td>
</tr>
<tr>
<td>France</td>
<td><a href="https://www.arcep.fr/uploads/tx_gspublication/general_policy_framework_for_the_ecodesign_of_digital_services_version_2024.pdf">General Policy Framework for the Ecodesign of Digital Services (RGESN)</a></td>
<td>2024</td>
<td>Passed</td>
<td><a href="https://www.legifrance.gouv.fr/">French Republic</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://digital-strategy.ec.europa.eu/en/policies/digital-principles">European Digital Rights and Principles</a></td>
<td>2023</td>
<td>Passed</td>
<td><a href="https://commission.europa.eu/index_en">European Parliament</a></td>
</tr>
<tr>
<td>France</td>
<td><a href="https://www.boutique.afnor.org/en-gb/standard/afnor-spec-2201//fa203506/323315">AFNOR Spec 2201</a></td>
<td>2022</td>
<td>Passed</td>
<td><a href="https://www.boutique.afnor.org/">Association Française de Normalisation (AFNOR)</a></td>
</tr>
<tr>
<td>European Union</td>
<td><a href="https://gr491.isit-europe.org/en/">Handbook of Sustainable Design of Digital Services (GR491)</a></td>
<td>2021</td>
<td>Passed</td>
<td><a href="https://isit-europe.org/">Institute for Sustainable <abbr title="Information Technology">IT</abbr></a></td>
</tr>
<tr>
<td>United Nations</td>
<td><a href="https://sdgs.un.org/goals">Sustainable Development Goals (SDGs)</a></td>
<td>2016</td>
<td>Passed</td>
<td><a href="https://www.un.org/">United Nations</a></td>
</tr>
</tbody>
</table>
</section>
<section class="informative" id="glossary"><div class="header-wrapper"><h2 id="x4-glossary"><bdi class="secno">4. </bdi>Glossary</h2><a class="self-link" href="#glossary" aria-label="Permalink for Section 4."></a></div><p><em>This section is non-normative.</em></p>
<dl id="terms">
<dt>Awaiting</dt>
<dd>
<p>This status indicates that the item is either in development (draft), consultation, or awaiting approval.</p>
</dd>
<dt>Best Practice</dt>
<dd>
<p>Recognized and approved guidelines or techniques to meet standards or compliance targets.</p>
</dd>
<dt>Directive</dt>
<dd>
<p>A legislative act that sets out goals for individual member states to achieve. However, it is up to those member nations to devise their laws to reach the said goals.</p>
</dd>
<dt>Law</dt>
<dd>
<p>A law has completed the legislation process and is put into effect as the law of the land.</p>
</dd>
<dt>Passed</dt>
<dd>
<p>This status indicates that the item has passed all stages of development and should be considered in use.</p>
</dd>
<dt>Policy</dt>
<dd>
<p>Outlines the goals of a government ministry or agency as well as the methods and principles to achieve those goals. Policies are not laws but can lead to the development of laws.</p>
</dd>
<dt>Standard</dt>
<dd>
<p>A formal document that exists (in this context) to help with regulatory compliance.</p>
</dd>
</dl>
</section>
<section class="appendix" id="acknowledgments"><div class="header-wrapper"><h2 id="a-acknowledgments"><bdi class="secno">A. </bdi>Acknowledgments</h2><a class="self-link" href="#acknowledgments" aria-label="Permalink for Appendix A."></a></div>
<p>Additional information about participation in the Sustainable Web Design Community Group (SWD-CG) can be found <a href="https://www.w3.org/community/sustyweb/wiki/Main_Page">within the wiki</a> of the community group.</p>
<section id="participants-of-the-swd-cg-active-in-the-development-of-this-document"><div class="header-wrapper"><h3 id="a-1-participants-of-the-swd-cg-active-in-the-development-of-this-document"><bdi class="secno">A.1 </bdi>Participants of the SWD-CG Active in the Development of This Document</h3><a class="self-link" href="#participants-of-the-swd-cg-active-in-the-development-of-this-document" aria-label="Permalink for Appendix A.1"></a></div>
<p>Alexander Dawson, Francesco Fullone, Ian Jacobs, Neil Clark, Tim Frick, Tzviya Siegman</p>
</section>
</section>
<p role="navigation" id="back-to-top">
<a href="#title"><abbr title="Back to Top">↑</abbr></a>
</p><script id="respec-dfn-panel">(() => {
// @ts-check
if (document.respec) {
document.respec.ready.then(setupPanel);
} else {
setupPanel();
}
function setupPanel() {
const listener = panelListener();
document.body.addEventListener("keydown", listener);
document.body.addEventListener("click", listener);
}
function panelListener() {
/** @type {HTMLElement} */
let panel = null;
return event => {
const { target, type } = event;
if (!(target instanceof HTMLElement)) return;
// For keys, we only care about Enter key to activate the panel
// otherwise it's activated via a click.
if (type === "keydown" && event.key !== "Enter") return;
const action = deriveAction(event);
switch (action) {
case "show": {
hidePanel(panel);
/** @type {HTMLElement} */
const dfn = target.closest("dfn, .index-term");
panel = document.getElementById(`dfn-panel-for-${dfn.id}`);
const coords = deriveCoordinates(event);
displayPanel(dfn, panel, coords);
break;
}
case "dock": {
panel.style.left = null;
panel.style.top = null;
panel.classList.add("docked");
break;
}
case "hide": {
hidePanel(panel);
panel = null;
break;
}
}
};
}
/**
* @param {MouseEvent|KeyboardEvent} event
*/
function deriveCoordinates(event) {
const target = /** @type HTMLElement */ (event.target);
// We prevent synthetic AT clicks from putting
// the dialog in a weird place. The AT events sometimes
// lack coordinates, so they have clientX/Y = 0
const rect = target.getBoundingClientRect();
if (
event instanceof MouseEvent &&
event.clientX >= rect.left &&
event.clientY >= rect.top
) {
// The event probably happened inside the bounding rect...
return { x: event.clientX, y: event.clientY };
}
// Offset to the middle of the element
const x = rect.x + rect.width / 2;
// Placed at the bottom of the element
const y = rect.y + rect.height;
return { x, y };
}
/**
* @param {Event} event
*/
function deriveAction(event) {
const target = /** @type {HTMLElement} */ (event.target);
const hitALink = !!target.closest("a");
if (target.closest("dfn:not([data-cite]), .index-term")) {
return hitALink ? "none" : "show";
}
if (target.closest(".dfn-panel")) {
if (hitALink) {
return target.classList.contains("self-link") ? "hide" : "dock";
}
const panel = target.closest(".dfn-panel");
return panel.classList.contains("docked") ? "hide" : "none";
}
if (document.querySelector(".dfn-panel:not([hidden])")) {
return "hide";
}
return "none";
}
/**
* @param {HTMLElement} dfn
* @param {HTMLElement} panel
* @param {{ x: number, y: number }} clickPosition
*/
function displayPanel(dfn, panel, { x, y }) {
panel.hidden = false;
// distance (px) between edge of panel and the pointing triangle (caret)
const MARGIN = 20;
const dfnRects = dfn.getClientRects();
// Find the `top` offset when the `dfn` can be spread across multiple lines
let closestTop = 0;
let minDiff = Infinity;
for (const rect of dfnRects) {
const { top, bottom } = rect;
const diffFromClickY = Math.abs((top + bottom) / 2 - y);
if (diffFromClickY < minDiff) {
minDiff = diffFromClickY;
closestTop = top;
}
}
const top = window.scrollY + closestTop + dfnRects[0].height;
const left = x - MARGIN;
panel.style.left = `${left}px`;
panel.style.top = `${top}px`;
// Find if the panel is flowing out of the window
const panelRect = panel.getBoundingClientRect();
const SCREEN_WIDTH = Math.min(window.innerWidth, window.screen.width);
if (panelRect.right > SCREEN_WIDTH) {
const newLeft = Math.max(MARGIN, x + MARGIN - panelRect.width);
const newCaretOffset = left - newLeft;
panel.style.left = `${newLeft}px`;
/** @type {HTMLElement} */
const caret = panel.querySelector(".caret");
caret.style.left = `${newCaretOffset}px`;
}
// As it's a dialog, we trap focus.
// TODO: when <dialog> becomes a implemented, we should really
// use that.
trapFocus(panel, dfn);
}
/**
* @param {HTMLElement} panel
* @param {HTMLElement} dfn
* @returns
*/
function trapFocus(panel, dfn) {
/** @type NodeListOf<HTMLAnchorElement> elements */
const anchors = panel.querySelectorAll("a[href]");
// No need to trap focus
if (!anchors.length) return;
// Move focus to first anchor element
const first = anchors.item(0);
first.focus();
const trapListener = createTrapListener(anchors, panel, dfn);
panel.addEventListener("keydown", trapListener);
// Hiding the panel releases the trap
const mo = new MutationObserver(records => {
const [record] = records;
const target = /** @type HTMLElement */ (record.target);
if (target.hidden) {
panel.removeEventListener("keydown", trapListener);
mo.disconnect();
}
});
mo.observe(panel, { attributes: true, attributeFilter: ["hidden"] });
}
/**
*
* @param {NodeListOf<HTMLAnchorElement>} anchors
* @param {HTMLElement} panel
* @param {HTMLElement} dfn
* @returns
*/
function createTrapListener(anchors, panel, dfn) {
const lastIndex = anchors.length - 1;
let currentIndex = 0;
return event => {
switch (event.key) {
// Hitting "Tab" traps us in a nice loop around elements.
case "Tab": {
event.preventDefault();
currentIndex += event.shiftKey ? -1 : +1;
if (currentIndex < 0) {
currentIndex = lastIndex;
} else if (currentIndex > lastIndex) {
currentIndex = 0;
}
anchors.item(currentIndex).focus();
break;
}
// Hitting "Enter" on an anchor releases the trap.
case "Enter":
hidePanel(panel);
break;
// Hitting "Escape" returns focus to dfn.
case "Escape":
hidePanel(panel);
dfn.focus();
return;
}
};
}
/** @param {HTMLElement} panel */
function hidePanel(panel) {
if (!panel) return;
panel.hidden = true;
panel.classList.remove("docked");
}
})()</script><script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script></body></html>