svg2: Try moving conformance requirements styling to an alternate sty...

details:   https://svgwg.org/hg/svg2/rev/efbf49ab7a9b
branches:  
changeset: 354:efbf49ab7a9b
user:      Cameron McCormack <cam@mcc.id.au>
date:      Wed Aug 22 12:44:01 2012 +1000
description:
Try moving conformance requirements styling to an alternate style sheet.

diffstat:

 master/color.html                     |  19 ++++++-------------
 master/style/default_requirements.css |  23 +++++++++++++++++++++++
 master/style/default_svg.css          |  14 --------------
 3 files changed, 29 insertions(+), 27 deletions(-)

diffs (93 lines):

diff --git a/master/color.html b/master/color.html
--- a/master/color.html
+++ b/master/color.html
@@ -91,29 +91,22 @@ ICC-based color specification is provide
     <p>Implementations of SVG 2 are required to color-manage all images. The embedded profile is used. If there is no embedded profile, sRGB is assumed, for RGB images.</p>
       
     <p class="issue">Define processing for untagged greyscale and CMYK images. Could be a default profile, or an 'explicitly undefined' with a warning to avoid untagged non-RGB images when authoring.</p>
 
     <p class="issue">References to "SVG 2 User Agent" might need to be replaced
     with one of the conformance classes listed in the <a href="conform.html">Conformance</a>
     appendix.</p>
     
-    <div class="requirement" id="assert_taggedImages">
-      <p>
-        If a referenced image contains color profile information, a
-        SVG 2 User Agent MUST use that profile to render the image
-      </p>
-    </div>
-    
-    <div class="requirement" id="assert_untaggedImages">
-      <p>
-        If a referenced image contains no color profile information, a
-        SVG 2 User Agent MUST use the sRGB profile to render the image
-      </p>
-    </div>
+    <p><span class="requirement" id="assert_taggedImages">If a referenced image
+    contains color profile information, a SVG 2 User Agent MUST use that profile
+    to render the image.</span>
+    <span class="requirement" id="assert_untaggedImages">Otherwise,
+    if a referenced image contains no color profile information, a
+    SVG 2 User Agent MUST use the sRGB profile to render the image.</span></p>
     
 
     <h2 id="Color_syntax">Color syntax</h2>
     
     
     <h3 id="sRGBcolor">
       sRGB colors</h3>
     
diff --git a/master/style/default_requirements.css b/master/style/default_requirements.css
new file mode 100644
--- /dev/null
+++ b/master/style/default_requirements.css
@@ -0,0 +1,23 @@
+@import url(default_no_issues.css);
+
+/* Conformance requirement */
+
+.requirement {
+  display: block;
+  margin-top: 1em;
+  padding: 0.5em;
+  border-left-width: 0.5em;
+  border-left-style: solid;
+  border-color: #007070;
+  background: #A0E0E0;
+}
+
+.requirement:before {
+  content: "Conformance requirement " attr(id);
+  padding-right: 1em;
+  color: #007070;
+}
+
+.requirement > p:first-child {
+  margin-top: 0
+}
diff --git a/master/style/default_svg.css b/master/style/default_svg.css
--- a/master/style/default_svg.css
+++ b/master/style/default_svg.css
@@ -331,22 +331,8 @@ table.PathDataTable td,
 table.PathDataTable th { padding: 5px; border-style: inset; border-width: 1px }
 
 .colorpatch { width: 14px; height: 14px; border: 1px solid black; }
 
 .eltdef { border-left: 0.5em solid #52A7E0 !important; background: #E9F4FB !important; }
 .eltdef td > p:first-child { margin-top: 0 }
 .eltdef th { white-space: nowrap }
 .eltdef pre.idl { margin: 0; padding: 0; background: none }
-
-/* Conformance requirement */
-
-div.requirement {
-  padding: 0.5em;
-  border-left-width: 0.5em;
-  border-left-style: solid;
-  border-color: #007070;
-  background: #A0E0E0;
-}
-
-div.requirement > p {
-  margin-top: 0
-}

Received on Wednesday, 22 August 2012 02:44:51 UTC