Skip to content

Commit

Permalink
Restores kerning to tables, inheritance for #20
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethormandy committed Nov 11, 2014
1 parent c4a2e28 commit cf3d78a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
17 changes: 10 additions & 7 deletions normalize-opentype.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
text-shadow: inherit;
/* 1. */ }

html, body {
html, body, table {
-webkit-font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
-moz-font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
Expand Down Expand Up @@ -115,11 +115,14 @@ input[type="color"], input[type="date"], input[type="datetime"], input[type="dat
/* Tables
========================================================================== */
/**
* 1. Turns on tabular, lining numerals and slashed zero
* Turns off kerning, as it could impact tabular numerals
* 1. Resets tables to the same settings as the body.
* 2. Turns on tabular, lining numerals and slashed zero
*/
tbody {
-webkit-font-feature-settings: "kern" 0, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1;
-moz-font-feature-settings: "kern" 0, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1;
font-feature-settings: "kern" 0, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1;
table {
/* 1.*/ }

tbody, caption {
-webkit-font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1;
-moz-font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1;
font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1;
/* 1. */ }
13 changes: 9 additions & 4 deletions normalize-opentype.scss
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,15 @@ input[type="week"] {
========================================================================== */

/**
* 1. Turns on tabular, lining numerals and slashed zero
* Turns off kerning, as it could impact tabular numerals
* 1. Resets tables to the same settings as the body.
* 2. Turns on tabular, lining numerals and slashed zero
*/

tbody {
font-feature-settings: "kern" 0, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1; /* 1. */
table {
@extend body; /* 1.*/
}

tbody,
caption {
font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 0, "tnum" 1, "onum" 0, "lnum" 1, "zero" 1; /* 1. */
}

0 comments on commit cf3d78a

Please sign in to comment.