Renaming class called "body" renames rules for body element

Bug #1944562 reported by Phssthpok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Version 5.14 (64-bit) on Windows 10.

I have a class called "body" which I want to rename. I have these CSS rules:

    body { ... }
    body.body { ... }

In a tag "<body class='body'>", I right-click on the class name and rename it to "foo". I now have the following CSS rules:

    foo { ... }
    foo.foo { ... }

The rules for the tag <body> have been changed, not just the class "body".

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.