Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari+Chrome: input[type=search].form-control with results attribute displays results decoration incorrectly #19758

Closed
vinorodrigues opened this issue Apr 18, 2016 · 3 comments
Labels

Comments

@vinorodrigues
Copy link
Contributor

vinorodrigues commented Apr 18, 2016

In webkit based browsers an <input> tag of type="search", of class="form-control" AND results history switched on (results="x") displays the results dropdown incorrectly:

  • on Safari on OSX - it seems to cut off (the a magnifier icon) on the left
  • on Chrome (49) - it seems to leave a wide space on left
  <input type="search" class="form-control" results="10">

I'm aware that TWBS accounts for selector::-webkit-search-cancel-button , but I cannot find a reference to selector::-webkit-search-results-button

Example in JSFiddle

@twbs-lmvtfy
Copy link

Hi @vinorodrigues!

You appear to have posted a live example (https://fiddle.jshell.net/vinorodrigues/sLgwgcqa/show/light/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

  • line 74, column 1 thru column 73: Attribute results not allowed on element input at this point.
  • line 81, column 1 thru column 94: Attribute results not allowed on element input at this point.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!

(Please note that this is a fully automated comment.)

@vinorodrigues
Copy link
Contributor Author

vinorodrigues commented Apr 18, 2016

True - results is not standard HTML5 attributes per-se - but they are part of webkit... used in both Safari and Chrome.

See this reference, and the Safari docs.

@cvrebert cvrebert changed the title webkit only, input type=search & class=form-control with results attribute displays results decoration incorrectly Safari+Chrome: input[type=search].form-control with results attribute displays results decoration incorrectly Apr 18, 2016
@mdo
Copy link
Member

mdo commented Sep 5, 2016

Bootstrap 3 is no longer being officially developed or supported.

All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4!

<3,
@mdo and team

@mdo mdo closed this as completed Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants