[openstreetmap/openstreetmap-website] Drop KaiOS 2.5 support to fix placeholder styling in Firefox (PR #6185)
Tom Hughes
notifications at github.com
Sat Jul 12 10:59:56 UTC 2025
While reviewing #6184 I discovered a problem with Firefox causing by autoprefixer adding a `-moz-placeholder` rule alongside the `placeholder-shown` rule.
The details are discussed in https://github.com/postcss/autoprefixer/issues/1533 but basically Firefox has supported `placeholder-shown` since version 50 but before that used `-moz-placeholder` and some other browsers based on old Firefox versions still do. The problem is that newer Firefox versions still recognise `-moz-placeholder` but at some point started treating it as `placeholder` and always matching whether or not the text is shown.
The solution is to drop support for one specific browser (KaiOS 2.5) which is the only thing in the default set actually triggering this. Newer versions (3.0, 3.1) of KaiOS remain supported.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6185
-- Commit Summary --
* Drop KaiOS 2.5 support to fix placeholder styling in Firefox
-- File Changes --
A app/assets/stylesheets/.browserslistrc (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6185.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6185.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6185
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6185 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250712/bbeecbf3/attachment.htm>
More information about the rails-dev
mailing list