aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/css/_colon_read-write
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
commit1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch)
tree0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/css/_colon_read-write
parent4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff)
downloadtranslated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip
initial commit
Diffstat (limited to 'files/es/web/css/_colon_read-write')
-rw-r--r--files/es/web/css/_colon_read-write/index.html99
1 files changed, 99 insertions, 0 deletions
diff --git a/files/es/web/css/_colon_read-write/index.html b/files/es/web/css/_colon_read-write/index.html
new file mode 100644
index 0000000000..404b97ce79
--- /dev/null
+++ b/files/es/web/css/_colon_read-write/index.html
@@ -0,0 +1,99 @@
+---
+title: ':read-write'
+slug: 'Web/CSS/:read-write'
+tags:
+ - CSS
+ - Diseño
+ - Pseudo-clase
+ - Referencia
+ - Web
+translation_of: 'Web/CSS/:read-write'
+---
+<div>{{CSSRef}}</div>
+
+<p>La <a href="https://developer.mozilla.org/es/docs/CSS/Pseudo-classes" rel="nofollow">pseudo-clase</a> <strong><code>:read-write</code></strong> de <a href="https://developer.mozilla.org/es/docs/Web/CSS">CSS</a> representa un elemento (como un <a href="https://developer.mozilla.org/es/docs/Web/HTML/Element/input" rel="nofollow">input</a>) que es editable por el usuario.</p>
+
+<pre class="brush: css no-line-numbers">/* Selecciona cualquier elemento &lt;input&gt; que sea editable */
+/* Compatible con Firefox con un prefijo */
+input:-moz-read-write {
+ background-color: #bbf;
+}
+
+/* Compatible con Blink/WebKit/Edge sin un prefijo */
+input:read-write {
+ background-color: #bbf;
+}</pre>
+
+<div class="note">
+<p><strong>Nota</strong>: Este selector no solo selecciona texto de {{htmlElement("input")}}; seleccionará <em>cualquier</em> elemento que pueda editar el usuario, como un elemento {{htmlelement("p")}} con {{htmlattrxref("contenteditable")}} establecido en él.</p>
+</div>
+
+<h2 id="Sintaxis">Sintaxis</h2>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Ejemplo" name="Ejemplo">Ejemplo</h2>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;input type="text" value="Escribe lo que quieras aquí."&gt;
+&lt;input type="text" value="Este es un campo de solo lectura." readonly&gt;
+&lt;p&gt;Este es un párrafo normal.&lt;/p&gt;
+&lt;p contenteditable="true"&gt;¡Puedes editar este párrafo!&lt;/p&gt;</pre>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css line-numbers language-css">input { min-width: 25em; }
+input:-moz-read-write { background: cyan; }
+input:read-write { background: cyan; }
+
+p:-moz-read-write { background: lightgray; }
+p:read-write { background: lightgray; }
+p[contenteditable="true"] { color: blue; }
+</pre>
+
+<h3 id="Resultado">Resultado</h3>
+
+<p>{{EmbedLiveSample("Ejemplo")}}</p>
+
+<h2 class="editable" id="Specifications" name="Specifications">Especificaciones</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Especificación</th>
+ <th scope="col">Estado</th>
+ <th scope="col">Comentarios</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{ SpecName('HTML WHATWG', '#selector-read-write', ':read-write') }}</td>
+ <td>{{ Spec2('HTML WHATWG') }}</td>
+ <td>Ningún cambio.</td>
+ </tr>
+ <tr>
+ <td>{{ SpecName('HTML5 W3C', '#selector-read-write', ':read-write') }}</td>
+ <td>{{ Spec2('HTML5 W3C') }}</td>
+ <td>Define la semántica con respecto a HTML y validación de restricciones.</td>
+ </tr>
+ <tr>
+ <td>{{ SpecName('CSS4 Selectors', '#rw-pseudos', ':read-write') }}</td>
+ <td>{{ Spec2('CSS4 Selectors') }}</td>
+ <td>Define la pseudo-clase, pero no la semántica asociada.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">Compatibilidad con navegadores</h2>
+
+
+
+<p>{{Compat("css.selectors.read-write")}}</p>
+
+<h2 id="See_also" name="See_also">Ver también</h2>
+
+<ul>
+ <li>{{cssxref(":read-only")}}</li>
+ <li>Atributo HTML {{htmlattrxref("contenteditable")}}</li>
+</ul>