Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Mar 31, 2023

  • Resolves: #

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-placeholder is unknown to Firefox and Chrome, so the ::placeholder rule is never applied.

Screenshots

See default color (--color-text-main) is applied also for the placeholder on the before image, and note the missing ::placeholder selector on the before image (on the "pseudo elements" section of the inspector).

before after
image image

Checklist

@susnux susnux added bug design Design, UI, UX, etc. 3. to review Waiting for reviews labels Mar 31, 2023
@susnux susnux requested review from a team, Pytal, artonge and szaimen and removed request for a team March 31, 2023 15:00
Copy link
Contributor

@szaimen szaimen left a 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

@susnux susnux requested a review from CarlSchwan April 3, 2023 10:25
@susnux susnux force-pushed the fix/css-placeholder-color branch from c7f6791 to 80704dd Compare April 3, 2023 10:27
@susnux
Copy link
Contributor Author

susnux commented Apr 3, 2023

Rebased to resolve conflicts.

/backport to stable26
/backport to stable25

@susnux susnux added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 3, 2023
@solracsf
Copy link
Member

solracsf commented Apr 5, 2023

/rebase

@solracsf
Copy link
Member

solracsf commented Apr 5, 2023

/backport to stable26

@solracsf
Copy link
Member

solracsf commented Apr 5, 2023

/backport to stable25

@susnux susnux force-pushed the fix/css-placeholder-color branch from 80704dd to 675dfb3 Compare April 8, 2023 12:22
@susnux
Copy link
Contributor Author

susnux commented Apr 8, 2023

@solracsf rebased it manually :)

@szaimen szaimen force-pushed the fix/css-placeholder-color branch from 675dfb3 to 08aae0f Compare April 17, 2023 21:43
@szaimen
Copy link
Contributor

szaimen commented Apr 17, 2023

/compile amend /

@szaimen szaimen enabled auto-merge April 17, 2023 21:43
…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]>
@nextcloud-command nextcloud-command force-pushed the fix/css-placeholder-color branch from 08aae0f to f8d558e Compare April 17, 2023 22:25
@szaimen
Copy link
Contributor

szaimen commented Apr 18, 2023

CI failure unrelated

@szaimen szaimen disabled auto-merge April 18, 2023 09:48
@szaimen szaimen merged commit 1d40be8 into master Apr 18, 2023
@szaimen szaimen deleted the fix/css-placeholder-color branch April 18, 2023 09:49
@szaimen szaimen added this to the Nextcloud 27 milestone Apr 18, 2023
@backportbot-nextcloud
Copy link

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-stable25

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@susnux
Copy link
Contributor Author

susnux commented Apr 19, 2023

The backport to stable25 failed. Please do this backport manually.

Manually done in #37829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug design Design, UI, UX, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants