Skip to content

Commit 2065702

Browse files
[selectors-4] 各種更新
Add example showing the difference between general case-insensitivity and strict ASCII case insensitivity, #13645 w3c/csswg-drafts@c2a5f2e Respond to review feedback on BCP 47 language codes w3c/csswg-drafts@656f665
1 parent 93bbb4e commit 2065702

1 file changed

Lines changed: 50 additions & 27 deletions

File tree

selectors4-ja.html

Lines changed: 50 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@
190190
●●options
191191

192192
spec_title:Selectors Level 4
193-
spec_date:2026-02-16
194-
trans_update:2025-12-14
193+
spec_date:2026-03-24
194+
trans_update:2026-03-25
195195
source_checked:250506
196196
page_state_key:CSS
197197
original_url:https://drafts.csswg.org/selectors-4/
@@ -279,6 +279,7 @@
279279
関数形:functional::~
280280
文字大小比較:case sensitivity::文字大小の区別
281281
文字大小を区別:case-sensitive
282+
大小無視の下では:case insensitivity
282283
小構文:microsyntax::~
283284
縮約-:collapse::~
284285

@@ -559,7 +560,6 @@
559560
実用:usable:~
560561
無用:useless:~
561562
黙示-:imply:~
562-
後継版:successor:~
563563
多彩:rich:~
564564
不便:awkward:~
565565
明白:obvious:~
@@ -760,7 +760,7 @@
760760
見込まれ:likely
761761
逆に:conversely
762762
出発点:starting point
763-
別法として:Alternately,
763+
<ul>:Alternately,
764764
-:overall
765765
始めから:start
766766
区別:distinction
@@ -1708,14 +1708,14 @@
17081708
[SELECT]
17091709
Tantek Çelik; et al. <Selectors Level 3. URL: https://drafts.csswg.org/selectors-3/
17101710
[SELECTORS-5]
1711-
<Selectors Level 5. Editor's Draft. URL: https://drafts.csswg.org/selectors-5/
1711+
Elika Etemad; Tab Atkins Jr.. <Selectors Level 5. URL: https://drafts.csswg.org/selectors-5/
17121712
[URL]
17131713
Anne van Kesteren. <URL Standard>. Living Standard. URL: https://url.spec.whatwg.org/
17141714

17151715
●●ref_informative
17161716

17171717
[CSS-COLOR-5]
1718-
Chris Lilley; et al. <CSS Color Module Level 5. URL: https://drafts.csswg.org/css-color-5/
1718+
Chris Lilley; Una Kravets; Lea Verou. <CSS Color Module Level 5. URL: https://drafts.csswg.org/css-color-5/
17191719
[CSS-DISPLAY-3]
17201720
Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 3. URL: https://drafts.csswg.org/css-display/
17211721
[CSS3UI]
@@ -5040,15 +5040,14 @@ <h3 title="Attribute presence and value selectors">6.1. 属性~存在p/属性~
50405040
Represents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-" (U+002D).\
50415041
</dd>
50425042
<dd>
5043-
これは首に[
5044-
`BCP47$r またはその後継版
5045-
]の言語 `subcode^en †と照合する用途が意図されている
5043+
これは、
5044+
首に `BCP47$r の言語 `subcode^en †と照合する用途が意図されている
50465045
(例:~HTMLの `a$e 要素の `hreflang^a 属性)。
50475046
`lang^a 属性
50485047
(または `xml:lang^a 属性)用の言語 `subcode^en 照合については `lang()$ps を見よ。
50495048
【† `subcode^en は、いわゆる下位tag( `subtag^en )と同義と思われる。】
50505049
5051-
This is primarily intended to allow language subcode matches (e.g., the hreflang attribute on the a element in HTML) as described in BCP 47 ([BCP47]) or its successor. For lang (or xml:lang) language subcode matching, please see the :lang() pseudo-class.
5050+
This is primarily intended to allow language subcode matches (e.g., the hreflang attribute on the a element in HTML) as described in BCP 47 ([BCP47]). For lang (or xml:lang) language subcode matching, please see the :lang() pseudo-class.
50525051
</dd>
50535052
</dl>
50545053

