-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Ungroup placeholder css rules to prevent browsers from removing all rules
#37522
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
Conversation
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but didnt test
c7f6791 to
80704dd
Compare
|
Rebased to resolve conflicts. /backport to stable26 |
|
/rebase |
|
/backport to stable26 |
|
/backport to stable25 |
80704dd to
675dfb3
Compare
|
@solracsf rebased it manually :) |
675dfb3 to
08aae0f
Compare
|
/compile amend / |
…emoving all rules When rules are grouped using the comma operator and one selector is invalid / unknown then the whole group is invalidated[1]. In this case `::-ms-input-placeholder` is unknown to Firefox and Chrome, so the `::placeholder` rule is never applied. [1]: https://www.w3.org/TR/selectors-3/#grouping Signed-off-by: Ferdinand Thiessen <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
08aae0f to
f8d558e
Compare
|
CI failure unrelated |
|
The backport to stable25 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable25
git pull origin/stable25
# Create the new backport branch
git checkout -b fix/foo-stable25
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable25More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
Manually done in #37829 |
Summary
When rules are grouped using the comma operator and one selector is invalid / unknown then the whole group is invalidated1.
In this case
::-ms-input-placeholderis unknown to Firefox and Chrome, so the::placeholderrule is never applied.Screenshots
See default color (
--color-text-main) is applied also for the placeholder on the before image, and note the missing::placeholderselector on the before image (on the "pseudo elements" section of the inspector).Checklist