mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'
This commit is contained in:
parent
35e95f55a1
commit
58e8ee674b
9438 changed files with 266112 additions and 106976 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -16,4 +17,4 @@
|
|||
|
||||
<p>Test passes if each glyph of "Selected Text" is green and <strong>not red</strong> while background color of each glyph of "Selected Text" is white.
|
||||
|
||||
<div>Selected Text</div>
|
||||
<div class="highlight_reftest">Selected Text</div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -18,4 +19,4 @@
|
|||
|
||||
<p>Test passes if the background color of each glyph of "Selected Text" is green and <strong>not red</strong> while each glyph of "Selected Text" is fuchsia.
|
||||
|
||||
<div>Selected Text</div>
|
||||
<div class="highlight_reftest">Selected Text</div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -44,4 +45,4 @@
|
|||
|
||||
<p>Test passes if each glyph of "Selected Text" is underlined and if color and background color of "Selected Text" are the OS-default highlight colors. The underline color must also be the same as the highlight color of "Selected Text".
|
||||
|
||||
<div id="test">Selected Text</div>
|
||||
<div id="test" class="highlight_reftest">Selected Text</div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -19,4 +20,4 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<div>FAIL <span>PASS</span></div>
|
||||
<div class="highlight_reftest">FAIL <span>PASS</span></div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -16,4 +17,4 @@
|
|||
|
||||
<p>Test passes if each glyph of "Selected Text" is green, if background color of each glyph of "Selected Text" is white and if there is <strong>no red</strong>.
|
||||
|
||||
<div>Selected Text</div>
|
||||
<div class="highlight_reftest">Selected Text</div>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -18,4 +19,4 @@
|
|||
|
||||
<p>Test passes if each glyph of "Selected Text" is green and <strong>not red</strong> and if the underline, the overline and the line-through are also green and not red.
|
||||
|
||||
<div>Selected Text</div>
|
||||
<div class="highlight_reftest">Selected Text</div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -23,4 +24,4 @@
|
|||
|
||||
<p>Test passes if background color of "Selected Text" is yellow, if the "S" glyph is purple and if the other glyphs are green.
|
||||
|
||||
<div><span>S</span>elected Text</div>
|
||||
<div class="highlight_reftest"><span>S</span>elected Text</div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -30,6 +31,6 @@
|
|||
|
||||
<p>Test passes if both "selected text" have a yellow background, if the glyphs of "1st selected text" are purple and if the glyphs of "2nd selected text" are green.
|
||||
|
||||
<div><span id="first">1st selected text</span></div>
|
||||
<div class="highlight_reftest"><span id="first">1st selected text</span></div>
|
||||
|
||||
<div><span id="second">2nd selected text</span></div>
|
||||
<div class="highlight_reftest"><span id="second">2nd selected text</span></div>
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
div > div
|
||||
{
|
||||
color: green;
|
||||
float: left;
|
||||
|
@ -50,14 +51,18 @@
|
|||
|
||||
<p>Test passes if each glyph of the 6 "Selected Text" is green and if there is <strong>no red</strong>.
|
||||
|
||||
<div class="vrl mixed">Selected Text</div>
|
||||
<div class="highlight_reftest">
|
||||
|
||||
<div class="vrl sideways">Selected Text</div>
|
||||
<div class="vrl mixed">Selected Text</div>
|
||||
|
||||
<div class="vrl upright"><span>Selected Text</span></div>
|
||||
<div class="vrl sideways">Selected Text</div>
|
||||
|
||||
<div class="vlr mixed">Selected Text</div>
|
||||
<div class="vrl upright"><span>Selected Text</span></div>
|
||||
|
||||
<div class="vlr sideways">Selected Text</div>
|
||||
<div class="vlr mixed">Selected Text</div>
|
||||
|
||||
<div class="vlr upright"><span>Selected Text</span></div>
|
||||
<div class="vlr sideways">Selected Text</div>
|
||||
|
||||
<div class="vlr upright"><span>Selected Text</span></div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -26,4 +27,4 @@
|
|||
|
||||
<p>Test passes if the background of characters "c" and "t" is orange (and only those 2 characters) and if the space between those 2 characters is also orange.
|
||||
|
||||
<div><span id="yellow">Sele<span id="orange">ct</span>ed</span></div>
|
||||
<div class="highlight_reftest"><span id="yellow">Sele<span id="orange">ct</span>ed</span></div>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
{
|
||||
|
@ -26,4 +27,4 @@
|
|||
|
||||
<p>Test passes if the background of characters "c" and "t" is orange and if the space between those 2 characters is yellow (and not orange).
|
||||
|
||||
<div><span id="yellow">Sele<span class="orange">c</span> <span class="orange">t</span>ed</span></div>
|
||||
<div class="highlight_reftest"><span id="yellow">Sele<span class="orange">c</span> <span class="orange">t</span>ed</span></div>
|
||||
|
|
|
@ -8,25 +8,26 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
#ref
|
||||
{
|
||||
font-size: 60px;
|
||||
line-height: 90px;
|
||||
}
|
||||
|
||||
div#overlapped-line
|
||||
{
|
||||
position: relative;
|
||||
color: transparent;
|
||||
margin-bottom: -90px;
|
||||
}
|
||||
|
||||
span#single-word
|
||||
#ref > div
|
||||
{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#grammar-error > span
|
||||
{
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
span#overlapping-line
|
||||
#selection > span
|
||||
{
|
||||
background-color: rgba(0%, 50%, 100%, 0.5);
|
||||
/*
|
||||
|
@ -38,23 +39,6 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function startTest()
|
||||
{
|
||||
document.getElementById("reference").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>
|
||||
|
||||
<body onload="startTest();">
|
||||
|
||||
<p>PREREQUISITE: User agent needs to have an enabled and capable grammar error module. If it does not, then this test does not apply to such user agent.
|
||||
|
||||
<p>Test passes
|
||||
|
@ -66,6 +50,8 @@
|
|||
<li>if there is no red.
|
||||
</ul>
|
||||
|
||||
<div id="overlapped-line">Many <span id="single-word">thing</span> can happen.</div>
|
||||
|
||||
<div contenteditable="true"><span id="overlapping-line">Many thing can happen.</span></div>
|
||||
<div id="ref" class="highlight_reftest">
|
||||
<div id="grammar-error">Many <span>thing</span> can happen.</div>
|
||||
<div id="selection"><span>Many thing can happen.</span></div>
|
||||
Many thing can happen.
|
||||
</div>
|
||||
|
|
|
@ -8,29 +8,26 @@
|
|||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
|
||||
<link rel="stylesheet" href="../support/highlights.css">
|
||||
<style>
|
||||
div
|
||||
#ref
|
||||
{
|
||||
font-size: 60px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
span#outer
|
||||
{
|
||||
position: relative;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
span#inner
|
||||
#ref > div
|
||||
{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#spelling-error > span
|
||||
{
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
div#overlapping-line
|
||||
{
|
||||
margin-top: -60px; /* -1lh unfortunately is not implemented */
|
||||
}
|
||||
|
||||
div#overlapping-line > span
|
||||
#selection > span
|
||||
{
|
||||
background-color: rgba(0%, 50%, 100%, 0.5);
|
||||
/*
|
||||
|
@ -53,10 +50,8 @@
|
|||
<li>if there is no red.
|
||||
</ul>
|
||||
|
||||
<!--
|
||||
The bad spelling of Txet is intentional and part of this test
|
||||
-->
|
||||
|
||||
<div id="overlapped-line"><span id="outer"><span id="inner">Txet</span> sample</span></div>
|
||||
|
||||
<div id="overlapping-line"><span>Txet sample</span></div>
|
||||
<div id="ref" class="highlight_reftest">
|
||||
<div id="spelling-error"><span>Txet</span> sample</div>
|
||||
<div id="selection"><span>Txet sample</span></div>
|
||||
Txet sample
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue