Update web-platform-tests to revision 90aab682c731f768872ca2b37f047752d5da2d8a

This commit is contained in:
WPT Sync Bot 2020-10-01 08:19:23 +00:00
parent 701b698999
commit a71c7758db
139 changed files with 2383 additions and 998 deletions

View file

@ -9,7 +9,6 @@
<style>
div
{
background-color: yellow;
color: green;
float: left;
font-size: 32px;
@ -28,11 +27,13 @@
div.mixed
{
background-color: yellow;
text-orientation: mixed;
}
div.sideways
{
background-color: yellow;
text-orientation: sideways;
}
@ -40,6 +41,11 @@
{
text-orientation: upright;
}
div.upright > span
{
background-color: yellow;
}
</style>
<p>Test passes if each glyph of the 6 "Selected Text" is green and if there is <strong>no red</strong>.
@ -48,10 +54,10 @@
<div class="vrl sideways">Selected Text</div>
<div class="vrl upright">Selected Text</div>
<div class="vrl upright"><span>Selected Text</span></div>
<div class="vlr mixed">Selected Text</div>
<div class="vlr sideways">Selected Text</div>
<div class="vlr upright">Selected Text</div>
<div class="vlr upright"><span>Selected Text</span></div>

View file

@ -35,6 +35,15 @@
/* Then we set the range boundaries to the children of div#test */
window.getSelection().addRange(targetRange);
/* Finally, we now select such range of content */
document.getElementById("test").blur();
/*
Some browsers, like Chromium 80+, will
transfer focus to a selected element
like a contenteditable div and
therefore style the border of
such element. We remove such
focus with the blur() method.
*/
}
</script>