Has the tr:active selector in IE 11 malfunctioned?

My issue is with selecting and highlighting td elements in IE. I am unable to highlight all td elements in a tr using tr:active, although this works correctly in FireFox and Chrome. You can view an example on JsFiddle here. Can someone help me identify if there's an error in the CSS code?

The problem persists across various browsers such as Chrome, Safari, Opera, and FF...
HTML

<body>
    <br />
    <div id="rowCount">
        <table class='t2'>
            <tr>
                <th>Clicking a cell should highlight all cells in the row</th>
            </tr>
            <tr>
                <td>tr:active td</td>
                <td>td:active</td>
            </tr>
        </table>
    </div>
</body>

CSS

table {
    cursor: default;
    border: 1px solid black;
    background-color: transparent;
}
div {
    z-index: 0;
    display: block;
    border:4px solid #CC3300;
    width: 80%;
    background-color: #4D70DB;
}
th{
    text-align: left;
}
td{
    border: 1px solid #000000;
}

tr:hover td {
    border:1px solid #CC3300;
}

tr:active td{
    background-color: #CC3300;
}
td:active {
    color: aqua;
}

Answer №1

It has come to my attention that the tr:active is not functioning properly on IE11 and earlier versions. While I have yet to test it on the Edge browser, it seems to be a common bug affecting IE9, 8, and 7 as well.

Upon conducting some research, I discovered that most other browsers previously encountered this same issue. A similar problem can be found in a bug report regarding Firefox, which you can view here.

Despite my search on Microsoft Connect, I could not locate a bug report matching your exact issue. Therefore, I have initiated a new bug report that you can monitor by following this link.

As some comments on the post suggested, another thread on Microsoft Connect is also closely related. You may track the progress of that bug report here.

I appreciate you bringing this to my attention. It is indeed an important discovery.

PS: Unfortunately, my current capabilities are limited. However, I plan to assess whether this issue has been rectified in the Edge browser later today.


UPDATE

The Microsoft Edge Team reached out to inform me: "This issue seems to have been resolved in MS Edge."

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Content is not centered with Bootstrap's flexbox

The alignment of content is not centered using bootstrap flex <div class="d-flex flex-row bd-highlight mb-3"> <div class="p-2 bd-highlight text-left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div> <div cla ...

Solve inconsistent divs using HTML and Bootstrap styling techniques

I'm currently working on a .cshtml page where I display database objects in a card format using HTML and Bootstrap. However, the cards are appearing unevenly as shown below: https://i.sstatic.net/LbrrH.png Here is the code snippet I am using: @model ...

Error encountered with the item properties in vue-simple-calendar 'classes'

For my Vue.js project, I am utilizing the npm calendar package called `vue-simple-calendar` and aiming to implement dynamic classes for each event item like background-color, etc. However, the `classes` property doesn't seem to be functioning as expec ...

How to activate a media query in response to user interaction using JavaScript

My responsive web page has various designs for different screen sizes, implemented using @media queries. I am interested in allowing users to manually adjust the design for smaller or larger screens without actually changing the screen size. Is there a wa ...

Creating triangular shapes that can be interacted with by hovering

I'm trying to create a diagonal triangle on the screen that changes color when hovered over. However, my current method only creates a 'hack triangle' which is actually just a rectangle and doesn't respond to the transparent section. I ...

Having trouble changing the style property of the `<div>` element in my JS function within Bootstrap Studio

I am currently utilizing Bootstrap in Bootstrap Studio along with plain JavaScript. One of the challenges I am facing pertains to changing the background color of a <div> element upon selecting a new tab. The objective is to dynamically alter the ba ...

What is the best way to trigger a new css animation on an element that is already in the midst of

Let's talk about an element that already has an animation set to trigger at a specific time: .element { width: 100%; height: 87.5%; background: #DDD; position: absolute; top: 12.5%; left: 0%; -webkit-animation: load 0.5s ease-out 5s bac ...

Searching for a specific element using Python and Selenium

Is there a way to locate an element using Selenium even if the XPath changes occasionally? Here is the code snippet: <input type="submit" value="Convert"> ...

Issue with aligning columns to the right in Bootstrap 4

Currently, I am utilizing Bootstrap v4.0.0-alpha.6 In a single row, I have three columns displayed and I am looking to swap the first column with the last column specifically in md screen size but not in sm/xs. Here is how I envision it in desktop mode: ...

The background-repeat-x property is not being retrieved by the Selenium WebDriver getCssValue() function

My goal is to check if a background image exists and if the `repeat-x` property is set. I can successfully retrieve the background image using the following code: driver.findElement(By.xpath("//body").getCssValue("background-image"); This code returns a ...

Modifying an image with jQuery

Why won't this image change? Below is the relevant HTML, CSS, and jQuery code. HTML <nav id="desktop-nav"> <div class="logo"> <a href="#"></a> </div> <div> ... </div> ... CSS nav#desktop-nav . ...

Unable to modify the CSS of flask_bootstrap

I've been attempting to include static CSS files in my Flask application. I'm utilizing flask_bootstrap but encountering difficulties with the implementation - even though I followed the guidelines provided at but something seems amiss. Here are ...

The rotation function of the div element is malfunctioning

Exploring CSS has led me to a peculiar issue where transform:rotate is not functioning as expected. Here is an instance of the animation not triggering: jsFiddle CSS .close { width:100px; height:100px; background:#00f; ...

Do class bindings with variables need to be inline when using Vue 3?

Consider the following HTML: <template v-for="(child, index) in group"> <div :class="{'border-pink-700 bg-gray-100 ': selected === child.id}"> <div>Container Content</div> </div> & ...

Tips for displaying or concealing a specific block by clicking on an element

I have a list-menu called .sidebar-menu and each li within this list has its own unique id. There is also a block called .services-info, containing several blocks with one of them supposed to appear when you click on an item in the .sidebar-menu that corre ...

Scrolling seamlessly within a container that is fixed in position

For hours, I've been attempting to incorporate smooth scrolling into my project with no success. The issue lies in the container where the anchor tags are located. If it's set to fixed position or absolute, none of my attempts seem to work. In ...

The division of columns in the Bootstrap grid is malfunctioning

Recently, I embarked on my journey with Bootstrap and encountered an issue with the Grid Col System. I am aiming to center the logo and navigation bar on the page by dividing the Grid layout into 4 col-lg-4 (md-4). Subsequently, I inserted the image and na ...

Customize Your Chartjs Background Color Settings

I'm working on an angular application that includes a chartjs line graph, and I'm trying to get the line chart to shade the background red for negative numbers. The issue I'm facing is figuring out how to calculate the bottom of the chart. ...

Bootstrap 4.6 - new feature: flexible vertical pills and sleek horizontal tabs (inactive tab no longer highlighted)

I recently implemented Bootstrap 4.6 into my project. The page I am working on includes both vertical pills and horizontal tabs. While the vertical pills are displaying correctly, I have encountered an issue with the styling of the horizontal tabs when th ...

Display a tooltip when hovering over a disabled button

There's a button on my page that goes into a disabled state when clicked, and then reverts back to an enabled state once the server update is complete. The title = "Test When Disabled" displays whether the button is enabled or disabled. I o ...