Skip to content

Commit

Permalink
Update "changes-since" styles
Browse files Browse the repository at this point in the history
Add a "since August 2018 CR" style (add the class `cr2` in addition to `changes-since-cr1`), and remove the only two uses of this style in the main text; the annotations are only consistently used in the Changes appendix.
  • Loading branch information
AmeliaBR committed Aug 8, 2018
1 parent 06b8b06 commit df0dbd4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion master/changes.html
Expand Up @@ -21,7 +21,7 @@ <h1>Changes from SVG 1.1</h1>

<p>This appendix summarizes the changes that have been made since the
<a href="https://www.w3.org/TR/2011/REC-SVG11-20110816/">SVG 1.1 Second Edition Recommendation</a>.
Changes made since the last <a href="https://www.w3.org/TR/2015/WD-SVG2-20150709/">SVG 2 Working Draft</a> are highlighted.
Changes made since the initial <a href="https://www.w3.org/TR/2016/CR-SVG2-20160915/">SVG 2 Candidate Recommendation</a> are highlighted.
</p>

<h2 id="editorial">Editorial changes</h2>
Expand Down
2 changes: 0 additions & 2 deletions master/struct.html
Expand Up @@ -3287,11 +3287,9 @@ <h3 id="InterfaceSVGUseElementShadowRoot">Interface SVGUseElementShadowRoot</h3>
However, the tree rooted at this node
is entirely read-only from the perspective of author scripts.</p>

<div class='changed-since-cr1'>
<pre class="idl">[Exposed=Window]
interface <b>SVGUseElementShadowRoot</b> : <a>ShadowRoot</a> {
};</pre>
</div>

<h3 id="InterfaceSVGElementInstance" data-dfn-type="interface" data-lt="SVGElementInstance">Mixin SVGElementInstance</h3>

Expand Down
33 changes: 9 additions & 24 deletions master/style/svg.css
Expand Up @@ -262,44 +262,29 @@ table > caption { caption-side: bottom }
.syntax { font-weight: bold; font-size: 80%; }
a.html { color: orangered; }

/* temporary styles for use while the specification is in development.
* Now we're in CR, we only need to mark up changes since last CR.
* Working group review will happen in Pull Requests.
* Suggest just using this class on block level elements rather than marking
* up individial word/sentence changes within a block.
/* Now we're in CR, most working group review will happen in Pull Requests.
* But changes still need to be noted in the Changes appendix.
* Wrap new changes in a <div> with the `changed-since-cr1` class.
* Add `cr2` class for changes since August re-publication.
*/

.changed-since-cr1 {
/* Reviewed by WG in a PR, ready for wider review. */
background-color: #FBFBB6 !important;
}

h1.changed-since-cr1,
h2.changed-since-cr1,
h3.changed-since-cr1,
.changed-since-cr1 h1,
.changed-since-cr1 h2:not(.contents):not(.minitoc),
.changed-since-cr1 h3,
div.changed-since-cr1 {
margin-left: -16px;
margin-right: -16px;
padding-left: 16px;
padding-right: 16px;
}

div.changed-since-cr1 {
border-radius: 1em 0 0 0;
}

div.changed-since-cr1::before {
content: ' Changed since September 15 2016 CR ';
.changed-since-cr1::before {
content: ' Changed since 15 September 2016 CR ';
display: inline-block;
margin-left: -16px;
padding-left: 2em;
padding-right: 2em;
background-color: orange !important;
border-radius: 1em 0;
}
.changed-since-cr1.since-cr2::before {
content: ' Changed since 7 August 2018 CR ';
}


/* XXX styles below to be removed once attribute definition tables in
Expand Down
2 changes: 1 addition & 1 deletion master/types.html
Expand Up @@ -242,7 +242,7 @@ <h3 id="InterfaceSVGElement">Interface SVGElement</h3>
<div class="note"><p>This attribute is deprecated and may be removed in a
future version of this specification. Authors are advised to use
Element.classList intead.</p>
<p class='changed-since-cr1'>
<p>
The <a href="types.html#__svg__SVGElement__className">className</a>
attribute on <a>SVGElement</a> overrides the correspond attribute on
<a>Element</a>, following the WebIDL rules for
Expand Down

0 comments on commit df0dbd4

Please sign in to comment.