aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-04-28 00:31:40 +0200
committerGitHub <noreply@github.com>2023-04-28 00:31:40 +0200
commit3e3bd9c728aa0a08b7d23dfb9ea7a28c6e4e409f (patch)
tree4da9274adff316481dff1b0ca9000378a8a4f56e /components/script/dom/websocket.rs
parent0e8d0b4ca571f79db9786126d0a4c9d0bad96a78 (diff)
parent668c4c8abab1b0af8a8e0eca9bb4567b1c7b364e (diff)
downloadservo-3e3bd9c728aa0a08b7d23dfb9ea7a28c6e4e409f.tar.gz
servo-3e3bd9c728aa0a08b7d23dfb9ea7a28c6e4e409f.zip
Auto merge of #29676 - Loirooriol:text-decoration-px, r=mrobinson
Round text decoration thickness to >= 1 device pixels Previously the thickness coming from font metrics could be something like 0.7px, so with 1dppx it would be painted as either 1 or 0 device pixels. Enforcing at least 1 device pixel ensures that the decoration will be visible, and rounding to an integral amount of device pixels ensures that the thickness won't vary depending on the position. The specification requires this behavior when text-decoration-thickness is set to a length or percentage. It's not clear if it should also happen by default, but this seems to match other browsers (except for WebKit rounding up instead of to the nearest integer). The test text-decoration-thickness-from-zero-sized-font.html is now failing because of #29675. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #29668 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because the exact appearance of text decorations is UA-dependent, so testing doesn't seem much feasible. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/websocket.rs')
0 files changed, 0 insertions, 0 deletions