Skip to content

Bug: CSS scroll-behavior conflict in style.css #94

@ADITYA-CODE-SOURCE

Description

@ADITYA-CODE-SOURCE

Bug Report

File

css/style.css - Lines 49-57

Issue

CSS has contradictory scroll-behavior values. The html element has scroll-behavior: smooth (line 49-51) but the body element has scroll-behavior: auto (line 56), which overrides the html setting and prevents smooth scrolling.

Current Code

html {
scroll-behavior: smooth;
}

body {
background-color: var(--md-sys-color-background);
font-family: "Roboto", sans-serif;
scroll-behavior: auto;
}

Fix

Change body scroll-behavior to smooth to match html:
body {
background-color: var(--md-sys-color-background);
font-family: "Roboto", sans-serif;
scroll-behavior: smooth;
}


Reported for GSoC 2026 contribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions