Skip to content

chore: remove IE 11 support#1003

Open
amareshsm wants to merge 3 commits into
mainfrom
remove-IE-support
Open

chore: remove IE 11 support#1003
amareshsm wants to merge 3 commits into
mainfrom
remove-IE-support

Conversation

@amareshsm
Copy link
Copy Markdown
Member

Prerequisites checklist

AI acknowledgment

  • [] I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

  • Removes IE 11 support as it reached end-of-life in June 2022 (with mainstream support having ended in October 2016).
  • Removes legacy Internet Explorer-specific polyfills and CSS fallbacks that are no longer necessary. IE is end-of-life and modern browsers support CSS custom properties and the :focus-visible pseudo-class natively. Removing these files and selectors reduces bundle size, simplifies the codebase, and eliminates dead compatibility logic.

What changes did you make? (Give an overview)

  • Removed the X-UA-Compatible meta tag from the base layout.

  • Deleted the IE polyfill scripts:
    - css-vars-ponyfill@2.js (ponyfill for CSS variables)
    - focus-visible.js (polyfill for :focus-visible)

  • Removed polyfill-specific CSS selectors and JS-class fallbacks from SCSS:
    - Eliminated .focus-visible and .js-focus-visible usages where the native :focus-visible selector is already present.

  • Updated base.html to load only main.js (no polyfills).

Related Issues

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Apr 16, 2026
@eslint-github-bot
Copy link
Copy Markdown

Hi @amareshsm!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

  • The length of the commit message must be less than or equal to 72

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for hi-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/hi-eslint/deploys/69fb9d9a35502600086d632f
😎 Deploy Preview https://deploy-preview-1003--hi-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for new-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/new-eslint/deploys/69fb9d9a620d2b0008564287
😎 Deploy Preview https://deploy-preview-1003--new-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for es-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/es-eslint/deploys/69fb9d9af228c30008ca50fc
😎 Deploy Preview https://deploy-preview-1003--es-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for ja-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/ja-eslint/deploys/69fb9d9a2179e10008acd071
😎 Deploy Preview https://deploy-preview-1003--ja-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for zh-hans-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/zh-hans-eslint/deploys/69fb9d9abf2fd40008f2d8a2
😎 Deploy Preview https://deploy-preview-1003--zh-hans-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@amareshsm amareshsm changed the title chore: remove legacy Internet Explorer polyfills and IE-specific fallbacks chore: remove IE 11 support Apr 16, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for fr-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/fr-eslint/deploys/69fb9d9aaad3e90008becde4
😎 Deploy Preview https://deploy-preview-1003--fr-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for de-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/de-eslint/deploys/69fb9d9a4ea6150009a63879
😎 Deploy Preview https://deploy-preview-1003--de-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for pt-br-eslint ready!

Name Link
🔨 Latest commit 237c9c4
🔍 Latest deploy log https://app.netlify.com/projects/pt-br-eslint/deploys/69fb9d9af13b3d0007af4bc9
😎 Deploy Preview https://deploy-preview-1003--pt-br-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@amareshsm amareshsm marked this pull request as draft April 16, 2026 20:22
@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Apr 26, 2026
@github-actions
Copy link
Copy Markdown

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions Bot added the Stale label Apr 26, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

This pull request was auto-closed due to inactivity. While we wish we could keep working on every request, we unfortunately don't have the bandwidth to continue here and need to focus on other things. You can resubmit this pull request if you would like to continue working on it.

@github-actions github-actions Bot closed this May 3, 2026
@github-project-automation github-project-automation Bot moved this from Implementing to Complete in Triage May 3, 2026
@amareshsm amareshsm reopened this May 6, 2026
@github-project-automation github-project-automation Bot moved this from Complete to Evaluating in Triage May 6, 2026
@amareshsm amareshsm removed the Stale label May 6, 2026
@amareshsm amareshsm marked this pull request as ready for review May 6, 2026 20:04
@lumirlumir lumirlumir requested a review from Copilot May 7, 2026 12:29
@lumirlumir lumirlumir moved this from Evaluating to Triaging in Triage May 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes legacy Internet Explorer 11 compatibility code from the ESLint.org site by deleting polyfills and pruning IE-specific CSS/markup, simplifying the frontend assets shipped to browsers.

Changes:

  • Removed IE-related scripts from the base layout and deleted legacy polyfill files.
  • Dropped IE-specific SCSS selectors and vendor-prefixed/high-contrast fallbacks, favoring modern standards (e.g., native :focus-visible, forced-colors).
  • Cleaned up remaining IE-only CSS prefixes (-ms-*) across components.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/_includes/layouts/base.html Removes X-UA-Compatible and stops loading legacy polyfill scripts.
src/assets/scss/foundations.scss Removes .focus-visible / .js-focus-visible fallbacks; relies on native focus styling.
src/assets/scss/forms.scss Removes IE-specific select/search/checkbox styling fallbacks.
src/assets/scss/components/slider.scss Removes .js-focus-visible focus fallback selector.
src/assets/scss/components/popup.scss Removes .focus-visible / .js-focus-visible focus fallback selectors.
src/assets/scss/components/search.scss Removes IE-specific ::-ms-clear / ::-ms-reveal rules.
src/assets/scss/components/playground-configuration.scss Removes -ms-transform usage.
src/assets/scss/components/accordion.scss Removes -ms-transform usage.
src/assets/scss/branding.scss Removes .focus-visible class-based fallback styling.
src/assets/scss/syntax-highlighter.scss Removes -ms-hyphens vendor prefix.
src/assets/js/css-vars-ponyfill@2.js Deletes CSS variables ponyfill.
src/assets/js/focus-visible.js Deletes :focus-visible polyfill.
src/assets/js/intersectionObserver-polyfill.js Deletes IntersectionObserver polyfill.
src/assets/js/inert-polyfill.js Deletes inert polyfill.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 21 to 25
outline-offset: 3px;
}

*.focus-visible {
outline: 2px solid var(--outline-color);
outline-offset: 3px;
}

*:focus:not(:focus-visible) {
outline: 1px solid transparent;
Copy link
Copy Markdown
Member

@lumirlumir lumirlumir left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

I personally like this change, but since :focus-visible has been widely available since 2022, some may feel that dropping browsers released before then is a bit restrictive. I’d like to raise this for further discussion with future reviewers.

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:focus-visible

@lumirlumir lumirlumir moved this from Triaging to Second Review Needed in Triage May 7, 2026
@DMartens
Copy link
Copy Markdown
Contributor

DMartens commented May 7, 2026

Changes LGTM, but I found an additional polyfill which should be removed in src/assets/js/slider.js#2-29.
Regarding the browser support: according to caniuse the global browsers not supporting :focus-visible are ~2%.
To be safe, I think we have to revert the :focus-visible for now.
But in general, I think we should first harmonize the existing browserslist:

  • eslint.org has none
  • eslint/docs: defaults, IE11
  • code-explorer: >0.2%, not dead, not op_min all (this would not allow :focus-visible)

@amareshsm
Copy link
Copy Markdown
Member Author

Changes LGTM, but I found an additional polyfill which should be removed in src/assets/js/slider.js#2-29. Regarding the browser support: according to caniuse the global browsers not supporting :focus-visible are ~2%. To be safe, I think we have to revert the :focus-visible for now. But in general, I think we should first harmonize the existing browserslist:

  • eslint.org has none
  • eslint/docs: defaults, IE11
  • code-explorer: >0.2%, not dead, not op_min all (this would not allow :focus-visible)

Makes sense to me 👍

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

Projects

Status: Second Review Needed

Development

Successfully merging this pull request may close these issues.

4 participants