W3C home > Mailing lists > Public > spec-prod@w3.org > April to June 2010

editors draft stylesheet: diff marking

From: David Carlisle <davidc@nag.co.uk>
Date: Thu, 03 Jun 2010 09:52:02 +0100
Message-ID: <4C076D32.6050209@nag.co.uk>
To: Spec Prod <spec-prod@w3.org>
Cc: mike@w3.org
  http://www.w3.org/StyleSheets/TR/W3C-ED.css

has had additional rules for diff marking added.
unfortunately these conflict badly with (at least) html table markup, if 
you put class="diff-chg" on a table row then browsers
lose the alignment of entries, because of the css added content.

Firefox and Opera shift all entries one column to the right, thus 
placing them under the wrong heading.
IE loses the alignment completely and places all entries into the first 
column.

Compare

http://monet.nag.co.uk/~dpc/draft-spec/appendixc-d.html#oper-dict.entries-table

and

http://monet.nag.co.uk/~dpc/draft-spec/appendixc.html#oper-dict.entries-table

Could this section be removed so that the editors draft is, by default, 
like the main draft, apart from the banner image at the top?

David

/******************************************************************
  * MikeSmith (2008-05-24)
  * Because our current online HTML diff tool[1] doesn't output
  * colored diffs, I the following rules for .diff-* classes so
  * I can get colored output in HTML diffs for Editor's Drafts.
  * [1] http://www.w3.org/2007/10/htmldiff
  ******************************************************************/
.diff-new {
   background-color: yellow;
}
.diff-chg {
   background-color: lime;
}
.diff-new:before,
.diff-new:after {
   content: "\2191";
}
.diff-chg:before,
.diff-chg:after {
   content: "\2195";
}
.diff-old {
   text-decoration: line-through;
   background-color: #FBB;
}
.diff-old:before,
.diff-old:after {
   content: "\2193";
}
/* end MikeSmith (2008-05-24) additions */


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
Received on Thursday, 3 June 2010 08:52:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:17 GMT