Closed
Bug 173586
Opened 23 years ago
Closed 22 years ago
[FIX]universal selector * is not prepended to pseudo elements
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Core
DOM: CSS Object Model
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha1
People
(Reporter: vladimire, Assigned: bzbarsky)
Details
Attachments
(3 files)
|
1.53 KB,
text/html
|
Details | |
|
2.54 KB,
text/html
|
Details | |
|
4.59 KB,
patch
|
bzbarsky
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
universal selector * is appended to pseudo classes but not to pseudo elements.
See the testcase.
| Reporter | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Comment 2•23 years ago
|
||
.
Assignee: jst → bzbarsky
Summary: universal selector * is not appended to pseudo elements → universal selector * is not appended to pseudo elements
| Assignee | ||
Comment 3•23 years ago
|
||
So glazou, right now we do not prepend the "*" in the following situations:
1) we have a tag name (including a pseudo-tag)
2) we have a class name
3) we have an ID
It almost seems like we may want to prepend it in all situations when we don't
have a non-pseudo tag name. Thoghts?
OS: Windows 2000 → All
Hardware: PC → All
Whiteboard: Need to decide on something here
Excerpt from Selectors CR (http://www.w3.org/TR/css3-selectors)
Note: it is recommended that the *, representing the universal selector, not be
omitted.
| Assignee | ||
Comment 5•23 years ago
|
||
OK. should we also do the "all namespace" thing too? So ".foo" would turn into
"*|*.foo" ?
Beuuuuuhhhh. Hmmm. No. In case of an author stylesheet attached to an HTML
document only, the author does not want to see a namespace prefix, even if it's
perfectly legal...
The perfect solution would be the following one from my perspective :
1. if no namespace is defined in the sheet, don't do the *| part
2. if a default namespace is defined, don't do the *| part
3. in other cases, do the *| part
I don't say it's easily feasible. I say it my best choice. Opinions ?
| Assignee | ||
Updated•23 years ago
|
Priority: -- → P4
Target Milestone: --- → Future
Comment 7•23 years ago
|
||
Sorry for the spam, but I was all set to write up a discussion of why this was
wrong when I realized the subject was misleading. So I'm fixing it.
Summary: universal selector * is not appended to pseudo elements → universal selector * is not prepended to pseudo elements
| Assignee | ||
Updated•23 years ago
|
Priority: P4 → P5
| Assignee | ||
Comment 8•22 years ago
|
||
This tests 4 sheets with slightly different @namespace rule combinations.
| Assignee | ||
Comment 9•22 years ago
|
||
This fixes a bug with "|foo" selectors and some other namespace bugs, in
addition to this bug.
| Assignee | ||
Updated•22 years ago
|
Attachment #148008 -
Flags: review?(daniel)
| Assignee | ||
Updated•22 years ago
|
Priority: P5 → P3
Summary: universal selector * is not prepended to pseudo elements → [FIX]universal selector * is not prepended to pseudo elements
Whiteboard: Need to decide on something here
Target Milestone: Future → mozilla1.8alpha
| Assignee | ||
Comment 11•22 years ago
|
||
Comment on attachment 148008 [details] [diff] [review]
Patch to fix this
Marking Daniel's review.
roc, could you sr?
Attachment #148008 -
Flags: superreview?
Attachment #148008 -
Flags: review?(daniel)
Attachment #148008 -
Flags: review+
| Assignee | ||
Comment 12•22 years ago
|
||
Comment on attachment 148008 [details] [diff] [review]
Patch to fix this
Er, even type roc's address... )
Attachment #148008 -
Flags: superreview? → superreview?(roc)
Attachment #148008 -
Flags: superreview?(roc) → superreview+
| Assignee | ||
Comment 13•22 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•