- The same HTML elemement, now scaled up to match the width it parent element by pat-auto-scale:
-
-
-
-
-
-
- The scaling mechanism takes paddings into account:
-
-
-
-
-
-
- Another elemement, scaled up to fill the parent element. This is done with the property: `size: contain`.
-
-
-
-
-
-
- The same elemement, now scaled up to fill the parent completely. The styling property `overflow: hidden` is used on the parent element to prevent bleeding. This is done with the property: `size: cover`.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Auto scale
+
+
+
+
+
+
+
+ A random HTML elemement:
+
+
+
+
+
+ The same HTML elemement, now scaled up to match the width it parent element by pat-auto-scale:
+
+
+
+
+
+
+ The scaling mechanism takes paddings into account:
+
+
+
+
+
+
+ Another elemement, scaled up to fill the parent element. This is done with the property: `size: contain`.
+
+
+
+
+
+
+ The same elemement, now scaled up to fill the parent completely. The styling property `overflow: hidden` is used on the parent element to prevent bleeding. This is done with the property: `size: cover`.
+
+
+
+
+
+
+
+
+
+
+
+
From b2cb69ae51643b37adf9b205ec74f70a2a8b36e2 Mon Sep 17 00:00:00 2001
From: Johannes Raggam
Date: Fri, 27 Sep 2019 11:14:05 +0200
Subject: [PATCH 2/4] auto-scale bug test-case
---
src/pat/auto-scale/index.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/pat/auto-scale/index.html b/src/pat/auto-scale/index.html
index 26ae563a0..925112074 100644
--- a/src/pat/auto-scale/index.html
+++ b/src/pat/auto-scale/index.html
@@ -41,10 +41,18 @@
The same elemement, now scaled up to fill the parent completely. The styling property `overflow: hidden` is used on the parent element to prevent bleeding. This is done with the property: `size: cover`.