-
+
diff --git a/app/typography-101.html b/app/typography-101.html
new file mode 100644
index 0000000..18ae7d4
--- /dev/null
+++ b/app/typography-101.html
@@ -0,0 +1,95 @@
+
+
+
+
+
Typography 101
+ {{meta}}
+
+
+ {{header}}
+
+
Typography 101
+
+
+ -
+
The font 'Open Sans' has already been linked to this page. Style the page so that 'Open Sans' is the default font used across the site, and the body copy font size is 16px large, with a line-height of 1.25em
.
+
+ Your version will be compared against this guide.
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugiat, repudiandae, consectetur? Recusandae nisi error, maiores, labore commodi ullam voluptatum perferendis repellat, aliquam provident rem nostrum soluta vel dignissimos. Aspernatur, esse.
+ Ipsa, expedita? Quod ex voluptas repudiandae aspernatur maxime natus cum nam, ea consequuntur deleniti earum accusamus quidem perferendis optio voluptatibus, est officiis.
+
+
+
+ -
+
Style these headings to the following sizes:
+
+
+
+ Element |
+ Font-family |
+ Font size |
+ Line height |
+ Font weight |
+
+
+
+
+ H1 |
+ 'Open Sans', sans-serif |
+ 2em |
+ 1.25em |
+ Normal |
+
+
+ H2 |
+ 'Open Sans', sans-serif |
+ 1.625em |
+ 1.153em |
+ Normal |
+
+
+ H3 |
+ 'Open Sans', sans-serif |
+ 1.375em |
+ 1.136em |
+ Normal |
+
+
+ H4 |
+ 'Open Sans', sans-serif |
+ 1.125em |
+ 1.111em |
+ Normal |
+
+
+
+
+ Your version will be compared against this guide.
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius eligendi molestiae aspernatur voluptatem accusantium facilis laborum aut laboriosam asperiores.
+ Iste odio ipsa voluptatem, excepturi cum natus dicta hic, veniam delectus nisi unde iusto error vitae inventore, sapiente adipisci quod pariatur suscipit.
+ Cumque, iusto architecto aliquid laborum corporis hic obcaecati quibusdam ad, cum, sint nihil quod voluptas. Esse accusantium, adipisci a quidem delectus veritatis.
+ Enim nam impedit, corporis distinctio perferendis numquam repellat esse ipsum quis, voluptatum itaque illo nulla, molestias placeat ab! Iste, minima ducimus aliquid.
+
+
+
+ -
+
Without changing the element itself, style the following paragraph so that it looks like the H1
from the previous example.
+
+ Your version will be compared against this guide.
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius eligendi molestiae aspernatur voluptatem accusantium facilis laborum aut laboriosam asperiores.
+
+
+
+
+
+
+
diff --git a/backstop.json b/backstop.json
index e122d2d..0b713a8 100644
--- a/backstop.json
+++ b/backstop.json
@@ -14,17 +14,41 @@
"selectors": [
"#boilerplate-sections"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
+ {
+ "label": "Typography 101: Body text",
+ "url": "http://localhost:7000/app/typography-101.html",
+ "selectors": [
+ "#typography-body-font"
+ ],
+ "misMatchThreshold" : 0.1
+ },
+ {
+ "label": "Typography 101: Headings",
+ "url": "http://localhost:7000/app/typography-101.html",
+ "selectors": [
+ "#typography-headings"
+ ],
+ "misMatchThreshold" : 0.1
+ },
+ {
+ "label": "Typography 101: Faux Headings",
+ "url": "http://localhost:7000/app/typography-101.html",
+ "selectors": [
+ "#typography-faux-headings"
+ ],
+ "misMatchThreshold" : 0.1
+ },
+
+
{
"label": "Display: Stack",
"url": "http://localhost:7000/app/display-inline-block.html",
"selectors": [
"#display-stack-images"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -33,7 +57,6 @@
"selectors": [
"#display-align-images"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -42,7 +65,6 @@
"selectors": [
"#display-align-resize-images"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
@@ -52,7 +74,6 @@
"selectors": [
"#box-model-simple-box"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -61,7 +82,6 @@
"selectors": [
"#box-model-simple-border-box"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -70,7 +90,6 @@
"selectors": [
"#box-model-simple-border-margin-box"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
@@ -80,7 +99,6 @@
"selectors": [
"#box-align"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -89,7 +107,6 @@
"selectors": [
"#circle-align"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -98,7 +115,6 @@
"selectors": [
"#circle-outlines-align"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -107,7 +123,6 @@
"selectors": [
"#shapes-align"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
@@ -117,7 +132,6 @@
"selectors": [
"#position-setup"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -126,7 +140,6 @@
"selectors": [
"#position-bottom"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
},
{
@@ -135,7 +148,6 @@
"selectors": [
"#position-override"
],
- "requireSameDimensions" : false,
"misMatchThreshold" : 0.1
}
diff --git a/backstop_data/bitmaps_reference/css_kata_Display_Align_0_display-align-images_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Display_Align_0_display-align-images_0_phone.png
index dd1bdff..9341a16 100644
Binary files a/backstop_data/bitmaps_reference/css_kata_Display_Align_0_display-align-images_0_phone.png and b/backstop_data/bitmaps_reference/css_kata_Display_Align_0_display-align-images_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png
index 37ebc18..08c56e3 100644
Binary files a/backstop_data/bitmaps_reference/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png and b/backstop_data/bitmaps_reference/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Shapes_Boxes_0_box-align_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Shapes_Boxes_0_box-align_0_phone.png
index 1fcb0a1..4629241 100644
Binary files a/backstop_data/bitmaps_reference/css_kata_Shapes_Boxes_0_box-align_0_phone.png and b/backstop_data/bitmaps_reference/css_kata_Shapes_Boxes_0_box-align_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png
index 58801f7..86b893d 100644
Binary files a/backstop_data/bitmaps_reference/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png and b/backstop_data/bitmaps_reference/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Shapes_Circles_0_circle-align_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Shapes_Circles_0_circle-align_0_phone.png
index 7cf1bd1..9cc3b1c 100644
Binary files a/backstop_data/bitmaps_reference/css_kata_Shapes_Circles_0_circle-align_0_phone.png and b/backstop_data/bitmaps_reference/css_kata_Shapes_Circles_0_circle-align_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Shapes_Combo_0_shapes-align_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Shapes_Combo_0_shapes-align_0_phone.png
index fdc5488..02a1b92 100644
Binary files a/backstop_data/bitmaps_reference/css_kata_Shapes_Combo_0_shapes-align_0_phone.png and b/backstop_data/bitmaps_reference/css_kata_Shapes_Combo_0_shapes-align_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Typography_101_Body_text_0_typography-body-font_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Typography_101_Body_text_0_typography-body-font_0_phone.png
new file mode 100644
index 0000000..e736452
Binary files /dev/null and b/backstop_data/bitmaps_reference/css_kata_Typography_101_Body_text_0_typography-body-font_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Typography_101_Faux_Headings_0_typography-faux-headings_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Typography_101_Faux_Headings_0_typography-faux-headings_0_phone.png
new file mode 100644
index 0000000..fccfbd0
Binary files /dev/null and b/backstop_data/bitmaps_reference/css_kata_Typography_101_Faux_Headings_0_typography-faux-headings_0_phone.png differ
diff --git a/backstop_data/bitmaps_reference/css_kata_Typography_101_Headings_0_typography-headings_0_phone.png b/backstop_data/bitmaps_reference/css_kata_Typography_101_Headings_0_typography-headings_0_phone.png
new file mode 100644
index 0000000..ce9d920
Binary files /dev/null and b/backstop_data/bitmaps_reference/css_kata_Typography_101_Headings_0_typography-headings_0_phone.png differ
diff --git a/backstop_data/html_report/config.js b/backstop_data/html_report/config.js
index 35f23fe..1558475 100644
--- a/backstop_data/html_report/config.js
+++ b/backstop_data/html_report/config.js
@@ -4,7 +4,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Boilerplate_Code_sections_0_boilerplate-sections_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Boilerplate_Code_sections_0_boilerplate-sections_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Boilerplate_Code_sections_0_boilerplate-sections_0_phone.png",
"selector": "#boilerplate-sections",
"fileName": "css_kata_Boilerplate_Code_sections_0_boilerplate-sections_0_phone.png",
"label": "Boilerplate: Code sections",
@@ -22,10 +22,73 @@ report({
},
"status": "pass"
},
+ {
+ "pair": {
+ "reference": "../bitmaps_reference/css_kata_Typography_101_Body_text_0_typography-body-font_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Typography_101_Body_text_0_typography-body-font_0_phone.png",
+ "selector": "#typography-body-font",
+ "fileName": "css_kata_Typography_101_Body_text_0_typography-body-font_0_phone.png",
+ "label": "Typography 101: Body text",
+ "misMatchThreshold": 0.1,
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00",
+ "analysisTime": 12,
+ "getDiffImage": null
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "../bitmaps_reference/css_kata_Typography_101_Headings_0_typography-headings_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Typography_101_Headings_0_typography-headings_0_phone.png",
+ "selector": "#typography-headings",
+ "fileName": "css_kata_Typography_101_Headings_0_typography-headings_0_phone.png",
+ "label": "Typography 101: Headings",
+ "misMatchThreshold": 0.1,
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00",
+ "analysisTime": 41,
+ "getDiffImage": null
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "../bitmaps_reference/css_kata_Typography_101_Faux_Headings_0_typography-faux-headings_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Typography_101_Faux_Headings_0_typography-faux-headings_0_phone.png",
+ "selector": "#typography-faux-headings",
+ "fileName": "css_kata_Typography_101_Faux_Headings_0_typography-faux-headings_0_phone.png",
+ "label": "Typography 101: Faux Headings",
+ "misMatchThreshold": 0.1,
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00",
+ "analysisTime": 16,
+ "getDiffImage": null
+ }
+ },
+ "status": "pass"
+ },
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Display_Stack_0_display-stack-images_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Display_Stack_0_display-stack-images_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Display_Stack_0_display-stack-images_0_phone.png",
"selector": "#display-stack-images",
"fileName": "css_kata_Display_Stack_0_display-stack-images_0_phone.png",
"label": "Display: Stack",
@@ -37,7 +100,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 27,
+ "analysisTime": 25,
"getDiffImage": null
}
},
@@ -46,7 +109,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Display_Align_0_display-align-images_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Display_Align_0_display-align-images_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Display_Align_0_display-align-images_0_phone.png",
"selector": "#display-align-images",
"fileName": "css_kata_Display_Align_0_display-align-images_0_phone.png",
"label": "Display: Align",
@@ -58,7 +121,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 9,
+ "analysisTime": 11,
"getDiffImage": null
}
},
@@ -67,7 +130,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png",
"selector": "#display-align-resize-images",
"fileName": "css_kata_Display_Align_and_resize_0_display-align-resize-images_0_phone.png",
"label": "Display: Align and resize",
@@ -79,7 +142,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 8,
+ "analysisTime": 9,
"getDiffImage": null
}
},
@@ -88,7 +151,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Box_model__0_box-model-simple-box_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Box_model__0_box-model-simple-box_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Box_model__0_box-model-simple-box_0_phone.png",
"selector": "#box-model-simple-box",
"fileName": "css_kata_Box_model__0_box-model-simple-box_0_phone.png",
"label": "Box model: ",
@@ -109,7 +172,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Box_model__0_box-model-simple-border-box_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Box_model__0_box-model-simple-border-box_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Box_model__0_box-model-simple-border-box_0_phone.png",
"selector": "#box-model-simple-border-box",
"fileName": "css_kata_Box_model__0_box-model-simple-border-box_0_phone.png",
"label": "Box model: ",
@@ -121,7 +184,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 16,
+ "analysisTime": 12,
"getDiffImage": null
}
},
@@ -130,7 +193,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Box_model__0_box-model-simple-border-margin-box_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Box_model__0_box-model-simple-border-margin-box_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Box_model__0_box-model-simple-border-margin-box_0_phone.png",
"selector": "#box-model-simple-border-margin-box",
"fileName": "css_kata_Box_model__0_box-model-simple-border-margin-box_0_phone.png",
"label": "Box model: ",
@@ -142,7 +205,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 14,
+ "analysisTime": 18,
"getDiffImage": null
}
},
@@ -151,7 +214,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Shapes_Boxes_0_box-align_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Shapes_Boxes_0_box-align_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Shapes_Boxes_0_box-align_0_phone.png",
"selector": "#box-align",
"fileName": "css_kata_Shapes_Boxes_0_box-align_0_phone.png",
"label": "Shapes: Boxes",
@@ -172,7 +235,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Shapes_Circles_0_circle-align_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Shapes_Circles_0_circle-align_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Shapes_Circles_0_circle-align_0_phone.png",
"selector": "#circle-align",
"fileName": "css_kata_Shapes_Circles_0_circle-align_0_phone.png",
"label": "Shapes: Circles",
@@ -193,7 +256,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png",
"selector": "#circle-outlines-align",
"fileName": "css_kata_Shapes_Circle_Outlines_0_circle-outlines-align_0_phone.png",
"label": "Shapes: Circle Outlines",
@@ -205,7 +268,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 10,
+ "analysisTime": 9,
"getDiffImage": null
}
},
@@ -214,7 +277,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Shapes_Combo_0_shapes-align_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Shapes_Combo_0_shapes-align_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Shapes_Combo_0_shapes-align_0_phone.png",
"selector": "#shapes-align",
"fileName": "css_kata_Shapes_Combo_0_shapes-align_0_phone.png",
"label": "Shapes: Combo",
@@ -235,7 +298,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Position_Setup_0_position-setup_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Position_Setup_0_position-setup_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Position_Setup_0_position-setup_0_phone.png",
"selector": "#position-setup",
"fileName": "css_kata_Position_Setup_0_position-setup_0_phone.png",
"label": "Position: Setup",
@@ -247,7 +310,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 18,
+ "analysisTime": 21,
"getDiffImage": null
}
},
@@ -256,7 +319,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Position_Setup_0_position-bottom_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Position_Setup_0_position-bottom_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Position_Setup_0_position-bottom_0_phone.png",
"selector": "#position-bottom",
"fileName": "css_kata_Position_Setup_0_position-bottom_0_phone.png",
"label": "Position: Setup",
@@ -268,7 +331,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 20,
+ "analysisTime": 17,
"getDiffImage": null
}
},
@@ -277,7 +340,7 @@ report({
{
"pair": {
"reference": "../bitmaps_reference/css_kata_Position_Setup_0_position-override_0_phone.png",
- "test": "../bitmaps_test/20170425-094516/css_kata_Position_Setup_0_position-override_0_phone.png",
+ "test": "../bitmaps_test/20170425-101042/css_kata_Position_Setup_0_position-override_0_phone.png",
"selector": "#position-override",
"fileName": "css_kata_Position_Setup_0_position-override_0_phone.png",
"label": "Position: Setup",
@@ -289,7 +352,7 @@ report({
"height": 0
},
"misMatchPercentage": "0.00",
- "analysisTime": 18,
+ "analysisTime": 19,
"getDiffImage": null
}
},