layout bug?

Discussion of bugs in Seamonkey
Post Reply
User avatar
xah
Posts: 306
Joined: November 8th, 2002, 6:17 pm

layout bug?

Post by xah »

Could someone please tell me whether this is a bug?

In a recent Mozilla nightly trunk build, at least, Mozilla does not allow a pseudoclass property like ":active color" to inherit to an inline descendant like cite.

Here's the demo page:

http://www.andrewhagen.com/bug.html

Thanks for any help.
User avatar
laszlo
Posts: 5225
Joined: November 4th, 2002, 6:13 pm
Location: .de
Contact:

Post by laszlo »

Since you asked for "any help", here's what I think. :wink:

AFAIK inheritance of a property doesn't necessarily depend on the element it's assigned to being inline or block level, but must be explicitly set if the initial value is defined differently by the specification.

The initial value of the color property is interestingly "depends on user agent", which probably means that this is not a bug, but can be discussed nevertheless.
User avatar
xah
Posts: 306
Joined: November 8th, 2002, 6:17 pm

interesting

Post by xah »

Thanks for your help. That's very interesting. I tried setting the cite tag to color: inherit, but that doesn't work, either. Maybe there is just no way to do that.
User avatar
laszlo
Posts: 5225
Joined: November 4th, 2002, 6:13 pm
Location: .de
Contact:

Post by laszlo »

Hmm... explicitly setting it to inherit should work in my opinion, as long as the cite element is a direct descendant of the anchor, since inherit is an allowed value for the color property. I think this would qualify as a bug. Maybe pseudo-classes like :active are special in this case, though I don't know why they should be; have you tried without?
User avatar
xah
Posts: 306
Joined: November 8th, 2002, 6:17 pm

filed bug

Post by xah »

Filed this bug on the issue:

http://bugzilla.mozilla.org/show_bug.cgi?id=183661

Thanks again for your help.
Post Reply