|
2 | 2 | Title: CSS Text Decoration Module Level 4 |
3 | 3 | Shortname: css-text-decor |
4 | 4 | Level: 4 |
5 | | -Status: FPWD |
| 5 | +Status: ED |
6 | 6 | Date: 2018-03-13 |
7 | 7 | Prepare for TR: true |
8 | 8 | Work Status: Exploring |
@@ -30,6 +30,81 @@ spec:css-text-3; type:dfn; text:character |
30 | 30 | <h2 id="line-decoration"> |
31 | 31 | Additional Controls for Line Decorations</h2> |
32 | 32 |
|
| 33 | +<h3 id="text-decoration-line-property"> |
| 34 | +Text Decoration Lines: the 'text-decoration-line' property</h3> |
| 35 | + |
| 36 | + <pre class="propdef"> |
| 37 | + Name: text-decoration-line |
| 38 | + Value: none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error |
| 39 | + Initial: none |
| 40 | + Inherited: no (but see prose, above) |
| 41 | + </pre> |
| 42 | + |
| 43 | + Specifies what line decorations, if any, are added to the element. |
| 44 | + Values have the following meanings:</p> |
| 45 | + |
| 46 | + <dl> |
| 47 | + <dt><dfn value for="text-decoration-line">none</dfn> |
| 48 | + <dd> |
| 49 | + Neither produces nor inhibits text decoration. |
| 50 | + |
| 51 | + <dt><dfn value for="text-decoration-line">underline</dfn> |
| 52 | + <dd> |
| 53 | + Each line of text is underlined. |
| 54 | + |
| 55 | + <dt><dfn value for="text-decoration-line">overline</dfn> |
| 56 | + <dd> |
| 57 | + Each line of text has a line over it |
| 58 | + (i.e. on the opposite side from an underline). |
| 59 | + |
| 60 | + <dt><dfn value for="text-decoration-line">line-through</dfn> |
| 61 | + <dd> |
| 62 | + Each line of text has a line through the middle. |
| 63 | + |
| 64 | + <dt><dfn value for="text-decoration-line">blink</dfn> |
| 65 | + <dd> |
| 66 | + The text blinks (alternates between visible and invisible). |
| 67 | + Conforming user agents may simply not blink the text. |
| 68 | + Note that not blinking the text is one technique to satisfy |
| 69 | + <a href="https://www.w3.org/TR/UAAG/guidelines.html#tech-on-off-blinking-text">checkpoint 3.3 of WAI-UAAG</a>. |
| 70 | + This value is <strong>deprecated</strong> |
| 71 | + in favor of Animations [[CSS3-ANIMATIONS]]. |
| 72 | + |
| 73 | + <dt><dfn value for="text-tecoration-line">spelling-error</dfn> |
| 74 | + <dd> |
| 75 | + This value indicates the type of text decoration |
| 76 | + used by the User Agent to highlight spelling mistakes. |
| 77 | + Its appearance is UA-defined, |
| 78 | + and may be platform-dependent. |
| 79 | + <span class=note>It is often rendered as a red wavy underline.</span> |
| 80 | + |
| 81 | + <dt><dfn value for="text-decoration-line">grammar-error</dfn> |
| 82 | + <dd> |
| 83 | + This value indicates the type of text decoration |
| 84 | + used by the User Agent to highlight grammar mistakes. |
| 85 | + Its appearance is UA defined, |
| 86 | + and may be platform-dependent. |
| 87 | + <span class=note>It is often rendered as a green wavy underline.</span> |
| 88 | + </dl> |
| 89 | + |
| 90 | + Note: In <a>vertical writing modes</a>, |
| 91 | + 'text-underline-position' can cause the underline and overline to switch sides. |
| 92 | + This allows the position of underlines to key off of language-specific preferences |
| 93 | + automatically. |
| 94 | + |
| 95 | + Since ''spelling-error'' and ''grammar-error'' decorations are entirely UA-defined, |
| 96 | + the UA <em>may</em> disregard |
| 97 | + the other <a>sub-properties</a> of 'text-decoration', |
| 98 | + as well any other properties typically affecting the appearance of line decorations |
| 99 | + (such as 'text-underline-position', 'color', 'stroke', or 'fill') |
| 100 | + when rendering these decorations. |
| 101 | + However, |
| 102 | + to the extent that honoring any of these properties |
| 103 | + would be meaningful and practical |
| 104 | + given the UA's chosen rendering, |
| 105 | + the UA <em>should</em> apply them |
| 106 | + as modifications to its default styling. |
| 107 | + |
33 | 108 | <h3 id="text-decoration-width-property"> |
34 | 109 | Text Decoration Line Thickness: the 'text-decoration-width' property</h3> |
35 | 110 |
|
|
0 commit comments