Skip to content

css improvements #79

Description

@Asifdotexe
{
  "schema_version": 1,
  "generator": "Modern CSS Radar",
  "generated_at": "2026-08-04T16:46:19.667Z",
  "page": {
    "url": "https://theseus.asifdotexe.workers.dev/",
    "title": "Ship of Theseus | Code Visualizer"
  },
  "audit_status": "complete",
  "modern_css_score": {
    "value": 86,
    "out_of": 100,
    "band": "green",
    "deductions": {
      "recommendations": {
        "count": 1,
        "points": 8
      },
      "css_quick_wins": {
        "count": 2,
        "points": 6
      }
    },
    "method": "This lightweight score starts at 100. Verified findings subtract 4 to 12 points depending on the strength and independence of the captured evidence, and each CSS quick win subtracts 3."
  },
  "summary": "1 modern HTML or CSS replacement was verified from explicit markup or safely observed browser interactions. Ambiguous scanner leads were kept out of the standard report.",
  "findings": [
    {
      "pattern": "custom-popover",
      "title": "Custom floating menu",
      "where": "Legend: 2022–2026 · 5 years. Hover or focus to expand.",
      "selectors": [
        "button.legend-trigger",
        "section:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div"
      ],
      "replacement": "Popover API",
      "evidence": [
        "button.legend-trigger",
        "section:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div became visible (position: absolute)."
      ],
      "current_implementation": "button.legend-trigger\nsection:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div became visible (position: absolute).",
      "modern_alternative": "<button popovertarget=\"menu\">Legend: 2022–2026 · 5 years. Hover or focus to expand.</button>\n<div id=\"menu\" popover>…</div>",
      "why_better": [
        "Keeps open state, light dismissal, and top-layer placement on the native element.",
        "Reduces the custom state needed for the observed floating panel."
      ],
      "to_verify": "Compare Escape and outside-click behavior, focus movement, positioning, and any analytics hooks before replacing the custom state."
    }
  ],
  "css_quick_wins": [
    {
      "id": "viewport-height",
      "title": "100vh on mobile",
      "found": "min-height: 100vh;",
      "occurrences": 1,
      "locations": [
        {
          "kind": "stylesheet",
          "source_label": "/style.css",
          "source_url": "https://theseus.asifdotexe.workers.dev/style.css",
          "selector": "body",
          "line": 67,
          "column": 5,
          "total_lines": 1489,
          "line_precise": true
        }
      ],
      "replacement": "min-height: 100svh",
      "advice": "100vh can extend behind mobile browser bars; svh uses the smallest viewport so the full section remains visible.",
      "mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/length"
    },
    {
      "id": "scrollbar-styling",
      "title": "WebKit-only scrollbar styling",
      "found": "::-webkit-scrollbar { width: 8px; }",
      "occurrences": 5,
      "locations": [
        {
          "kind": "stylesheet",
          "source_label": "/style.css",
          "source_url": "https://theseus.asifdotexe.workers.dev/style.css",
          "selector": "::-webkit-scrollbar",
          "line": 895,
          "column": 1,
          "total_lines": 1489,
          "line_precise": true
        },
        {
          "kind": "stylesheet",
          "source_label": "/style.css",
          "source_url": "https://theseus.asifdotexe.workers.dev/style.css",
          "selector": "::-webkit-scrollbar-track",
          "line": 899,
          "column": 1,
          "total_lines": 1489,
          "line_precise": true
        },
        {
          "kind": "stylesheet",
          "source_label": "/style.css",
          "source_url": "https://theseus.asifdotexe.workers.dev/style.css",
          "selector": "::-webkit-scrollbar-thumb",
          "line": 903,
          "column": 1,
          "total_lines": 1489,
          "line_precise": true
        },
        {
          "kind": "stylesheet",
          "source_label": "/style.css",
          "source_url": "https://theseus.asifdotexe.workers.dev/style.css",
          "selector": "::-webkit-scrollbar-thumb:hover",
          "line": 908,
          "column": 1,
          "total_lines": 1489,
          "line_precise": true
        },
        {
          "kind": "stylesheet",
          "source_label": "/style.css",
          "source_url": "https://theseus.asifdotexe.workers.dev/style.css",
          "selector": ".selector-pill::-webkit-scrollbar",
          "line": 1308,
          "column": 19,
          "total_lines": 1489,
          "line_precise": true
        }
      ],
      "replacement": "scrollbar-color + scrollbar-width",
      "advice": "The standard two properties style scrollbars in every engine, not just WebKit.",
      "mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color"
    }
  ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions