nth-last-child selector matches incorrect element

Issue #4124732 • Assigned to Rossen A.


Aug 13, 2015
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

  1. Launch IE11 or Edge.
  2. Navigate to http://x9n.com/bugreports/child-selector-bug.html
  3. Note that paragraph “B” is incorrectly styled red. (The style should only apply to the last paragraph.)
  4. Launch F12 Developer Tools.
  5. Examine the style of paragraph “B” in DOM Explorer.
  6. Note that paragraph “B” is now correctly styled.

Expected Results:

The :nth-last-child(1) selector should only match an element that is the last child of its parent.

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Christian F.”

      Changed Assigned To to “Rossen A.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in