mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings">
|
||||
<link rel="match" href="reference/ref-if-there-is-no-red.htm">
|
||||
<link rel="match" href="reference/ref-filled-green-100px-square.htm">
|
||||
|
||||
<!--
|
||||
Test adapted from
|
||||
Test adapted and modified from
|
||||
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-009.htm
|
||||
|
||||
"
|
||||
@@ -19,7 +19,7 @@
|
||||
-->
|
||||
|
||||
<meta content="ahem image" name="flags">
|
||||
<meta name="assert" content="This test checks that elements with 'overflow' set to 'hidden' do not collapse margin with in-flow children in 'vertical-rl' writing-mode.">
|
||||
<meta name="assert" content="This test checks that elements with 'overflow' set to 'hidden' do not collapse their horizontal margin with the horizontal margin in-flow children in 'vertical-rl' writing-mode. In this test, we are testing and checking that 'margin-right' of div#overflow does not collapse with 'margin-right' of div#nested.">
|
||||
|
||||
<style type="text/css">
|
||||
div
|
||||
@@ -30,21 +30,22 @@
|
||||
|
||||
div#wrapper
|
||||
{
|
||||
width: 8em;
|
||||
writing-mode: vertical-rl;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
div#overflow
|
||||
{
|
||||
margin-right: 2em; /* block-start margin of overflowed block */
|
||||
background-color: green;
|
||||
margin-right: 4em; /* block-start margin of overflowed block */
|
||||
overflow: hidden;
|
||||
width: 2em;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
div#nested
|
||||
{
|
||||
background-color: red;
|
||||
margin-right: 2em; /* block-start margin of sub-block */
|
||||
margin-right: 4em; /* block-start margin of sub-block */
|
||||
width: 4em;
|
||||
}
|
||||
</style>
|
||||
@@ -53,7 +54,7 @@
|
||||
|
||||
<body>
|
||||
|
||||
<p>Test passes if there is <strong>no red</strong>.</p>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="overflow">
|
||||
|
||||
Reference in New Issue
Block a user