@@ -805,22 +805,26 @@ UA Default Stylesheet for 'initial-letter-align'</h4>
805
805
UAs must include in their default UA style sheet the following rules:
806
806
807
807
<pre>
808
- [lang=zh] , [lang=ja] , [lang=ko] , [lang=ii] {
808
+ [lang] :lang(zh, ja, ko, ii) {
809
809
initial-letter-align: ideographic;
810
810
}
811
- [lang|=iw] , [lang|=yi] , [lang|= lad] , [lang|= jrb] {
811
+ [lang] :lang(iw, yi, lad, jrb) {
812
812
initial-letter-align: hebrew;
813
813
}
814
- [lang|=hi] , [lang|=mr] , [lang|=ne] , , [lang|=pi] , [lang|= kok] , [lang|= brx] , [lang|= mai] , [lang|=sd] , [lang|=sa] {
814
+ [lang] :lang(hi, mr, ne, pi, kok, brx, mai, sd, sa) {
815
815
initial-letter-align: hanging;
816
816
}
817
+ /* Script tags override language tags */
818
+ [lang] :lang('*-Latn' , '*-Cyrl' ) {
819
+ initial-letter-align: alphabetic;
820
+ }
821
+ [lang] :lang('*-Hani' , '*-Hant' , '*-Hans' ) {
822
+ initial-letter-align: ideographic;
823
+ }
817
824
</pre>
818
825
819
- Issue: We don't have a way to do subtag selection with attr selectors.
820
- (It's a feature of '':lang()'' in Selectors 4,
821
- but we don't want to use that because we want to hit the language root,
822
- not all of the descendant elements.)
823
- These selectors should also include the relevant script subtags.
826
+ Issue: This only covers the most common cross-linguistic transcription systems.
827
+ Should we include any other / all script tags in the UA style sheet?
824
828
825
829
<h3 id="sizing-initial-letters">
826
830
Sizing Initial Letters</h3>
0 commit comments