Re: [whatwg] Alignment of empty buttons

On 11/22/13 9:57 PM, Boris Zbarsky wrote:
> For what it's worth, <select> didn't use to be in Gecko either, in this
> sense, until we made it so in
> https://bugzilla.mozilla.org/show_bug.cgi?id=591619

And to be clear, all that this did is add the equivalent of:

select > :not(:any(option, optgroup)) { display: none; }
optgroup > :not(option) { display: none; }

except also applying to textnodes and operating directly on used style, 
not computed style (which is why it's now a replaced element per your 
definition, since those two exceptions cannot in fact be expressed in CSS).

None of this is very interoperable, of course; e.g. 
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2655 and 
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2657 are 
rendered quite differently in Gecko and WebKit/Blink.  The latter seem 
to have option and select being a lot more replaced-elementish than they 
are in Gecko.

-Boris

Received on Saturday, 23 November 2013 03:07:23 UTC