|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: changes.src,v 2.31 2002-08-09 13:03:27 bbos Exp $ --> |
| 3 | +<!-- $Id: changes.src,v 2.32 2002-11-28 20:53:54 bbos Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Appendix B: Changes</TITLE> |
|
14 | 14 | <P>CSS 2.1 is an updated version of CSS2. The changes between the CSS2 |
15 | 15 | specification (see [[CSS2]]) and this specification fall into four |
16 | 16 | groups: known errors, typographical errors, clarifications, and |
17 | | -changes.</P> |
| 17 | +changes. Typographical errors are not listed here.</P> |
| 18 | + |
| 19 | + |
| 20 | +<h3><a name="changes">Changes</a></h3> |
| 21 | + |
| 22 | +<h4 id="s-6-4-3"><a href="cascade.html#specificity">Section 6.4.3 |
| 23 | +Calculating a selector's specificity</a></h4> |
| 24 | + |
| 25 | +<p>The "style" attribute now has a higher specificity than any style |
| 26 | +rule. |
| 27 | + |
| 28 | +<h4 id="s-6-4-4"><a href="cascade.html#q12">Section 6.4.4 Precedence |
| 29 | +of non-CSS presentational hints</a></h4> |
| 30 | + |
| 31 | +<p>If presentational hints from other sources than CSS are taken into |
| 32 | +account by a UA, it must treat them as having the same weight as the |
| 33 | +user agent's default style sheet. |
| 34 | + |
| 35 | +<h4 id="visuren"><a href="visuren.html">Chapter 9 Visual formatting |
| 36 | +model</a></h4> |
| 37 | + |
| 38 | +<p>The value 'compact' for 'display' does not exist in CSS 2.1. |
| 39 | +'Inline-block' is added. |
| 40 | + |
| 41 | +<h4 id="s-10-3-7"><a |
| 42 | +href="visudet.html#abs-non-replaced-width">Section 10.3.7 Absolutely |
| 43 | +positioned, non-replaced elements</a></h4> |
| 44 | + |
| 45 | +<p>Absolutely positioned elements can now "shrink-wrap" their |
| 46 | +contents: |
| 47 | + |
| 48 | +<p>When both 'width' and 'right' (or 'width' and 'left') are 'auto', |
| 49 | +the element's computed width is the width of the contents (using an |
| 50 | +algorithm similar to that for table cells) and then 'right' (or |
| 51 | +'left') is solved. CSS2 incorrectly said that 'right' (or 'left') was |
| 52 | +set to 0 in that case, and then width was solved. |
| 53 | + |
| 54 | +<h4 id="s-10-6-4"><a |
| 55 | +href="visudet.html#abs-non-replaced-height">Section 10.6.4 Absolutely |
| 56 | +positioned, non-replaced elements</a></h4> |
| 57 | + |
| 58 | +<p>Like normal-flow block-level elements, absolutely positioned |
| 59 | +elements by default take on the height of their contents |
| 60 | +("shrink-wrap"). If 'height' and 'bottom' are both 'auto', the |
| 61 | +computed value of 'height' is set to the height of the contents and |
| 62 | +then 'bottom' is solved. CSS2 incorrectly said the reverse: 'bottom' |
| 63 | +was set to 0 and then height was solved. |
| 64 | + |
| 65 | +<h4 id="x88"><a href="visufx.html#clipping">Section 11.1.2</a></h4> |
| 66 | + |
| 67 | +<p>While CSS2 specified that values of "rect()" give offsets from the |
| 68 | +respective sides of the box, current implementations interpret values |
| 69 | +with respect to the top and left edges for <em>all</em> four values |
| 70 | +(top, right, bottom, and left). This is now the correct |
| 71 | +interpretation. |
| 72 | + |
| 73 | +<h4 id="s-17-4-1"><a href="tables.html#q6">17.4.1 Caption position |
| 74 | +and alignment</a></h4> |
| 75 | + |
| 76 | +<p>The 'left' and 'right' values on 'caption-side' have been removed. |
| 77 | + |
| 78 | +<h4 id="s-17-5-4"><a href="tables.html#column-alignment">17.5.4 |
| 79 | +Horizontal alignment in a column</a></h4> |
| 80 | + |
| 81 | +<p>The <string> value for 'text-align' is not part of |
| 82 | +CSS 2.1. |
| 83 | + |
| 84 | +<h4 id="s-17-6"><a href="tables.html#borders">Section 17.6 |
| 85 | +Borders</a></h4> |
| 86 | + |
| 87 | +<p>Several popular browsers assume an initial value for |
| 88 | +'border-collapse' of 'separate' rather than 'collapse' or exhibit |
| 89 | +behavior that is close to that value, even if they do not actually |
| 90 | +implement the CSS table model. 'Separate' is now the initial value. |
| 91 | + |
| 92 | +<h4 id="s-12"><a href="generate.html">Chapter 12 Generated content, |
| 93 | +automatic numbering, and lists</a></h4> |
| 94 | + |
| 95 | +<p>The 'marker' value for 'display' does not exist in CSS 2.1 |
| 96 | + |
| 97 | +<h4 id="s-12-2"><a href="generate.html#propdef-content">Section 12.2 |
| 98 | +The 'content' property</a></h4> |
| 99 | + |
| 100 | +<p>The '<uri>' value is dropped. |
| 101 | + |
| 102 | +<h4 id="s-15"><a href="fonts.html">Chapter 15 Fonts</a></h4> |
| 103 | + |
| 104 | +<p>The 'font-stretch' and 'font-size-adjust' properties don't exist in |
| 105 | +CSS 2.1. |
| 106 | + |
| 107 | +<p>Font descriptors and the '@font-face' declaration don't exist in |
| 108 | +CSS 2.1. |
| 109 | + |
| 110 | +<h4 id="s-18-1"><a href="ui.html#cursor-props">Section 18.1 Cursors: |
| 111 | +the 'cursor' property</a></h4> |
| 112 | + |
| 113 | +<p>The value 'progress' is added. |
| 114 | + |
| 115 | +<h4 id="text"><a href="text.html">Chapter 16 Text</a></h4> |
| 116 | + |
| 117 | +<p>The 'text-shadow' property is not in CSS 2.1. |
| 118 | + |
| 119 | +<h4 id="a-a"><a href="aural.html">Appendix A. Aural style |
| 120 | +sheets</a></h4> |
| 121 | + |
| 122 | +<p>Chapter 19 on aural style sheets has become appendix A and is not |
| 123 | +normative in CSS 2.1. Related units (deg, grad, rad, ms, s, Hz, |
| 124 | +kHz) are also moved to this appendix, as is the 'speak-header' |
| 125 | +property from the "tables" chapter. |
| 126 | + |
| 127 | +<h4 id="a-a-6"><a href="aural.html#"> |
| 128 | + |
| 129 | + |
| 130 | +<h4 id="page"><a href="page.html">Page breaks</a></h4> |
| 131 | + |
| 132 | +<p>Only the 'page-break-before', 'page-break-after' and |
| 133 | +'page-break-inside' properties are in CSS 2.1. |
| 134 | + |
| 135 | +<h4 id="other">Other</h4> |
| 136 | + |
| 137 | +<p>The former informative appendix C, "Implementation and |
| 138 | +performance notes for fonts," is left out of CSS 2.1. |
| 139 | + |
| 140 | + |
| 141 | + |
18 | 142 |
|
19 | 143 | <h3><a name="known-errors">Errors</a></h3> |
20 | 144 |
|
@@ -352,6 +476,14 @@ borders. Cells have padding as well. Internal table elements do not |
352 | 476 | have margins. |
353 | 477 | </blockquote> |
354 | 478 |
|
| 479 | +<h4 id="s-17-5-1"><a href="tables.html#table-layers">Section 17.5.1 |
| 480 | +Table layers and transparency</a></h4> |
| 481 | + |
| 482 | +<p>The rows and columns only cover the whole table in the collapsed |
| 483 | +borders model, not in the separated borders model. The points 2, 3, 4 |
| 484 | +and 5 have been corrected to define the area covered by rows, columns, |
| 485 | +row groups and column groups in terms of the cells they cover. |
| 486 | + |
355 | 487 | <h4 id="x28"><a href="tables.html#separated-borders">Section 17.6.1 The |
356 | 488 | separated borders model</a></h4> |
357 | 489 |
|
@@ -756,8 +888,26 @@ transparency</a></h4> |
756 | 888 | "empty" cells are transparent' to: |
757 | 889 |
|
758 | 890 | <blockquote> |
759 | | -<p>These "empty" cells are transparent if the value of their 'empty-cells' |
760 | | -property is 'hide'</blockquote> |
| 891 | +<p>If the value of their 'empty-cells' property is 'hide' |
| 892 | +these "empty" cells are transparent through the cell, row, row group, |
| 893 | +column, and column group backgrounds, letting the table background |
| 894 | +show through.</blockquote> |
| 895 | + |
| 896 | +<p>To remove ambiguity about the position of backgrounds on rows and |
| 897 | +column, the following paragraph was added after point 6: |
| 898 | + |
| 899 | +<blockquote><p>the edges of the rows, columns, row groups and column |
| 900 | +groups in the <a href="#collapsing-borders">collapsing borders |
| 901 | +model</a> concide with the hypothetical grid lines on which the |
| 902 | +borders of the cells are centered. (And thus, in this model, the rows |
| 903 | +together exactly cover the table, leaving no gaps; ditto for the |
| 904 | +columns.) In the <a href="#separated-borders">separated borders |
| 905 | +model,</a> the edges coincide with the <a |
| 906 | +href="box.html#border-edge">border edges</a> of cells. (And thus, in |
| 907 | +this model, there may be gaps between the rows and columns, |
| 908 | +corresponding to the <span |
| 909 | +class="propinst-border-spacing">'border-spacing'</span> |
| 910 | +property.)</blockquote> |
761 | 911 |
|
762 | 912 | <p>At the end of the section |
763 | 913 | added the following paragraph: |
@@ -787,6 +937,16 @@ do apply. Therefore a table can be centered using left and right |
787 | 937 | <p>The WG may introduce ways of automatically making tables fit their |
788 | 938 | containing blocks in CSS3. |
789 | 939 |
|
| 940 | +<h4 id="s-17-6-1"><a href="tables.html#separated-borders">17.6.1 The separated borders model</a></h4> |
| 941 | + |
| 942 | +<p>Added clarification about alignment of row/column backgrounds. The |
| 943 | +sentence "This space is filled with the background of the table |
| 944 | +element" was replaced by: |
| 945 | + |
| 946 | +<blockquote>In this space, the row, column, row group, and column |
| 947 | +group backgrounds are invisible, allowing the table background to show |
| 948 | +through.</blockquote> |
| 949 | + |
790 | 950 | <h4 id="x79"><a href="tables.html#empty-cells">Borders around empty cells: the |
791 | 951 | 'empty-cells' property</a></h4> |
792 | 952 |
|
@@ -829,123 +989,6 @@ is considered an error in CSS2. |
829 | 989 | <p>The entry for "[URI]" referred to a draft that has become an RFC. |
830 | 990 | The entry has been changed. |
831 | 991 |
|
832 | | -<h3><a name="changes">Changes</a></h3> |
833 | | - |
834 | | -<h4 id="s-6-4-3"><a href="cascade.html#specificity">Section 6.4.3 |
835 | | -Calculating a selector's specificity</a></h4> |
836 | | - |
837 | | -<p>The "style" attribute now has a higher specificity than any style |
838 | | -rule. |
839 | | - |
840 | | -<h4 id="s-6-4-4"><a href="cascade.html#q12">Section 6.4.4 Precedence |
841 | | -of non-CSS presentational hints</a></h4> |
842 | | - |
843 | | -<p>If presentational hints from other sources than CSS are taken into |
844 | | -account by a UA, it must treat them as having the same weight as the |
845 | | -user agent's default style sheet. |
846 | | - |
847 | | -<h4 id="visuren"><a href="visuren.html">Chapter 9 Visual formatting |
848 | | -model</a></h4> |
849 | | - |
850 | | -<p>The value 'compact' for 'display' does not exist in CSS 2.1. |
851 | | -'Inline-block' is added. |
852 | | - |
853 | | -<h4 id="s-10-3-7"><a |
854 | | -href="visudet.html#abs-non-replaced-width">Section 10.3.7 Absolutely |
855 | | -positioned, non-replaced elements</a></h4> |
856 | | - |
857 | | -<p>Absolutely positioned elements can now "shrink-wrap" their |
858 | | -contents: |
859 | | - |
860 | | -<p>When both 'width' and 'right' (or 'width' and 'left') are 'auto', |
861 | | -the element's computed width is the width of the contents (using an |
862 | | -algorithm similar to that for table cells) and then 'right' (or |
863 | | -'left') is solved. CSS2 incorrectly said that 'right' (or 'left') was |
864 | | -set to 0 in that case, and then width was solved. |
865 | | - |
866 | | -<h4 id="s-10-6-4"><a |
867 | | -href="visudet.html#abs-non-replaced-height">Section 10.6.4 Absolutely |
868 | | -positioned, non-replaced elements</a></h4> |
869 | | - |
870 | | -<p>Like normal-flow block-level elements, absolutely positioned |
871 | | -elements by default take on the height of their contents |
872 | | -("shrink-wrap"). If 'height' and 'bottom' are both 'auto', the |
873 | | -computed value of 'height' is set to the height of the contents and |
874 | | -then 'bottom' is solved. CSS2 incorrectly said the reverse: 'bottom' |
875 | | -was set to 0 and then height was solved. |
876 | | - |
877 | | -<h4 id="x88"><a href="visufx.html#clipping">Section 11.1.2</a></h4> |
878 | | - |
879 | | -<p>While CSS2 specified that values of "rect()" give offsets from the |
880 | | -respective sides of the box, current implementations interpret values |
881 | | -with respect to the top and left edges for <em>all</em> four values |
882 | | -(top, right, bottom, and left). This is now the correct |
883 | | -interpretation. |
884 | | - |
885 | | -<h4 id="s-17-4-1"><a href="tables.html#q6">17.4.1 Caption position |
886 | | -and alignment</a></h4> |
887 | | - |
888 | | -<p>The 'left' and 'right' values on 'caption-side' have been removed. |
889 | | - |
890 | | -<h4 id="s-17-5-4"><a href="tables.html#column-alignment">17.5.4 |
891 | | -Horizontal alignment in a column</a></h4> |
892 | | - |
893 | | -<p>The <string> value for 'text-align' is not part of |
894 | | -CSS 2.1. |
895 | | - |
896 | | -<h4 id="s-17-6"><a href="tables.html#borders">Section 17.6 |
897 | | -Borders</a></h4> |
898 | | - |
899 | | -<p>Several popular browsers assume an initial value for |
900 | | -'border-collapse' of 'separate' rather than 'collapse' or exhibit |
901 | | -behavior that is close to that value, even if they do not actually |
902 | | -implement the CSS table model. 'Separate' is now the initial value. |
903 | | - |
904 | | -<h4 id="s-12"><a href="generate.html">Chapter 12 Generated content, |
905 | | -automatic numbering, and lists</a></h4> |
906 | | - |
907 | | -<p>The 'marker' value for 'display' does not exist in CSS 2.1 |
908 | | - |
909 | | -<h4 id="s-12-2"><a href="generate.html#propdef-content">Section 12.2 |
910 | | -The 'content' property</a></h4> |
911 | | - |
912 | | -<p>The values '<uri>' and <counter> are dropped. |
913 | | - |
914 | | -<h4 id="s-15"><a href="fonts.html">Chapter 15 Fonts</a></h4> |
915 | | - |
916 | | -<p>The 'font-stretch' and 'font-size-adjust' properties don't exist in |
917 | | -CSS 2.1. |
918 | | - |
919 | | -<p>Font descriptors and the '@font-face' declaration don't exist in |
920 | | -CSS 2.1. |
921 | | - |
922 | | -<h4 id="s-18-1"><a href="ui.html#cursor-props">Section 18.1 Cursors: |
923 | | -the 'cursor' property</a></h4> |
924 | | - |
925 | | -<p>The value 'progress' is added. |
926 | | - |
927 | | -<h4 id="text"><a href="text.html">Chapter 16 Text</a></h4> |
928 | | - |
929 | | -<p>The 'text-shadow' property is not in CSS 2.1. |
930 | | - |
931 | | -<h4 id="a-a"><a href="aural.html">Appendix A. Aural style |
932 | | -sheets</a></h4> |
933 | | - |
934 | | -<p>Chapter 19 on aural style sheets has become appendix A and is not |
935 | | -normative in CSS 2.1. Related units (deg, grad, rad, ms, s, Hz, |
936 | | -kHz) are also moved to this appendix, as is the 'speak-header' |
937 | | -property from the "tables" chapter. |
938 | | - |
939 | | -<h4 id="page"><a href="page.html">Page breaks</a></h4> |
940 | | - |
941 | | -<p>Only the 'page-break-before', 'page-break-after' and |
942 | | -'page-break-inside' properties are in CSS 2.1. |
943 | | - |
944 | | -<h4 id="other">Other</h4> |
945 | | - |
946 | | -<p>The former informative appendix C, "Implementation and |
947 | | -performance notes for fonts," is left out of CSS 2.1. |
948 | | - |
949 | 992 |
|
950 | 993 |
|
951 | 994 |
|
|
0 commit comments