HTML and CSS Reference
In-Depth Information
"ss05"
BROWSER SUPPORT
Recent versions of the major browsers support some parts of CSS3
advanced font control features using vendor-specific extensions. The
following example shows a complete code listing that enables standard
and discretionary ligatures cross-browser:
-moz-font-feature-settings: "liga", "dlig";
-moz-font-feature-settings: "liga=1, dlig=1";
-ms-font-feature-settings: "liga", "dlig";
-webkit-font-feature-settings: "liga", "dlig";
font-feature-settings: "liga", "dlig";
Note that Firefox supported an older version of the spec from
version 4 onwards. It supports the current syntax from version 14
onwards. In order to support both old and new Firefox, you must put
the old syntax second. Newer versions will ignore the old syntax,
but the old versions will attempt to apply the new syntax and fail.
The font-feature-settings property is intended to be
used only for low level control. The final standard will
include more readable versions for all the most common
options. The following table indicates how the previous
examples map onto the properties currently in the spec.
font-feature-settings
Standard CSS3 properties and values
font-feature-settings:
"liga";
font-variant-ligatures:
common-ligatures;
font-feature-settings:
"liga" 0,
dlig";
font-variant-ligatures:
no-common-ligatures
additional-ligatures;
font-feature-settings:
"tnum";
font-variant-numeric:
tabular-nums;
font-feature-settings:
"tnum",
"lnum";
font-variant-numeric:
tabular-nums
lining-nums;
 
Search WWH ::




Custom Search