No bug - Change test_clip-path_polygon.html to use standard mode.
authorXidorn Quan <me@upsuper.org>
Mon, 16 Jan 2017 18:05:49 +1100
changeset 461326 da4c295b7d1474d7c49409d271dd6c27008752d7
parent 461286 c36d3ce91e1685724114ad330651edf21980bb57
child 461327 538305f343ae458e4804b94021247295f57fba76
push id41655
push userbmo:npang@mozilla.com
push dateMon, 16 Jan 2017 14:31:16 +0000
milestone53.0a1
No bug - Change test_clip-path_polygon.html to use standard mode. MozReview-Commit-ID: HPBjMMlJP4V
layout/style/test/test_clip-path_polygon.html
--- a/layout/style/test/test_clip-path_polygon.html
+++ b/layout/style/test/test_clip-path_polygon.html
@@ -1,25 +1,26 @@
+<!DOCTYPE html>
 <html>
 <head>
 <style>
 body {padding: 0;margin:0;}
 div {
   width:  200px;
   height: 200px;
   position: fixed;
   top: 50px;
   left: 50px;
-  margin: 50;
-  padding: 50;
+  margin: 50px;
+  padding: 50px;
   border: 50px solid red;
   transform-origin: 0 0;
   transform: translate(50px, 50px) scale(0.5);
   background-color: green;
-  clip-path: polygon(0 0, 200px 0, 0 200px) content-box;*/
+  clip-path: polygon(0 0, 200px 0, 0 200px) content-box;
 }
 </style>
 <title>clip-path with polygon() hit test</title>
 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
 <div id="a"></div>
 <p style="margin-top: 110px">
@@ -33,9 +34,9 @@ if (SpecialPowers.getBoolPref("layout.cs
   isnot(a, document.elementFromPoint(301, 200), "a shouldn't be found");
   isnot(a, document.elementFromPoint(200, 301), "a shouldn't be found");
 }
 is(a, document.elementFromPoint(200, 200), "a should be found");
 is(a, document.elementFromPoint(299, 200), "a should be found");
 is(a, document.elementFromPoint(200, 299), "a should be found");
 is(a, document.elementFromPoint(250, 250), "a should be found");
 </script>
-</html>
\ No newline at end of file
+</html>