Skip to content

Non-Colored Markdown Code block text remains static when scrolled #5815

@OfficialPixelBrush

Description

@OfficialPixelBrush

Summary

When I visit a GitHub page with a README.md that contains code blocks, non-colored elements in scrollable code blocks will not scroll, while the colored elements move as expected.

Operating system

Linux

Steps to reproduce

  1. Visit a GitHub Page with a README which contains a code block
  2. Scale down the Window until scrollbars show up for the code blocks
  3. Operate the vertical scrollbar
  4. The non-colored elements misalign

Expected behavior

All elements move together

Actual behavior

Colored elements move with the scrollbar, while non-colored elements remain static.

URL for a reduced test case

https://github.com/OfficialPixelBrush/ladybird-scroll-bug

HTML/SVG/etc. source for a reduced test case

N/A

Log output and (if possible) backtrace

ninja: Entering directory `/home/torben/ladybird/Build/release'
ninja: no work to do.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Ladybird PID file '/run/user/1000/Ladybird.pid' exists with PID 12991, but process cannot be found
3305.252 WebContent(20129): HTMLScriptElement: Refusing to run script because the element is not connected.
3305.262 WebContent(20129): HTMLScriptElement: Refusing to run script because the element is not connected.
3305.292 WebContent(20129): ImageDecoderClient: Failed to decode image with ID 1: Decoding failed: Could not find suitable image decoder plugin for data
3306.002 WebContent(20129): FIXME: Unimplemented IDL interface: 'HTMLElementPrototype.spellcheck'
3306.022 WebContent(20129): FIXME: Unimplemented IDL interface: 'TrustedTypePolicyFactoryPrototype.emptyHTML'
3306.072 WebContent(20129): Potential FIXME: Returning from PerformanceObserver::observe() as we don't support the PerformanceEntry type 'event'
3306.072 WebContent(20129): Potential FIXME: Returning from PerformanceObserver::observe() as we don't support the PerformanceEntry type 'first-input'
3306.072 WebContent(20129): Potential FIXME: Returning from PerformanceObserver::observe() as we don't support the PerformanceEntry type 'event'
3306.082 WebContent(20129): FIXME: Unimplemented IDL interface: 'ServiceWorkerContainerPrototype.getRegistrations'
3307.652 WebContent(20129): HTMLScriptElement: Refusing to run script because it has already started.
3308.312 WebContent(20129): HTMLScriptElement: Refusing to run script because it has already started.
3308.452 WebContent(20129): HTMLScriptElement: Refusing to run script because it has already started.
3308.542 WebContent(20129): FIXME: Unimplemented IDL interface: 'TrustedTypePolicyFactoryPrototype.createPolicy'

Screenshots or screen recordings

Misaligned
misaligned

Build flags or config settings

No response

Contribute a patch?

  • I’ll contribute a patch for this myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas reproWe have a way to reproduce this bug.reduction of web contentIssue has a simplified reduction based on real-world web content.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions