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

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 





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?


  * 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:after {
   content: "\2191";
.diff-chg:after {
   content: "\2195";
.diff-old {
   text-decoration: line-through;
   background-color: #FBB;
.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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:15 UTC