Skip to content

[stable26] Ungroup placeholder css rules - #38487

Merged
susnux merged 1 commit into
stable26from
backport/37522/stable26
Jun 7, 2023
Merged

[stable26] Ungroup placeholder css rules#38487
susnux merged 1 commit into
stable26from
backport/37522/stable26

Conversation

@susnux

Copy link
Copy Markdown
Contributor

Summary

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

Checklist

@susnuxsusnux added the 3. to review Waiting for reviews label May 26, 2023
@susnuxsusnux added this to the Nextcloud 26.0.3 milestone May 26, 2023
@susnux
susnuxforce-pushed the backport/37522/stable26 branch from f71f86d to 8e6e936CompareMay 30, 2023 10:08
@susnux
susnux requested review from a team, Pytal, nfebe and szaimen and removed request for a teamMay 30, 2023 10:08

@szaimenszaimen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but didnt test

@nfebenfebe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is not happy yet though :)

@susnux
susnuxforce-pushed the backport/37522/stable26 branch from 8e6e936 to a4f3dcfCompareMay 30, 2023 17:49
@susnux

Copy link
Copy Markdown
ContributorAuthor

CI errors are unrelated (there are no PHP code changes)

@susnuxsusnux added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 30, 2023
…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 <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux
susnuxforce-pushed the backport/37522/stable26 branch from dbb8ff7 to 672d44cCompareJune 7, 2023 12:31
@susnux
susnux enabled auto-merge June 7, 2023 12:31
@susnux
susnux merged commit cb5a9fa into stable26Jun 7, 2023
@susnux
susnux deleted the backport/37522/stable26 branch June 7, 2023 13:14
@blizzzblizzz mentioned this pull request Jun 12, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@susnux@nfebe@szaimen