@@ -805,22 +805,26 @@ UA Default Stylesheet for 'initial-letter-align'</h4>
805805 UAs must include in their default UA style sheet the following rules:
806806
807807 <pre>
808- [lang=zh] , [lang=ja] , [lang=ko] , [lang=ii] {
808+ [lang] :lang(zh, ja, ko, ii) {
809809 initial-letter-align: ideographic;
810810 }
811- [lang|=iw] , [lang|=yi] , [lang|= lad] , [lang|= jrb] {
811+ [lang] :lang(iw, yi, lad, jrb) {
812812 initial-letter-align: hebrew;
813813 }
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) {
815815 initial-letter-align: hanging;
816816 }
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+ }
817824 </pre>
818825
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?
824828
825829<h3 id="sizing-initial-letters">
826830Sizing Initial Letters</h3>
0 commit comments