]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add border box test case!
authorharry <harmanmanchanda182@gmail.com>
Wed, 31 May 2017 17:40:32 +0000 (23:10 +0530)
committerharry <harmanmanchanda182@gmail.com>
Wed, 31 May 2017 17:40:32 +0000 (23:10 +0530)
test/visual/prototype/border-box.html [new file with mode: 0644]

diff --git a/test/visual/prototype/border-box.html b/test/visual/prototype/border-box.html
new file mode 100644 (file)
index 0000000..886e17d
--- /dev/null
@@ -0,0 +1,64 @@
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <title>Foundation for Sites Testing</title>
+    <link href="../motion-ui/dist/motion-ui.css" rel="stylesheet" />
+    <link href="../assets/css/foundation-prototype.css" rel="stylesheet" />
+
+    <style type="text/css">
+      .example-box {
+        width: 300px;
+        height: 200px;
+        margin-bottom: 10px;
+        box-sizing: content-box;
+      }
+      .debug-red {
+        border: 1px solid #ff0000;
+      }
+      .debug-blue {
+        border: 1px solid #0000ff;
+      }
+    </style>
+  </head>
+  <body>
+    <div class="row">
+      <div class="medium-6 columns">
+        <h2>Without Border Box</h2>
+        <div class="example-box debug-red">
+          <p>
+            This div is smaller (width is 300px and height is 100px and has no padding).
+          </p>
+        </div>
+        <div class="example-box debug-blue padding-3">
+          <p>
+            This div is bigger (width is 300px and height is 100px and has 3rem padding).
+          </p>
+        </div>
+      </div>
+
+      <div class="medium-6 columns">
+        <h2>With Border Box</h2>
+        <div class="example-box border-box debug-red">
+          <p>
+            This div is same size to below (width is 300px and height is 100px and has no padding).
+          </p>
+        </div>
+        <div class="example-box border-box debug-blue padding-3">
+          <p>
+            This div is same size to above (width is 300px and height is 100px and has 3rem padding).
+          </p>
+        </div>
+      </div>
+      
+    </div>
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>