|
190 | 190 | ●●options |
191 | 191 |
|
192 | 192 | 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 |
195 | 195 | source_checked:250506 |
196 | 196 | page_state_key:CSS |
197 | 197 | original_url:https://drafts.csswg.org/selectors-4/ |
|
279 | 279 | 関数形:functional::~ |
280 | 280 | 文字大小比較:case sensitivity::文字大小の区別 |
281 | 281 | 文字大小を区別:case-sensitive |
| 282 | + 大小無視の下では:case insensitivity |
282 | 283 | 小構文:microsyntax::~ |
283 | 284 | 縮約-:collapse::~ |
284 | 285 |
|
|
559 | 560 | 実用:usable:~ |
560 | 561 | 無用:useless:~ |
561 | 562 | 黙示-:imply:~ |
562 | | -後継版:successor:~ |
563 | 563 | 多彩:rich:~ |
564 | 564 | 不便:awkward:~ |
565 | 565 | 明白:obvious:~ |
|
760 | 760 | 見込まれ:likely |
761 | 761 | 逆に:conversely |
762 | 762 | 出発点:starting point |
763 | | - 別法として:Alternately, |
| 763 | + <ul>:Alternately, |
764 | 764 | -:overall |
765 | 765 | 始めから:start |
766 | 766 | 区別:distinction |
|
1708 | 1708 | [SELECT] |
1709 | 1709 | Tantek Çelik; et al. <Selectors Level 3>. URL: https://drafts.csswg.org/selectors-3/ |
1710 | 1710 | [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/ |
1712 | 1712 | [URL] |
1713 | 1713 | Anne van Kesteren. <URL Standard>. Living Standard. URL: https://url.spec.whatwg.org/ |
1714 | 1714 |
|
1715 | 1715 | ●●ref_informative |
1716 | 1716 |
|
1717 | 1717 | [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/ |
1719 | 1719 | [CSS-DISPLAY-3] |
1720 | 1720 | Elika Etemad; Tab Atkins Jr.. <CSS Display Module Level 3>. URL: https://drafts.csswg.org/css-display/ |
1721 | 1721 | [CSS3UI] |
@@ -5040,15 +5040,14 @@ <h3 title="Attribute presence and value selectors">6.1. 属性~存在p/属性~ |
5040 | 5040 | Represents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-" (U+002D).\ |
5041 | 5041 | </dd> |
5042 | 5042 | <dd> |
5043 | | -これは首に[ |
5044 | | -`BCP47$r またはその後継版 |
5045 | | -]の言語 `subcode^en †と照合する用途が意図されている |
| 5043 | +これは、 |
| 5044 | +首に `BCP47$r の言語 `subcode^en †と照合する用途が意図されている |
5046 | 5045 | (例:~HTMLの `a$e 要素の `hreflang^a 属性)。 |
5047 | 5046 | `lang^a 属性 |
5048 | 5047 | (または `xml:lang^a 属性)用の言語 `subcode^en 照合については `lang()$ps を見よ。 |
5049 | 5048 | 【† `subcode^en は、いわゆる下位tag( `subtag^en )と同義と思われる。】 |
5050 | 5049 | ◎ |
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. |
5052 | 5051 | </dd> |
5053 | 5052 | </dl> |
5054 | 5053 |
|
@@ -5287,33 +5286,57 @@ <h3 title="Case-sensitivity">6.3. 属性~値の文字大小比較</h3> |
5287 | 5286 | 既定では、 |
5288 | 5287 | 選択子の中の[ |
5289 | 5288 | 属性~名/属性~値 |
5290 | | -]の文字大小が区別されるかどうかは,文書~言語に依存する。 |
| 5289 | +]に対する文字大小比較は,文書~言語に依存する。 |
5291 | 5290 | ◎ |
5292 | 5291 | By default case-sensitivity of attribute names and values in selectors depends on the document language. |
5293 | 5292 | </p> |
5294 | 5293 |
|
| 5294 | +<p class="trans-note">【 |
| 5295 | +`HTML$r におけるその規則は、 |
| 5296 | +`§ 選択子における文字大小比較@~HTMLselectors#case-sensitivity-of-selectors$ |
| 5297 | +にて述べられている。 |
| 5298 | +】</p> |
| 5299 | + |
5295 | 5300 | <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大小無視$の下で照合するモノトスル |
5302 | 5318 | (すなわち, [a-z] と [A-Z] は等価と見なされる)。 |
5303 | 5319 | ◎ |
5304 | 5320 | 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). |
5305 | 5321 | </p> |
5306 | 5322 |
|
| 5323 | +<div class="example"> |
5307 | 5324 | <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 に合致しない。 |
5314 | 5328 | ◎ |
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. |
5316 | 5330 | </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> |
5317 | 5340 |
|
5318 | 5341 | <p> |
5319 | 5342 | 他の~Selectors構文と同様に、 |
@@ -6035,14 +6058,14 @@ <h3 title="The Language Pseudo-class: :lang()">7.2. 自然言語: `lang()^ps |
6035 | 6058 | [ |
6036 | 6059 | 文書/~protocol |
6037 | 6060 | ]は、 |
6038 | | -`BCP47$r またはその後継版の~codeを利用して |
| 6061 | +`BCP47$r の言語~tagを利用して |
6039 | 6062 | — 当の形式が~XML `XML10$r に基づく事例では、 |
6040 | 6063 | `xml:lang^a 属性により — |
6041 | 6064 | 言語を指示することが推奨される。 |
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$” |
6043 | 6066 | を見よ。 |
6044 | 6067 | ◎ |
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” |
6046 | 6069 | </p> |
6047 | 6070 |
|
6048 | 6071 | <div class="example"> |
|
0 commit comments