Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

The CSS contained vendor prefixes that are obsolete for modern browsers (IE9+ era).

Changes

  • Removed -webkit-box-shadow, -moz-box-shadow prefixes (3 instances)
  • Removed -webkit-transition, -moz-transition, -ms-transition, -o-transition prefixes
  • Replaced ::-moz-selection with standard ::selection pseudo-element

Before

body > div.container {
    -webkit-box-shadow: 0 0 8px 3px #eee;
    -moz-box-shadow: 0 0 8px 3px #eee;
    box-shadow: 0 0 8px 3px #eee;
}

.btn {
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -ms-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

::-moz-selection {
    background: #b3d4fc;
}

After

body > div.container {
    box-shadow: 0 0 8px 3px #eee;
}

.btn {
    transition: background-color 0.3s;
}

::selection {
    background: #b3d4fc;
}

Net: 10 lines removed, no functional changes. All properties supported unprefixed since IE9/IE10 (2011-2012) and Firefox 62+ (2018).

Original prompt

There are some outdated vendor prefixes currently residing in the CSS code. Please fix this issue


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits November 13, 2025 17:11
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix outdated vendor prefixes in CSS code Remove outdated vendor prefixes from CSS Nov 13, 2025
Copilot AI requested a review from DRSDavidSoft November 13, 2025 17:16
@DRSDavidSoft DRSDavidSoft marked this pull request as ready for review November 13, 2025 17:24
@DRSDavidSoft DRSDavidSoft merged commit a2b1aa4 into master Nov 13, 2025
2 checks passed
@DRSDavidSoft DRSDavidSoft deleted the copilot/fix-outdated-vendor-prefixes branch November 13, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants