Move height_compute_reset.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-22 09:16:45 -04:00
parent 1f8f2872de
commit 3615db8964
5 changed files with 73 additions and 1 deletions

View file

@ -947,6 +947,18 @@
"url": "/_mozilla/css/font_style.html"
}
],
"css/height_compute_reset.html": [
{
"path": "css/height_compute_reset.html",
"references": [
[
"/_mozilla/css/height_compute.html",
"=="
]
],
"url": "/_mozilla/css/height_compute_reset.html"
}
],
"css/img_block_display_a.html": [
{
"path": "css/img_block_display_a.html",
@ -5064,6 +5076,18 @@
"url": "/_mozilla/css/font_style.html"
}
],
"css/height_compute_reset.html": [
{
"path": "css/height_compute_reset.html",
"references": [
[
"/_mozilla/css/height_compute.html",
"=="
]
],
"url": "/_mozilla/css/height_compute_reset.html"
}
],
"css/img_block_display_a.html": [
{
"path": "css/img_block_display_a.html",

View file

@ -0,0 +1,22 @@
<head>
<style type="text/css">
body {margin : 0px}
.start {background-color : gray; height : 600px}
.half {background-color : red; height : 50%}
.quarter {background-color : rgb(250, 125, 0); height : 25%}
.eighth {background-color : yellow; height : 12.5%}
.sixteenth {background-color : green; height : 6.25%}
.thirtysecond {background-color : blue; height : 3.125%}
.sixtyfourth {background-color : purple; height : 1.5625%}
</style>
</head>
<body>
<div class="start">
<div class="half"></div>
<div class="quarter"></div>
<div class="eighth"></div>
<div class="sixteenth"></div>
<div class="thirtysecond"></div>
<div class="sixtyfourth"></div>
</div>
</body>

View file

@ -0,0 +1,23 @@
<head>
<link rel="stylesheet" href="reset.css" />
<link rel='match' href='height_compute.html'>
<style type="text/css">
.start {background-color : gray; height : 600px}
.half {background-color : red; height : 50%}
.quarter {background-color : rgb(250, 125, 0); height : 25%}
.eighth {background-color : yellow; height : 12.5%}
.sixteenth {background-color : green; height : 6.25%}
.thirtysecond {background-color : blue; height : 3.125%}
.sixtyfourth {background-color : purple; height : 1.5625%}
</style>
</head>
<body>
<div class="start">
<div class="half"></div>
<div class="quarter"></div>
<div class="eighth"></div>
<div class="sixteenth"></div>
<div class="thirtysecond"></div>
<div class="sixtyfourth"></div>
</div>
</body>

View file

@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}