forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-text] plain-text copy & paste does not preserve text-transform
This is a test for w3c/csswg-drafts#627
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
css/css-text/text-transform/text-transform-copy-paste-001-manual.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>CSS Text 3 test: effects of text-transform on plain text copy&paste</title> | ||
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net"> | ||
<link rel=help href="https://drafts.csswg.org/css-text-3/#text-transform-property"> | ||
<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, | ||
given that document.execCommand(‘copy’) only works when triggered by user interactions. | ||
--> | ||
<style> | ||
div { | ||
text-transform: uppercase; | ||
border: solid 5px blue; | ||
} | ||
textarea { border: solid 5px orange; } | ||
div, textarea { padding: 1em; } | ||
</style> | ||
|
||
<p>Copy the content of the blue box, then paste it in the orange box. | ||
<p>The test passes if the result is in lowercase. | ||
|
||
<div id=source>there is no need to shout</div> | ||
<textarea></textarea> |