- Issue created by @longwave
- Status changed to Needs review
over 1 year ago 7:58pm 31 March 2023 - 🇬🇧United Kingdom longwave UK
postcss-preset-env
now adds-webkit-text-decoration
everywheretext-decoration
is used due to a Safari issue: https://github.com/postcss/autoprefixer/issues/1473 - Status changed to RTBC
over 1 year ago 2:59am 1 April 2023 - 🇺🇸United States smustgrave
No failures.
Not sure the level of concern -webkit-text-decoration being added everywhere. Assuming none just mentioning.
- 🇬🇧United Kingdom longwave UK
There is no concern from me, just a note to reviewers in case they are surprised by the diff like I was.
- Status changed to Needs review
over 1 year ago 9:07am 1 April 2023 - 🇬🇧United Kingdom longwave UK
Actually Olivero's variables.css has some odd looking changes, would like a second opinion on those from a frontend developer.
- 🇺🇸United States mherchel Gainesville, FL, US
Something's looking weird here. I'm seeing lots of additions of
-webkit-text-decoration
, which makes absolutely no sense since that's a very old and well supported property.In general this need to be done, as it's the correct resolution for 🐛 PostCSS Logical not transpiling flow relative properties (e.g. float: inline-start) which are not supported by Chrome and Safari Fixed , where PostCSS Preset ENV now includes https://www.npmjs.com/package/@csstools/postcss-logical-float-and-clear (see https://github.com/csstools/postcss-plugins/issues/632)
I'm going to pull it down and take a closer look.
- Status changed to Needs work
over 1 year ago 7:22pm 5 April 2023 - 🇺🇸United States mherchel Gainesville, FL, US
The patch no longer applies to 10.1.x
I ran the following commands:
$ yarn add -D postcss-preset-env $ yarn upgrade postcss postcss-import
Then I ran
yarn build:css
.The CSS that was generated for me was different than the patch above:
- My CSS wasn't adding the unnecessary
-webkit-
prefix ontext-decoration
- My CSS was also not formatting the generated CSS properly (which should have been fixed in #3314523: PostCSS results in CSS that does not comply with our coding standards → )
In addition, the new version is moving around some style blocks, which could potentially have regressions (although I doubt it actually will).
Setting this to NW based on all of this. I wish I had more time to work on this, but I don't at the moment.
- My CSS wasn't adding the unnecessary
- Status changed to Needs review
over 1 year ago 3:22am 6 April 2023 - 🇮🇳India gauravvvv Delhi, India
Patch #2, no longer applies to 10.1.x. I have re-rolled the patch. please review
- Status changed to Needs work
over 1 year ago 3:29am 6 April 2023 - 🇺🇸United States smustgrave
Umm that patch is almost 4 times the size of patch 2.
Also mentioned in the comment before there were some issues. Did you run the same steps mentioned in #7?
- Status changed to Needs review
over 1 year ago 3:29am 6 April 2023 - 🇮🇳India gauravvvv Delhi, India
Above patch has some errors (size is too high), I have rebased the branch and provided the latest patch.
- 🇮🇳India gauravvvv Delhi, India
Also mentioned in the comment before there were some issues. Did you run the same steps mentioned in #7?
Yes I ran the same steps, it might be because of my branch was not up to date. I have provided the patch after rebasing the branch.
- 🇳🇱Netherlands spokje
So, "interestingly" when I do a
yarn install
followed by ayarn build:css
, so _without_ updating anything, I get the changes in the attached patch, which seem just to have (very) wrong indentations - 🇳🇱Netherlands spokje
If I revert 📌 Update Stylelint and Prettier for Drupal 10.1 and use Prettier for formatting PostCSS Fixed and run
yarn build:css
I get the same CSS as in the HEAD.
So it looks like that issue broke somethingAlso, we don't seem to be running
yarn build:css
whenevercore/package.json
and/orcore/package.lock
changes in our commit checks, which would have caught the above, me thinks. - Status changed to Needs work
over 1 year ago 10:32am 6 April 2023 - 🇬🇧United Kingdom longwave UK
I've reverted 📌 Update Stylelint and Prettier for Drupal 10.1 and use Prettier for formatting PostCSS Fixed . Stylelint 15 has deprecated indentation and other opinionated style rules, and they have been removed from
stylelint-config-standard
30. This is why the reformatting no longer works. We will have to migrate to Prettier or similar to continue reformatting our CSS. - 🇳🇱Netherlands spokje
Let's wait until 📌 Update Stylelint and Prettier for Drupal 10.1 and use Prettier for formatting PostCSS Fixed is committed before proceeding here, to prevent endless rerolling because of conflicts in yarn.lock.
- 🇳🇱Netherlands spokje
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 29,366 pass - @gauravvvv opened merge request.
- Status changed to Needs review
over 1 year ago 4:16am 1 May 2023 - Status changed to Needs work
over 1 year ago 12:20pm 1 May 2023 - 🇺🇸United States mherchel Gainesville, FL, US
This is still adding the unnecessary
-webkit-text-decoration
properties to the CSS. Haven't looked at why, but this is not needed. Webkit has support the unprefixed version since 2014. - Status changed to Needs review
over 1 year ago 12:39pm 1 May 2023 - 🇬🇧United Kingdom longwave UK
@mherchel this is to work around a bug in Safari, see https://github.com/postcss/autoprefixer/issues/1473
- 🇺🇸United States mherchel Gainesville, FL, US
OMG Safari 🤦♂️
Will look at this closely today (if no one beats me to it)
- Status changed to RTBC
over 1 year ago 3:04pm 1 May 2023 - 🇺🇸United States mherchel Gainesville, FL, US
This looks good! I pulled down the patch, and verified the CSS (paying special attention to the changes in Olivero's
variables.css
).I also verified no changes to the CSS when I do a yarn
build:css
, and I also verified theyarn watch:css
functionality.I also verified that the new syntax of CSS nesting works (removes
@nest
,&
not always needed, etc). At some point we'll convert to that.Note that I have a couple questions upstream that don't affect us quite yet, and I opened up an issue at https://github.com/csstools/postcss-plugins/issues/958
- last update
over 1 year ago 29,371 pass - last update
over 1 year ago 29,378 pass - last update
over 1 year ago 29,379 pass - last update
over 1 year ago 29,380 pass - Status changed to Fixed
over 1 year ago 2:54pm 10 May 2023 - 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 10.1.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.