Closed
Bug 227669
Opened 22 years ago
Closed 22 years ago
CSS2 ::before and ::after not handled correctly, multiple images shown incorrectly
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: joe, Unassigned)
References
()
Details
This could potentially be a couple of bugs, but I'm honestly not sure where to start except here.
The linked page is rendered in opera as http://literarymoose.info/=/screen/mb.jpg - so you can
see several issues with Mozilla's rendering:
1) The h1 text appears twice.
2) The second copy of the h1 text is not styled as the first copy (which overlays the images).
3) Only two of the four transparent images are shown.
Mozilla doesn't support the 'content' property on elements, only on the ::before
and ::after pseudo-elements. It should not do so yet, since the CSS3 proposal
that such use of the property work is not yet in CR.
Mozilla also doesn't support absolute positioning of ::before and ::after
pseudo-elements, which was forbidden in CSS2. See the end of section 12.1:
http://www.w3.org/TR/1998/REC-CSS2-19980512/generate.html#before-after-content .
This restriction is probably going to be removed in CSS 2.1, although CSS2.1 is
also not yet a CR, so the change should not yet be implemented.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Comment 2•22 years ago
|
||
It would be helpful if we had a testcase that followed guidelines such as:
http://www.w3.org/Style/CSS/Test/guidelines.html
The text "Multiple Backgrounds for One Heading" is shown twice because it is in
the markup twice. One of the images isn't shown because it's a background image
on an inline of width 0. One of the images isn't shown because the 'content'
property doesn't apply to elements in any CSS Recommendation. The test also
tries to position generated content, which isn't allowed in CSS2.
In fact, from my examination of the test, I'd say Mozilla is doing it right as
of current specs.
Note: Please don't mark bugs as CONFIRMED unless you are sure the bug is valid
and has a good clear testcase.
Comment 3•22 years ago
|
||
(I mid-aired with dbaron but didn't notice as I wasn't looking at this window.
Maybe I should pay more attention. :-P)
You need to log in
before you can comment on or make changes to this bug.
Description
•