Closed Bug 377139 Opened 18 years ago Closed 18 years ago

CSS2 : Problem with display of proper colour in paragraph.

Categories

(Core :: CSS Parsing and Computation, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: jan.pieniadz, Unassigned)

References

()

Details

Attachments

(1 file)

2.71 KB, application/x-zip-compressed
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a4pre) Gecko/20070402 Minefield/3.0a4pre Build Identifier: Build identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a4pre) Gecko/2007040204 Minefield/3.0a4pre See test page attached. Reproducible: Always Steps to Reproduce: 1. Open attached web page. Actual Results: In the middle of the page is paragraph with a class of 'give me liberty' which is purple Expected Results: In the middle of the page is paragraph with a class of 'give me liberty' which should be green
Attached file Test page
This is working as it should. The paragraph you point out should not match the selector P[class="give"][class="liberty"], in fact no element should ever match that selector since it matches an element where it's attribute is exactly the given value, and an attribute cannot be exactly "give" and "liberty". You likely want to use clase~="give" to match an element that contains "give" in the class attribute. http://www.w3.org/TR/CSS21/selector.html#attribute-selectors In the future please attach single html files rather than archives, it makes it much easier for us to look at these testcases.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
> In the future please attach single html files rather than archives, it makes it > much easier for us to look at these testcases. In the future click URL field (notice the "jar" prefix). jar:https://bugzilla.mozilla.org/attachment.cgi?id=261251!/css20__attribute_selectors.htm
You had not set the url field when I tested this. And a single file is much easier to view the source of rather than having to play around to see what is in the other (practically pointless in this case) file.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: