- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 25 Aug 2009 14:58:15 -0400
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: www-style list <www-style@w3.org>
Tab Atkins Jr. wrote:
> There's currently no way to change the display of the the error
> message, but Lachlan reported yesterday that they have received a lot
> of feedback that authors want to control this. The display of the
> Opera error messages is pretty simple - it's just a text string in a
> box - so this should be fairly easy to spec up.
>
> I propose adding an ::error pseudoelement to the CSS3 UI spec. You
> can style the error message for a specific element by attaching it to
> that element, like "input[type=email]::error {}".
How would this work if the error message is NOT "just a text string in a
box"?
> With one exception, the ::error pseudoelement is treated exactly like
> an abspos box inserted into the markup via scripting. It accepts all
> CSS properties.
Including "content"? What's the use case?
In any case, this seems needlessly constraining in terms of the UI a
browser can present (e.g. what you just described would prevent a single
notification bar that one can then use to look at all the errors).
Given that this is fundamentally browser UI, I don't think we should be
specifying it in that level of detail.
-Boris
Received on Tuesday, 25 August 2009 18:58:59 UTC