[wp-trac] [WordPress Trac] #53605: Twenty Twenty-One: Investigate duplicate rules in `ie-editor.css`
WordPress Trac
noreply at wordpress.org
Thu Aug 19 05:38:08 UTC 2021
#53605: Twenty Twenty-One: Investigate duplicate rules in `ie-editor.css`
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.9
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: needs-testing has-patch good-first- | Focuses:
bug |
-------------------------------------------------+-------------------------
Changes (by mukesh27):
* owner: Shital Patel => (none)
* status: accepted => assigned
Comment:
We already fix a similar issue before so I think we have to go ahead with
the solution suggested below.
Replying to [comment:2 ryelle]:
> They suggest using a minification plugin or
[https://github.com/cssnano/cssnano/tree/master/packages/postcss-merge-
rules#by-declarations postcss-merge-rules] to merge these back together. …
Since I'm here, I gave the merge-rules plugin a try and it works
surprisingly well. I don't have my IE machine up at the moment, so I can't
test the output, but it looks correct.
>
> Just noting, this isn't the first issue we've had with `postcss-css-
variables` - see #52158 where the `postcss-discard-duplicates` plugin was
added to clean up another bug.
@shital-patel @Shaharyar10 Thanks for the patch. IE related CSS is
generated automatically in the build process.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53605#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list