mirror of
https://github.com/servo/servo.git
synced 2025-09-11 23:48:21 +01:00
Update web-platform-tests to revision fe78f2a1ad48c1e0132634e957369d8d674e4258
This commit is contained in:
parent
871fe9306f
commit
f9b7afc45e
59 changed files with 1352 additions and 82 deletions
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<title>CSS Test: calc() with positive fraction halfway between adjacent integers</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-values-4/#combine-integers">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
|
||||
<meta name="flags" content="">
|
||||
|
||||
<style>
|
||||
div
|
||||
{
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
div#red-overlapped
|
||||
{
|
||||
background-color: red;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
div#green-overlapping
|
||||
{
|
||||
background-color: green;
|
||||
z-index: calc(3 / 2);
|
||||
/*
|
||||
should resolve to 'z-index: 2' since "values
|
||||
halfway between adjacent integers rounded
|
||||
towards positive infinity" and since
|
||||
div#green-overlapping is last in document
|
||||
tree order, then it should overlap
|
||||
div#red-overlapped
|
||||
*/
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.
|
||||
|
||||
<div id="red-overlapped"></div>
|
||||
|
||||
<div id="green-overlapping"></div>
|
Loading…
Add table
Add a link
Reference in a new issue