File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2494,7 +2494,18 @@ The Placeholder-shown Pseudo-class: '':placeholder-shown''</h4>
2494
2494
as a hint to the user on what to type in.
2495
2495
See, for example, the <code> placeholder</code> attribute in [[HTML5]] .
2496
2496
The <dfn id="placeholder-shown-pseudo">:placeholder-shown</dfn> pseudo-class
2497
- matches an input element that is showing such placeholder text.
2497
+ matches an input element that is showing such placeholder text,
2498
+ whether that text is given by an attribute or a real element,
2499
+ or is otherwise implied by the UA.
2500
+
2501
+ <div class="example">
2502
+ For example, according to the semantics of [[HTML]]
2503
+ the <{input/placeholder}> attribute on the <{input}> element
2504
+ provide placeholder text,
2505
+ as does the first <{option}> element of a <{select}> under certain conditions.
2506
+ The '':placeholder-shown'' class thus applies
2507
+ whenever such placeholder text is shown.
2508
+ </div>
2498
2509
2499
2510
<h4 id="the-default-pseudo">
2500
2511
The Default-option Pseudo-class: '':default''</h4>
You can’t perform that action at this time.
0 commit comments