aboutsummaryrefslogtreecommitdiff
path: root/240
diff options
context:
space:
mode:
Diffstat (limited to '240')
-rw-r--r--240/index.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/240/index.md b/240/index.md
new file mode 100644
index 0000000..5c93a1e
--- /dev/null
+++ b/240/index.md
@@ -0,0 +1,21 @@
+Title: Zooming out makes 1 px border dissapear
+Author: rodarima
+Created: Sun, 11 Aug 2024 20:20:31 +0000
+State: closed
+
+When zooming out of a page that uses a 1 px border, the border disappears. We
+could make a rule to prevent applying the zoom to the border.
+
+The problem is likely coming from the zoom computation:
+
+```c
+bool StyleEngine::computeValue (int *dest, CssLength value, Font *font) {
+ switch (CSS_LENGTH_TYPE (value)) {
+ case CSS_LENGTH_TYPE_PX:
+ *dest = (int) (CSS_LENGTH_VALUE (value) * zoom);
+ return true;
+```
+
+As soon as the floating point value drops below 1, the value is converted to 0.
+However, if we round it, it will need to at least drop below 0.5, at which point
+it would be fine if it disappears.