New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 731916 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

slot element inheriting inline display property incorrectly when called from chromedriver

Reported by dylan.ba...@deque.com, Jun 9 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

Steps to reproduce the problem:
1. Open attached file in Chrome
2. Open dev tools
3. expand Element tree until finding the first slot element
4. look at display property. Should say display:contents
5. Start a webdriver Chrome instance
6. open same document and look at display property of same slot element
7. display will be block

What is the expected behavior?
display should be contents in both instances

What went wrong?
display is block when instantiated from chromedriver

See the attached screenshot - on the left is the chromedriver instance, on the right is the regular Chrome instance

Did this work before? Yes Chrome 58

Does this work in other browsers? Yes

Chrome version: 59.0.3071.86  Channel: stable
OS Version: OS X 10.10.5
Flash Version:
 
chrome_broken_slot.html
1.5 KB View Download
chrome_broken.jpg
1.6 MB View Download
Labels: Needs-Triage-M59
Labels: TE-NeedsTriageFromMTV
Could some one from MTV please look into the issue, as it is related to Selenium WebDriver.
Thanks in Advance.

Comment 3 by shrike@chromium.org, Sep 15 2017

Cc: johnchen@chromium.org
Components: Tests>WebDriver
[mac bug triage] setting component
Labels: Needs-Feedback
dylan.barrell@,

The attached screenshot shows that you are pointing to two different elements in the Chrome launched by Chromedriver and in the regular Chrome.
Anyway I checked all the slot elements but I do not see any difference.

Chrome browser 59.0.3071.86 that you are using is an older version. Please upgrade to the current stable v61.0.3163.91. You may navigate to chrome://help to automatically update the browser version.
Also, do you see any issue/error during Chromedriver testing due to the difference in display property?


The issue that I have is that the accessibility testing tool we develop creates a bad flattened tree when run inside of Chromedriver - leading to false accessibility outcomes for tests. This is the same engine that is embedded inside the Chrome Audits tool and automatable as part of the Google Lighthouse project. We have temporarily worked around this by ignoring the display property on all slots - this in itself can lead to problems.

I may have highlighted different elements, but all slot elements are supposed to have display:contents unless changed by the CSS - which is not happening on that page.

On June 9th, Chromedriver 59 was the newest version. If you think the problem is no longer showing up in 61, then close the bug. I will re-open it if it re-surfaces.

Project Member

Comment 6 by sheriffbot@chromium.org, Sep 18 2017

Cc: gmanikpure@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "gmanikpure@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I have been unable to repro this bug. With both Chrome 59 and 61, and both with and without ChromeDriver, I got the same result, that all the slot elements have display: block. I haven't been able to see any cases where they receive display: contents.

Gauri: Could you please also give it a try? Thanks.
Yes John, I am also unable to reproduce the bug on current Chrome stable v61.0.3163.91 with & without Chromedriver. 

I think we can close this issue.

dylan.barrell@, if you see the issue again, please provide reproducible test.
Status: WontFix (was: Unconfirmed)
Gauri: Thanks for the information.

dylan.barrell@deque.com: I'm closing this bug as we were unable to repro it. If you are still experiencing this issue with latest Chrome, please do let us know and provide any additional information you may have, and we'll look further. Thanks.
Wait - If all the slot elements have display:block - THAT IS THE PROBLEM!!

slot elements are supposed to have display:contents by default.
I don't know enough about CSS for the default slot element style. Since this bug report was about Chrome behave differently when called from ChromeDriver, I was merely stating that I wasn't able to repro any differences with or without ChromeDriver.

Could you please open a new bug about the wrong style applied to slot elements? Please label it as a style problem, so that it can be routed correctly? Thanks.

Sign in to add a comment