Files
Daniel Holbert 3cc063b808 Bug 1700416: Fix problems with WPT test "scaley.html" that were preventing it from passing in any browser. r=TYLin
This test had a number of issues that were preventing it from passing in any
browser.  After this patch, it passes in Firefox at least, and I suspect it'll
pass in other browsers as well.

Problems with the test that are fixed here (all of which were keeping this test
from passing):
 - The descriptive text on the page was different ("box." vs "area"), between
   the testcase and reference case.
 - The testcase had a margin on this text, for no clear reason.
 - The reference case had a border around the scaled-up green div, whereas
   the testcase doesn't (making them mismatch by the size of that border).

And while I'm at it, I'm making minor edits...
 - making the indentation more consistent.
 - switching to the HTML5 standards-mode doctype (since the testcase isn't
   doing anything relevant to quirks-mode that would require a legacy doctype).
 - removing the unused ".hidden" CSS rule from the reference case.

This makes the testcase and reference case more usefully diffable.

Differential Revision: https://phabricator.services.mozilla.com/D109524
2021-03-24 18:41:59 +00:00

21 lines
377 B
HTML

<!DOCTYPE html>
<head>
<title>CSS Reference File</title>
<style type="text/css">
.container {
position: absolute;
height: 200px;
width: 100px;
background-color:green;
margin-top: 150px;
}
</style>
</head>
<body>
<p>You should see only 1 green area.</p>
<div class="container">
</div>
</body>
</html>