You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that option (outside a select) is display:block by default in Gecko and Chromium. In IE it is inline. In WebKit it is not rendered (seemingly like display:none but no such declaration per devtools).
From rocallahan/innerText-spec#5 (comment)
Gecko has lots of styles apart from display:block
https://dxr.mozilla.org/mozilla-central/source/layout/style/res/forms.css#341
Chromium
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/css/html.css?l=773
WebKit
https://github.com/WebKit/webkit/blob/e75143bef79009cec709c2208cfde886435d75a5/Source/WebCore/css/html.css#L920
IE/Edge
Like
display:inline
?The spec
https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2
https://html.spec.whatwg.org/multipage/rendering.html#form-controls
I think we should at least have
display:block
in the spec (at least ifoption
generates line breaks ininnerText
, so that is at least consistent).The text was updated successfully, but these errors were encountered: