- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Fri, 14 Feb 2014 18:30:42 -0800
- To: Andrew Fedoniouk <news@terrainformatica.com>
- Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style list <www-style@w3.org>
On Fri, Feb 14, 2014 at 6:28 PM, Andrew Fedoniouk <news@terrainformatica.com> wrote: >>> I can imagine something like this: >>> >>> input[type=number]:empty::attr(placeholder) { >>> display:block; >>> color:grey; >>> } >> >> What is this supposed to do? > > When <input type=number> is empty show > content of the 'placeholder' attribute in its place > with the given styling. So it's exactly equivalent to: input[type=number]:empty[placeholder]::before { content: attr(placeholder); display: block; color: grey; } ? ~TJ
Received on Saturday, 15 February 2014 02:31:30 UTC