Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
ideas:content-formatting [2008/01/14 13:54] – Added one example itpastornideas:content-formatting [2008/01/14 13:59] – Fuller example itpastorn
Line 57: Line 57:
  
 **number-format**   that draws its ideas from xsl:number-format **number-format**   that draws its ideas from xsl:number-format
 +
  
  
Line 70: Line 71:
     grouping-separator: " ";     grouping-separator: " ";
     decimal-separator : ","     decimal-separator : ","
 +  }
 +  @decimal-format creditcard {
 +    grouping-separator: " ";
   }   }
   @media all {   @media all {
Line 86: Line 90:
     td.sweprice {     td.sweprice {
         number-format: "### ##0,00", "sweprice";         number-format: "### ##0,00", "sweprice";
 +    }
 +    .creditcard {
 +        number-format: "#### ####", "creditcard";
     }     }
     td.sweprice::after {     td.sweprice::after {
Line 95: Line 102:
         Grouping both unnecessary and unwanted, words like         Grouping both unnecessary and unwanted, words like
        "billion", "million" and "thousand" should be spelled out        "billion", "million" and "thousand" should be spelled out
 +       Those words should only be spelled out by a screen reader when
 +       grouping is not specified.
     */      */ 
     td.price {     td.price {
Line 107: Line 116:
     td.sweprice::after {     td.sweprice::after {
         content: " Swedish crowns";         content: " Swedish crowns";
 +    }
 +    .creditcard {
 +        /* Speak numbers in pairs, no nead to hear the word "thousand" */
 +        number-format: "## ## ## ##", "creditcard";
     }     }
   }   }
 
ideas/content-formatting.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki