39
39
40
40
< h1 > CSS Line Grid Module</ h1 >
41
41
42
- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 14 May 2011</ h2 >
42
+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 21 May 2011</ h2 >
43
43
44
44
< dl >
45
45
< dt > This version:
46
46
47
- < dd > < a href ="http://www.w3.org/TR/2011/ED-unknown-shortname-20110514 / ">
48
- http://www.w3.org/TR/2011/ED-unknown-shortname-20110514 </ a > <!--
47
+ < dd > < a href ="http://www.w3.org/TR/2011/ED-unknown-shortname-20110521 / ">
48
+ http://www.w3.org/TR/2011/ED-unknown-shortname-20110521 </ a > <!--
49
49
<dt>Latest version:
50
50
<dd><a href="http://www.w3.org/TR/css-line-grid">
51
51
http://www.w3.org/TR/css-line-grid</a>
@@ -171,10 +171,24 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
171
171
< li > < a href ="#grid-length-unit "> < span class =secno > 3.3. </ span > The
172
172
‘< code class =css > gd</ code > ’ length unit</ a >
173
173
174
- < li > < a href ="#round-length "> < span class =secno > 3.4. </ span > Rounding
175
- Lengths to Multiple of Units: ‘< code
176
- class =css > rounddown()</ code > ’ and ‘< code
177
- class =css > roundup()</ code > ’ </ a >
174
+ < li > < a href ="#forcing-line-width-to-multiple-of-em "> < span
175
+ class =secno > 3.4. </ span > Forcing Line Width to Multiple of
176
+ < em > em</ em > </ a >
177
+ < ul class =toc >
178
+ < li > < a href ="#round-length "> < span class =secno > 3.4.1. </ span > Rounding
179
+ Lengths to Multiple of Units: ‘< code
180
+ class =css > rounddown()</ code > ’ and ‘< code
181
+ class =css > roundup()</ code > ’ </ a >
182
+
183
+ < li > < a href ="#rounding-lengths-to-multiple-of-units-th "> < span
184
+ class =secno > 3.4.2. </ span > Rounding Lengths to Multiple of Units: the
185
+ ‘< code class =property > layout-grid-measure</ code > ’
186
+ property</ a >
187
+
188
+ < li > < a href ="#character-grid-the-layout-grid-char-prop "> < span
189
+ class =secno > 3.4.3. </ span > Character Grid: the ‘< code
190
+ class =property > layout-grid-char</ code > ’ property</ a >
191
+ </ ul >
178
192
</ ul >
179
193
180
194
< li > < a href ="#conformance "> < span class =secno > 4. </ span > Conformance</ a >
@@ -675,11 +689,17 @@ <h3 id=grid-length-unit><span class=secno>3.3. </span>The ‘<code
675
689
<!-- --> </ code > </ pre >
676
690
</ div >
677
691
678
- < h3 id =round-length > < span class =secno > 3.4. </ span > Rounding Lengths to
692
+ < h3 id =forcing-line-width-to-multiple-of-em > < span class =secno > 3.4.
693
+ </ span > Forcing Line Width to Multiple of < em > em</ em > </ h3 >
694
+
695
+ < p class =issue > There are multiple ideas for this, and all ideas are listed
696
+ here for disucssions.
697
+
698
+ < h4 id =round-length > < span class =secno > 3.4.1. </ span > Rounding Lengths to
679
699
Multiple of Units: ‘< code class =css > < span class =index id =rounddown
680
700
title ="length unit::rounddown() "> rounddown()</ span > </ code > ’ and
681
701
‘< code class =css > < span class =index id =roundup title ="length
682
- unit::rounddown() "> roundup()</ span > </ code > ’</ h3 >
702
+ unit::rounddown() "> roundup()</ span > </ code > ’</ h4 >
683
703
684
704
< p > The ‘< code class =property > width</ code > ’ and ‘< code
685
705
class =property > height</ code > ’ properties accept ‘< code
@@ -708,8 +728,6 @@ <h3 id=round-length><span class=secno>3.4. </span>Rounding Lengths to
708
728
class =property > float</ code > ’ property is ‘< code
709
729
class =css > left</ code > ’, the fraction is added to the right margins.
710
730
711
- < p class =issue > Should this be a property instead?
712
-
713
731
< p class =issue > Is this design appropriate to solve text with floats case?
714
732
715
733
< p class =issue > Are there requirements for table cell width?
@@ -738,6 +756,114 @@ <h3 id=round-length><span class=secno>3.4. </span>Rounding Lengths to
738
756
<!-- --> </ code > </ pre >
739
757
</ div >
740
758
759
+ < h4 id =rounding-lengths-to-multiple-of-units-th > < span class =secno > 3.4.2.
760
+ </ span > Rounding Lengths to Multiple of Units: the ‘< a
761
+ href ="#layout-grid-measure "> < code
762
+ class =property > layout-grid-measure</ code > </ a > ’ property</ h4 >
763
+
764
+ < table class =propdef >
765
+ < tbody >
766
+ < tr >
767
+ < th > Name:
768
+
769
+ < td > < dfn id =layout-grid-measure > layout-grid-measure</ dfn >
770
+
771
+ < tr >
772
+ < th > Value:
773
+
774
+ < td > none | auto | <length> || up | down
775
+
776
+ < tr >
777
+ < th > Initial:
778
+
779
+ < td > none
780
+
781
+ < tr >
782
+ < th > Applies to:
783
+
784
+ < td > block containers
785
+
786
+ < tr >
787
+ < th > Inherited:
788
+
789
+ < td > no
790
+
791
+ < tr >
792
+ < th > Percentages:
793
+
794
+ < td > N/A
795
+
796
+ < tr >
797
+ < th > Media:
798
+
799
+ < td > visual
800
+
801
+ < tr >
802
+ < th > Computed value:
803
+
804
+ < td > specified value
805
+ </ table >
806
+
807
+ < h4 id =character-grid-the-layout-grid-char-prop > < span class =secno > 3.4.3.
808
+ </ span > Character Grid: the ‘< a href ="#layout-grid-char "> < code
809
+ class =property > layout-grid-char</ code > </ a > ’ property</ h4 >
810
+
811
+ < table class =propdef >
812
+ < tbody >
813
+ < tr >
814
+ < th > Name:
815
+
816
+ < td > < dfn id =layout-grid-char > layout-grid-char</ dfn >
817
+
818
+ < tr >
819
+ < th > Value:
820
+
821
+ < td > none | auto | <length>
822
+
823
+ < tr >
824
+ < th > Initial:
825
+
826
+ < td > none
827
+
828
+ < tr >
829
+ < th > Applies to:
830
+
831
+ < td > block containers
832
+
833
+ < tr >
834
+ < th > Inherited:
835
+
836
+ < td > no
837
+
838
+ < tr >
839
+ < th > Percentages:
840
+
841
+ < td > N/A
842
+
843
+ < tr >
844
+ < th > Media:
845
+
846
+ < td > visual
847
+
848
+ < tr >
849
+ < th > Computed value:
850
+
851
+ < td > specified value
852
+ </ table >
853
+
854
+ < p > This property defines a character grid for the element. Possible values
855
+ are:
856
+
857
+ < p > When a character grid is defined, the start and end edge of a line box
858
+ snap to the nearest grid in the direction to shorten the line box.
859
+
860
+ < div class =figure > < object data =line-length.svg height =158
861
+ type ="image/svg+xml " width =340 > </ object >
862
+ < p class =caption > The gray part of a line box is rounded down to snap to
863
+ the grid. The second line box has a float on the left (green), and
864
+ therefore its start edge snaps to the grid as well.</ p >
865
+ </ div >
866
+
741
867
< h2 id =conformance > < span class =secno > 4. </ span > Conformance</ h2 >
742
868
743
869
< h3 id =conformance-classes > < span class =secno > 4.1. </ span > Conformance
@@ -957,6 +1083,9 @@ <h2 class=no-num id=index>Index</h2>
957
1083
< li > authoring tool, < a href ="#authoring-tool " title ="authoring
958
1084
tool "> < strong > 4.1.</ strong > </ a >
959
1085
1086
+ < li > layout-grid-char, < a href ="#layout-grid-char "
1087
+ title =layout-grid-char > < strong > 3.4.3.</ strong > </ a >
1088
+
960
1089
< li > layout-grid-line, < a href ="#layout-grid-line "
961
1090
title =layout-grid-line > < strong > 2.1.</ strong > </ a >
962
1091
< ul >
@@ -973,6 +1102,9 @@ <h2 class=no-num id=index>Index</h2>
973
1102
percent "> < strong > 2.1.</ strong > </ a >
974
1103
</ ul >
975
1104
1105
+ < li > layout-grid-measure, < a href ="#layout-grid-measure "
1106
+ title =layout-grid-measure > < strong > 3.4.2.</ strong > </ a >
1107
+
976
1108
< li > layout-grid-mode, < a href ="#layout-grid-mode "
977
1109
title =layout-grid-mode > < strong > 3.1.</ strong > </ a >
978
1110
< ul >
@@ -994,8 +1126,8 @@ <h2 class=no-num id=index>Index</h2>
994
1126
< li > gd, < a href ="#gd " title ="length unit, gd "> 3.3.</ a >
995
1127
996
1128
< li > rounddown(), < a href ="#rounddown " title ="length unit,
997
- rounddown() "> 3.4.</ a > , < a href ="#roundup " title ="length unit,
998
- rounddown() "> 3.4.</ a >
1129
+ rounddown() "> 3.4.1. </ a > , < a href ="#roundup " title ="length unit,
1130
+ rounddown() "> 3.4.1. </ a >
999
1131
</ ul >
1000
1132
1001
1133
< li > renderer, < a href ="#renderer " title =renderer > < strong > 4.1.</ strong > </ a >
@@ -1030,7 +1162,22 @@ <h2 class=no-num id=property-index>Property index</h2>
1030
1162
< th > Media
1031
1163
1032
1164
< tbody >
1033
- < tr valign =baseline >
1165
+ < tr >
1166
+ < td > < a class =property href ="#layout-grid-char "> layout-grid-char</ a >
1167
+
1168
+ < td > none | auto | <length>
1169
+
1170
+ < td > none
1171
+
1172
+ < td > block containers
1173
+
1174
+ < td > no
1175
+
1176
+ < td > N/A
1177
+
1178
+ < td > visual
1179
+
1180
+ < tr >
1034
1181
< td > < a class =property href ="#layout-grid-line "> layout-grid-line</ a >
1035
1182
1036
1183
< td > none | auto | <length> | <percentage>
@@ -1045,7 +1192,23 @@ <h2 class=no-num id=property-index>Property index</h2>
1045
1192
1046
1193
< td > visual
1047
1194
1048
- < tr valign =baseline >
1195
+ < tr >
1196
+ < td > < a class =property
1197
+ href ="#layout-grid-measure "> layout-grid-measure</ a >
1198
+
1199
+ < td > none | auto | <length> || up | down
1200
+
1201
+ < td > none
1202
+
1203
+ < td > block containers
1204
+
1205
+ < td > no
1206
+
1207
+ < td > N/A
1208
+
1209
+ < td > visual
1210
+
1211
+ < tr >
1049
1212
< td > < a class =property href ="#layout-grid-mode "> layout-grid-mode</ a >
1050
1213
1051
1214
< td > none | baseline | block | line
0 commit comments