[whatwg] Styling form controls (Was: Re: Forms-related feedback)

Qebui Nehebkau qebui.nehebkau+whatwg at gmail.com
Thu Dec 5 18:37:23 PST 2013


On Fri, Dec 6, 2013 at 2:01 AM, Kornel Lesiński <kornel at geekhood.net> wrote:
> Maybe instead of coming up with one set of pseudo-elements that's limited to
> the lowest common denominator we should have multiple completely different
> sets of pseudo-elements for each kind of interface?
>
> input::calendar.month-view-grid ::first-week-row {...} // typical desktop
> style
>
> input::calendar.spin-wheel ::month-spinner {...} // iOS style
>
> (or any other syntax with cats/hats/dogs/pseudo-functions, as long as it
> groups pseudo-elements per kind of calendar UI)
>
> This way developers assuming date pickers are grids with a month view could
> style specific pseudo-elements for this layout and mobile browsers could
> ignore these styles completely.

And what happens when another implementation comes up with a
completely new interface? Do you want to specify every possible
representation of a date selector? Even if you *intend* only to
specify the (current) most common arrangements, leaving everything
else to its own devices, eventually some author will whine about not
being able to make some implementation fit their precious
meticulously-crafted "brand", and it gets all the worse if the
unspecified interfaces *catch on*. The only real solution to this
problem is for authors to accept that they don't have complete control
of the way users view their pages, and that browsers have the freedom
to innovate and develop new interfaces and other features for a
*reason*: to better serve the potentially infinite and contradictory
desires of different users.



More information about the whatwg mailing list