aboutsummaryrefslogtreecommitdiff
path: root/files/ca/web/css/_doublecolon_placeholder/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:15 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:15 -0500
commit4b1a9203c547c019fc5398082ae19a3f3d4c3efe (patch)
treed4a40e13ceeb9f85479605110a76e7a4d5f3b56b /files/ca/web/css/_doublecolon_placeholder/index.html
parent33058f2b292b3a581333bdfb21b8f671898c5060 (diff)
downloadtranslated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.gz
translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.bz2
translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.zip
initial commit
Diffstat (limited to 'files/ca/web/css/_doublecolon_placeholder/index.html')
-rw-r--r--files/ca/web/css/_doublecolon_placeholder/index.html150
1 files changed, 150 insertions, 0 deletions
diff --git a/files/ca/web/css/_doublecolon_placeholder/index.html b/files/ca/web/css/_doublecolon_placeholder/index.html
new file mode 100644
index 0000000000..3c985e7912
--- /dev/null
+++ b/files/ca/web/css/_doublecolon_placeholder/index.html
@@ -0,0 +1,150 @@
+---
+title: '::placeholder'
+slug: 'Web/CSS/::placeholder'
+tags:
+ - CSS
+ - Experimental
+ - NeedsBrowserCompatibility
+ - NeedsMobileBrowserCompatibility
+ - Pseudo-element
+ - Reference
+translation_of: 'Web/CSS/::placeholder'
+---
+<div>{{CSSRef}}{{SeeCompatTable}}</div>
+
+<p>El <a href="/en-US/docs/Web/CSS/Pseudo-elements">pseudo-element</a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>::placeholder</code></strong> representa el <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Forms_in_HTML#The_placeholder_attribute">text de marcador de posició</a> d'un element de <a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms">formulari</a>.</p>
+
+<pre class="brush: css no-line-numbers">::placeholder {
+ color: blue;
+ font-size: 1.5em;
+}</pre>
+
+<p>Només un subconjunt de propietats CSS que s'aplica al pseudo-element {{cssxref("::first-line")}} es pot utilitzar en una regla, utilitzant <code>::placeholder</code> en el seu selector.</p>
+
+<div class="note">
+<p><strong>Nota:</strong> A Firefox, l'aparença del text del marcador de posició és de color gris translúcid per defecte.</p>
+</div>
+
+<h2 id="Sintaxi">Sintaxi</h2>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Exemple">Exemple</h2>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush:html line-numbers language-html">&lt;input placeholder="Type something here!"&gt;</pre>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">input::placeholder {
+ color: red;
+ font-size: 1.2em;
+ font-style: italic;
+}</pre>
+
+<h3 id="Resultat">Resultat</h3>
+
+<p>{{EmbedLiveSample("Example")}}</p>
+
+<h2 id="Especificacions">Especificacions</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Especificació</th>
+ <th scope="col">Estat</th>
+ <th scope="col">Comentari</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('CSS4 Pseudo-Elements', '#placeholder-pseudo', '::placeholder')}}</td>
+ <td>{{Spec2('CSS4 Pseudo-Elements')}}</td>
+ <td>Definició inicial.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Navegadors_compatibles">Navegadors compatibles</h2>
+
+<p>{{CompatibilityTable}}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Descripció</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Edge</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>Suport bàsic</td>
+ <td>{{CompatChrome(57)}}</td>
+ <td>{{CompatGeckoDesktop("51.0")}}<sup>[1]</sup></td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>44</td>
+ <td>10.1</td>
+ </tr>
+ <tr>
+ <td><span class="short_text" id="result_box" lang="ca"><span>Suport parcial amb prefix</span></span></td>
+ <td>Supported</td>
+ <td>Supported</td>
+ <td>Supported</td>
+ <td>10 -ms-</td>
+ <td>Supported</td>
+ <td>5 -webkit-</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Descripció</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Suport bàsic</td>
+ <td>{{CompatChrome(57)}}</td>
+ <td>{{CompatChrome(57)}}</td>
+ <td>{{CompatGeckoMobile("52.0")}}</td>
+ <td>{{CompatNo}}</td>
+ <td> </td>
+ <td>10.3</td>
+ </tr>
+ <tr>
+ <td><span class="short_text" id="result_box" lang="ca"><span>Suport parcial amb prefix</span></span></td>
+ <td>2.1 -webkit-</td>
+ <td>Supported</td>
+ <td>Supported</td>
+ <td>10 -ms-</td>
+ <td>37 -webkit-</td>
+ <td>4.3 -webkit-</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<p>[1] Abans de Gecko 51.0 {{geckoRelease("51.0")}} Gecko va implementar aquest com a pseudo-element prefixat {{cssxref("::-moz-placeholder")}}.</p>
+
+<h2 id="Vegeu_també">Vegeu també</h2>
+
+<ul>
+ <li>La pseudo-class {{cssxref(":placeholder-shown")}} dona estil a un element que <em>té</em> un marcador de posició actiu.</li>
+ <li>Elements HTML relacionats: {{HTMLElement("input")}}, {{HTMLElement("textarea")}}</li>
+ <li>Els equivalents no estàndard d'aquest pseudo-element: {{cssxref("::-webkit-input-placeholder")}}, {{cssxref("::-moz-placeholder")}}, {{cssxref(":-ms-input-placeholder")}}</li>
+ <li><a href="/en-US/docs/Learn/HTML/Forms">Formularis HTML</a></li>
+</ul>