New issue
Advanced search Search tips

Issue 711575 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 569511

Blocking:
issue 651744



Sign in to add a comment

querySelector*(":target") doesn't work in 'load' event handler

Project Member Reported by tkent@chromium.org, Apr 14 2017

Issue description

Chrome Version: 59 canary
OS: All but iOS

What steps will reproduce the problem?
(1) Open http://w3c-test.org/dom/nodes/ParentNode-querySelector-All.html

What is the expected result?
No FAILs in :target-related tests

What happens instead?
There are FAILs in :target-related tests

Please use labels and text to provide additional information.
We dispatches load event, then call Document::SetCSSTarget(). So :target doesn't work in load event handler.
Issue 569511 resolves this issue.

Edge, Firefox, and Safari work correctly.


 

Comment 1 by tkent@chromium.org, Apr 14 2017

Components: Blink>CSS Blink>Loader

Comment 2 by tkent@chromium.org, Apr 14 2017

Issue 549590 is a related but different issue.

Comment 3 by tkent@chromium.org, Apr 14 2017

According to the HTML standard, It seems dispatching "load" event then "scroll to the fragment" matches to the standard.

The test depends on rendering timing, and I found the test sometimes produced a different result.
https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=webkit_tests&tests=ParentNode-querySelector-All.html

Comment 4 by tkent@chromium.org, Apr 18 2017

Owner: tkent@chromium.org
Status: Started (was: Available)
Components: -Blink>CSS
Keeping to a single component - this looks like the Loader team are handling this.

Comment 7 by tkent@chromium.org, Apr 18 2017

Status: Fixed (was: Started)

Sign in to add a comment