-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot test ::target-text rendering #26364
Comments
I made this patch to allow me to work on test-cases, but it's by no means PR-ready: https://chromium-review.googlesource.com/c/chromium/src/+/2517060 It introduces support for a meta tag for fragments:
|
Sorry for the late reply. To capture the discussion on Slack, there are three approaches considered so far:
My hunch is that option 3 is the easiest. |
It looks like this should be possible with |
This currently works for testharness tests, at least in Chrome:
Adding a loop over RefTests adding the variants at the end of the url like we do for TestHarness makes us run the reftests correctly in Chrome, but with missing expectation file. There's probably a simple fix for that. |
I just needed to strip the query off the path for references to make it work with variants: https://chromium-review.googlesource.com/c/chromium/src/+/2537679 |
Added an RFC PR here: web-platform-tests/rfcs#71 |
Keeping this issue up-to-date: The RFC got a bit bogged down, but in late December we agreed on a path forward. We are now waiting for @lilles to update it to encompass the option that WPT core team could agree on (web-platform-tests/rfcs#71 (comment)). |
It seems it's possible to write tests for |
There are a lot of limitations on when we are allowed to use text fragment for navigation:
https://wicg.github.io/scroll-to-text-fragment/#security-and-privacy
I have not found a way to make a ref-test within these limitations with the current wpt framework. Testing locally, I am able to do so by adding support for meta variants for reftests. That is, add and add the first variant to the rel_url here:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/tools/blinkpy/third_party/wpt/wpt/tools/manifest/sourcefile.py;l=1107
For some reason, the -ref.html would not generate a screen-shot with that change, but it's probably a simple fix for it.
Could we consider supporting variants, or a simple fragment addition to reftests?
The text was updated successfully, but these errors were encountered: