Skip to content
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

[css-text] plain-text copy & paste does not preserve text-transform #13428

Merged
merged 1 commit into from
Dec 26, 2018

Conversation

frivoal
Copy link
Contributor

@frivoal frivoal commented Oct 9, 2018

This is a test for w3c/csswg-drafts#627

<meta name=flags content="interact">
<meta name=assert content="text-transform must not affect the content of a plain text copy and paste operation.">
<!--
I wish this test could be written automatedly, but I don't think it can,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you could rewrite this as testharness.js, then you can use testdriver.js and test_driver.bless() to automate this. And I think you can, since you just need to read back the value?

Note that @gsnedders will also be working on making testdriver.js work with reftests in #13183.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, document.execCommand(‘copy’) would benefit form test_driver.bless(), but also it's not quite clear whether it is standard or not. It is documented in https://w3c.github.io/editing/execCommand.html#the-copy-command-0, but that spec has a big "no done & not making progress" warning, and MDN calls it deprecated.

Also, even if you get past that, I then need to check the content of the clipboard, and I don't think here's a workable cross browser way to do that:

  • document.execCommand(‘paste’) isn't supported in regular web pages by anyone but IE
  • The alternative, the Clipboard API, is not supported across the board, and Firefox only supports reading the clipboard in browser extensions.

This may change eventually, but as far as I can tell, a manual test is still all we can do.

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frivoal frivoal merged commit e13446a into web-platform-tests:master Dec 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants