Closed
Bug 265581
Opened 20 years ago
Closed 20 years ago
Loss of style assigned to <p> tage when breaking out of other blocks such as <blockquote>
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: unknown.programmer, Assigned: dbaron)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 When given tags such as the following: <p> test1 <blockquote>test</blockquote> test2 </p> with style sheets such as: p{ color: red; } blockquote{ color: blue; } test1 will appear red, however test2 will take over the default style of the page even though the p tag is still in effect and the blockquote tag has ended. I have noticed this bug with seve Reproducible: Always Steps to Reproduce: index.html <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>example0001</title> <link rel="stylesheet" type="text/css" href="/example/example0001/style.css" /> </head> <body text="#566666"> <p> test1 <blockquote>test</blockquote> test2 </p> </body> </html> style.css p{ color: red; } blockquote{ color: blue; } Actual Results: Text test1 was red, text Test was blue, text test2 was grey (assigned by body tag) Expected Results: test1 should be red, test should be blue, test2 should be red Default theme, no major extensions. I have others test this in other versions of mozilla/firefox and some have reported the same problem (however I was unable to get the version numbers) The p tag will loose all formating, even the formating assigned by an enclosing tag such as a div, the text after the <blockquote> in this example will take the root pages default styles (from the body tag, not from the .CSS file). I was able to test this with divs, blockquote, span, even other p tags, and they all resulted in the same problem AFTER the tag and before the end of the origional p grouping. The work around I have found is to rid my site of the p tag and keep everything withing div tags.
Assignee | ||
Comment 1•20 years ago
|
||
P has an optional end tag and cannot contain BLOCKQUOTE.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•