ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

css: can't apply color in :hover pseudo selector

Open warpdesign opened this issue 3 months ago • 2 comments

Summary

color css property doesn't work in :hover pseudo class.

Operating system

macOS

Steps to reproduce

  1. Open the reduced test case
  2. Move the mouse over the button

Expected behavior

The text should turn red.

Actual behavior

The text stays black.

URL for a reduced test case

N/A

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

<html>
<body>
<style type="text/css">
button:hover{
  color:red
}
</style>
<body>
<button>Hover Me!</button>

Log output and (if possible) backtrace

N/A

Screenshots or screen recordings

Chrome: Image

Ladybird: Image

Build flags or config settings

No response

Contribute a patch?

  • [ ] I’ll contribute a patch for this myself.

warpdesign avatar Sep 08 '25 14:09 warpdesign

I think you have forgotten to give semicolon(;) after red.So I guess that's the issue.

shouvik-maity avatar Oct 27 '25 17:10 shouvik-maity

I think you have forgotten to give semicolon(;) after red.So I guess that's the issue.

That doesn't affect the outcome. CSS doesn't require a semicolon if there isn't another property after it.

AtkinsSJ avatar Oct 27 '25 17:10 AtkinsSJ