- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Mon, 27 May 2013 22:15:20 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2-tools/rev/7dc3ec585766
branches:
changeset: 81:7dc3ec585766
user: Cameron McCormack <cam@mcc.id.au>
date: Tue May 28 15:15:10 2013 +1000
description:
Fix bug preventing SVG 2 maturity background colours from displaying.
diffstat:
publish/processing.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (22 lines):
diff --git a/publish/processing.js b/publish/processing.js
--- a/publish/processing.js
+++ b/publish/processing.js
@@ -42,17 +42,17 @@ exports.insertStyleSheets = function(con
n.getAttribute('media') != 'print') {
n.parentNode.removeChild(n);
}
}
var isSVG2 = conf.shortTitle == 'SVG 2';
// Add a link to the default style sheet.
doc.head.appendChild(utils.parse('<link rel="stylesheet" title="Default" href="{{href}}" type="text/css" media="screen"/>',
- { href: conf.maturity == 'ED' && !isSVG2 ? 'style/default_svg.css' : 'style/default_no_maturity.css' }));
+ { href: conf.maturity == 'ED' && isSVG2 ? 'style/default_svg.css' : 'style/default_no_maturity.css' }));
if (isSVG2) {
// Add a link to alternate style sheet to hide background colors
// if this is an Editor's Draft, or to show them otherwise.
doc.head.appendChild(utils.parse('<link rel="alternate stylesheet" title="{{title}}" href="{{href}}" type="text/css" media="screen"/>',
{ href: conf.maturity == 'ED' ? 'style/default_no_maturity.css' : 'style/default_svg.css',
title: conf.maturity == 'ED' ? 'Only annotations for publication' : 'All annotations' }));
}
Received on Tuesday, 28 May 2013 05:15:52 UTC