from:
- * https://css-tricks.com/making-charts-with-css/ */
- dt {
- grid-column: 1 / 4;
- text-align: center;
- }
-
- dd {
- padding: 5px;
- margin: 0;
- text-align: center;
- display: flex;
- flex-direction: column;
- }
-
- dd + dd {
- border-left: 1px solid #ccc;
- }
-
- progress {
- /* Reset the default appearance */
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
-
- writing-mode: vertical-lr;
-
- width: 2em;
- height: 5em;
- background: none;
- border: none;
- position: relative;
- }
-
- progress::-webkit-progress-bar {
- background: none;
- }
-
- progress::-webkit-progress-value {
- /* Chrome (and derivatives) are stubborn to attach the bar to the top */
- bottom: 0;
- position: absolute;
- }
-
- progress.git::-moz-progress-bar {
- background-color: #E09FA0;
- }
- progress.git::-webkit-progress-value {
- background-color: #E09FA0;
- }
- progress.svn::-moz-progress-bar {
- background-color: #E05F49;
- }
- progress.svn::-webkit-progress-value {
- background-color: #E05F49;
- }
-}
diff --git a/content/about/small-and-fast.html b/content/about/small-and-fast.html
index f5e3e6204a..05057ffb70 100644
--- a/content/about/small-and-fast.html
+++ b/content/about/small-and-fast.html
@@ -27,173 +27,167 @@ Benchmarks
to CVS or Perforce. Smaller is faster.
-
-
-
-
-
- - Commit A
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Commit B
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Diff Curr
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Diff Rec
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Diff Tags
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Clone
- -
-
- git*
-
- -
-
- git
-
- -
-
-
-
- |
-
-
-
-
- - Log (50)
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Log (All)
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Log (File)
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Update
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Blame
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
- - Size
- -
-
- git
-
- -
-
- svn
-
-
- |
-
-
-
+
+
+
+ - Commit A
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Commit B
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Diff Curr
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Diff Rec
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Diff Tags
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Clone
+ -
+
+ git*
+
+ -
+
+ git
+
+ -
+
+
+
+
+
+
+ - Log (50)
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Log (All)
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Log (File)
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Update
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Blame
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
+
+ - Size
+ -
+
+ git
+
+ -
+
+ svn
+
+
+
+
For testing, large AWS instances were set up in the same availability zone.
diff --git a/tests/git-scm.spec.js b/tests/git-scm.spec.js
index 5616bd3e25..f47f98792b 100644
--- a/tests/git-scm.spec.js
+++ b/tests/git-scm.spec.js
@@ -1,4 +1,4 @@
-const { test, expect, selectors } = require('@playwright/test')
+const { test, expect, selectors, devices } = require('@playwright/test')
const url = process.env.PLAYWRIGHT_TEST_URL
? process.env.PLAYWRIGHT_TEST_URL.replace(/[^/]$/, '$&/')
@@ -288,3 +288,15 @@ test('sidebar', async ({ page }) => {
await about.click();
await expect(page.getByRole('heading', { name: 'About - Branching and Merging' })).toBeVisible();
});
+
+test('small-and-fast', async ({ page }) => {
+ await page.setViewportSize(devices['iPhone X'].viewport);
+
+ await page.goto(`${url}about/small-and-fast`);
+
+ // Scroll to text right below the graphs
+ await page.getByText('For testing, large AWS instances').scrollIntoViewIfNeeded();
+
+ const lastGraph = page.locator('.bar-chart').last();
+ await expect(lastGraph).toBeInViewport();
+});