diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-09-28 20:26:15 +0200 |
---|---|---|
committer | Rodrigo <rodarima@gmail.com> | 2025-09-28 23:10:55 +0200 |
commit | fb510ea86be5ceb9e91573890242581fdbd77ad8 (patch) | |
tree | d819fe40683592008d136727f5a0b03e48dc1164 /240 |
Diffstat (limited to '240')
-rw-r--r-- | 240/index.md | 21 |
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. |