@@ -5287,33 +5286,57 @@ <h3 title="Case-sensitivity">6.3. 属性~値の文字大小比較</h3>
52875286
既定では、
52885287
選択子の中の[
52895288
属性~名/属性~値
5290-
の文字大小が区別されるかどうかは,文書~言語に依存する。
5289+
に対する文字大小比較は,文書~言語に依存する。
52915290
52925291
By default case-sensitivity of attribute names and values in selectors depends on the document language.
52935292
</p>
52945293

5294+
<p class="trans-note">
5295+
`HTML$r におけるその規則は、
5296+
`§ 選択子における文字大小比較@~HTMLselectors#case-sensitivity-of-selectors$
5297+
にて述べられている。
5298+
</p>
5299+
52955300
<p>
5296-
属性~値を[
5297-
文書~言語に関わらず,`~ASCII大小無視$で照合する
5298-
]ためとして、
5299-
`属性~選択子$の閉じ角括弧 `005D^U の直前に,識別子 `0069^U を含めてもヨイ。
5300-
この~flagが在るときは、
5301-
~UAは,属性の値を`~ASCII大小無視$の下で照合するモノトスル
5301+
作者は、[
5302+
文書~言語に関わらず,属性~値を[
5303+
`~ASCII大小無視$/文字大小区別
5304+
]で照合する
5305+
]ためとして,[
5306+
`属性~選択子$の閉じ角括弧 `005D^U の直前
5307+
]に識別子[
5308+
`0069^U / `0073^U
5309+
]を含めてもヨイ
5310+
— ~UAは:
5311+
5312+
</p>
5313+
<ul>
5314+
<li>
5315+
<p>
5316+
`0069^U ~flagが在るときは、
5317+
属性の値を`~ASCII大小無視$の下で照合するモノトスル
53025318
(すなわち, [a-z] と [A-Z] は等価と見なされる)。
53035319
53045320
To match attribute values ASCII case-insensitively regardless of document language rules, the attribute selector may include the identifier i before the closing bracket (]). When this flag is present, UAs must match the attribute’s value ASCII case-insensitively (i.e. [a-z] and [A-Z] are considered equivalent).
53055321
</p>
53065322

5323+
<div class="example">
53075324
<p>
5308-
別法として、
5309-
`属性~選択子$の閉じ角括弧 `005D^U の直前に,識別子 `0073^U を含めてもヨイ。
5310-
この事例では、
5311-
~UAは,[
5312-
文書~言語に関わらず,`一致-$するかどうか `INFRA$r の下で照合する
5313-
]モノトスル。
5325+
~ASCII大小無視の下では、
5326+
例えば, `green^v が `GREEN^v に合致することを許容するが、
5327+
`grün^v は `GRÜN^v に合致しない。
53145328
5315-
Alternately, the attribute selector may include the identifier s before the closing bracket (]); in this case the UA must match the value case-sensitively, with “identical to” semantics [INFRA], regardless of document language rules.
5329+
For example, ASCII case insensitivity allows green to match GREEN. However, grün would not match GRÜN.
53165330
</p>
5331+
</div>
5332+
</li>
5333+
<li>
5334+
`0073^U ~flagが在るときは、
5335+
属性の値を`一致-$するか否か `INFRA$r の下で照合するモノトスル。
5336+
5337+
Alternately, the attribute selector may include the identifier s before the closing bracket (]); in this case the UA must match the value case-sensitively, with “identical to” semantics [INFRA], regardless of document language rules.
5338+
</li>
5339+
</ul>
53175340

53185341
<p>
53195342
他の~Selectors構文と同様に、
@@ -6035,14 +6058,14 @@ <h3 title="The Language Pseudo-class: :lang()">7.2. 自然言語: `lang()^ps
60356058
60366059
文書/~protocol
60376060
]は、
6038-
`BCP47$r またはその後継版の~codeを利用して
6061+
`BCP47$r の言語~tagを利用して
60396062
— 当の形式が~XML `XML10$r に基づく事例では、
60406063
`xml:lang^a 属性により —
60416064
言語を指示することが推奨される。
6042-
“`FAQ: 2 文字または 3 文字の言語~code@https://www.w3.org/International/questions/qa-lang-2or3.html$”
6065+
*“`言語~tagの選び方@https://www.w3.org/International/questions/qa-choosing-language-tags$”
60436066
を見よ。
60446067
6045-
Note: It is recommended that documents and protocols indicate language using codes from [BCP47] or its successor, and in the case of XML-based formats, by means of xml:lang attributes. [XML10] See “FAQ: Two-letter or three-letter language codes.
6068+
Note: It is recommended that documents and protocols indicate language using language tags from [BCP47], and in the case of XML-based formats, by means of xml:lang attributes. [XML10] See “Choosing a Language Tag
60466069
</p>
60476070

60486071
<div class="example">

0 commit comments

Comments
 (0)