Closed
Bug 211657
Opened 22 years ago
Closed 22 years ago
[FIXr]Should use '::' for anonymous boxes and other -moz pseudo-elements
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.5beta
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(4 files, 5 obsolete files)
3.55 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
31.68 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
1.99 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
3.28 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
Filing this per bug 62843 comment 38. The idea is to fix all the stylesheets
that use this stuff, then stop accepting the single-':' form.
![]() |
Assignee | |
Updated•22 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.5beta
![]() |
Assignee | |
Comment 1•22 years ago
|
||
This patch was generated in a clean tree with the following commands, run from
the mozilla/ dir:
find . -name "*.css" -exec grep -H ":-moz-tree-" {} \; |
sed 's/:.*//' |
sed 's|^./||' |
sort |
uniq > ~/fileList.txt
perl -pi -e 's/:-moz-tree-/::-moz-tree-/g' `cat ~/fileList.txt`
cvs diff -u `cat ~/fileList.txt ` > ~/test.patch
![]() |
Assignee | |
Comment 2•22 years ago
|
||
Comment on attachment 127136 [details] [diff] [review]
Patch for the various ::-moz-tree-* pseudos
David, could you review? The patch itself is pretty unreviewable, but the
procedure I used to generate it is reviwable, of course...
Attachment #127136 -
Flags: superreview?(dbaron)
Attachment #127136 -
Flags: review?(dbaron)
Comment on attachment 127136 [details] [diff] [review]
Patch for the various ::-moz-tree-* pseudos
r+sr=dbaron, although you should probably do toolkit/, browser/, and mail/ as
well.
Attachment #127136 -
Flags: superreview?(dbaron)
Attachment #127136 -
Flags: superreview+
Attachment #127136 -
Flags: review?(dbaron)
Attachment #127136 -
Flags: review+
(You might want to check with hyatt or ben about whether they're happy about
switching to this syntax, though.)
![]() |
Assignee | |
Comment 5•22 years ago
|
||
I'll file separate bugs for mail/ and browser/, since I don't have checkin
permission to those, once I hear back from hyatt or ben.
![]() |
Assignee | |
Comment 6•22 years ago
|
||
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127137 -
Flags: superreview?(dbaron)
Attachment #127137 -
Flags: review?(dbaron)
![]() |
Assignee | |
Comment 7•22 years ago
|
||
Comment on attachment 127138 [details] [diff] [review]
Patch for all the non-moz-tree pseudo-elements
There is an edge of some cleanup in nsPresShell.cpp, but it's pretty
straightforward, so I just left it in the diff...
Attachment #127138 -
Flags: superreview?(dbaron)
Attachment #127138 -
Flags: review?(dbaron)
![]() |
Assignee | |
Updated•22 years ago
|
Summary: Should use '::' for anonymous boxes and other -moz pseudo-elements → [FIX]Should use '::' for anonymous boxes and other -moz pseudo-elements
Comment 8•22 years ago
|
||
Re: comment 1, and FYI only (Unix cmd lines were my thing in past lives):
find . -name "*.css" -exec grep -H ":-moz-tree-" {} \; |
sed 's/:.*//' |
sed 's|^./||' |
sort |
uniq > ~/fileList.txt
perl -pi -e 's/:-moz-tree-/::-moz-tree-/g' `cat ~/fileList.txt`
would be shorter and possibly much faster if written this way:
find . -name "*.css" -print | xargs grep -l ':-moz-tree-' |
sed 's|^\./||' |
sort -u |
xargs perl -pi -e 's/:-moz-tree-/::-moz-tree-/g'
(find | xargs wins over find -exec; use grep -l, which stops on first match;
combine sort | uniq into sort -u; escape dot in sed r.e. [cosmetic only, not
necessary for correctness]; add perl to the pipeline via xargs).
/be
![]() |
Assignee | |
Comment 9•22 years ago
|
||
Comment on attachment 127136 [details] [diff] [review]
Patch for the various ::-moz-tree-* pseudos
hyatt says this is good with him; patch checked in.
Attachment #127136 -
Attachment is obsolete: true
Attachment #127137 -
Flags: superreview?(dbaron)
Attachment #127137 -
Flags: superreview+
Attachment #127137 -
Flags: review?(dbaron)
Attachment #127137 -
Flags: review+
Attachment #127138 -
Flags: superreview?(dbaron)
Attachment #127138 -
Flags: superreview+
Attachment #127138 -
Flags: review?(dbaron)
Attachment #127138 -
Flags: review+
![]() |
Assignee | |
Comment 10•22 years ago
|
||
![]() |
Assignee | |
Comment 11•22 years ago
|
||
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127197 -
Flags: superreview?(dbaron)
Attachment #127197 -
Flags: review?(dbaron)
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127198 -
Flags: superreview?(dbaron)
Attachment #127198 -
Flags: review?(dbaron)
Attachment #127197 -
Flags: superreview?(dbaron)
Attachment #127197 -
Flags: superreview+
Attachment #127197 -
Flags: review?(dbaron)
Attachment #127197 -
Flags: review+
Attachment #127198 -
Flags: superreview?(dbaron)
Attachment #127198 -
Flags: superreview+
Attachment #127198 -
Flags: review?(dbaron)
Attachment #127198 -
Flags: review+
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127197 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127138 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127137 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 12•22 years ago
|
||
Checked in the patches, except the mail/ one. mscott, could you land that, please?
Comment 13•22 years ago
|
||
Boris thanks for making a mozilla/mail patch for this. I just checked it in.
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127198 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 14•22 years ago
|
||
I'll probably check this in near the end of 1.5b
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #127207 -
Flags: superreview?(dbaron)
Attachment #127207 -
Flags: review?(dbaron)
Attachment #127207 -
Flags: superreview?(dbaron)
Attachment #127207 -
Flags: superreview+
Attachment #127207 -
Flags: review?(dbaron)
Attachment #127207 -
Flags: review+
![]() |
Assignee | |
Updated•22 years ago
|
Summary: [FIX]Should use '::' for anonymous boxes and other -moz pseudo-elements → [FIXr]Should use '::' for anonymous boxes and other -moz pseudo-elements
![]() |
Assignee | |
Comment 15•22 years ago
|
||
Asa suggested I do this, and it's a good idea.
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #128247 -
Flags: superreview?(dbaron)
Attachment #128247 -
Flags: review?(dbaron)
Comment on attachment 128247 [details] [diff] [review]
Also bump skinversion
Once you land this, make sure you got all of them by checking:
* LXR
* your generated chrome.rdf in your chrome/ directory.
Also, these should probably land a bit before the end of 1.5b so we have time
to catch any regressions (e.g., from people landing code they had tested
against older trees, things you missed, etc.).
Have you checked toolkit/, browser/, and mail/ ? If you haven't, please do...
Attachment #128247 -
Flags: superreview?(dbaron)
Attachment #128247 -
Flags: superreview+
Attachment #128247 -
Flags: review?(dbaron)
Attachment #128247 -
Flags: review+
![]() |
Assignee | |
Comment 17•22 years ago
|
||
Doh. I did miss those...
I guess I'll land this coming Friday or so and that will give me a few days to
sort out issues that may arise before I disappear...
![]() |
Assignee | |
Comment 18•22 years ago
|
||
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #128268 -
Flags: superreview?(dbaron)
Attachment #128268 -
Flags: review?(dbaron)
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #128267 -
Flags: superreview?(dbaron)
Attachment #128267 -
Flags: review?(dbaron)
Attachment #128267 -
Flags: superreview?(dbaron)
Attachment #128267 -
Flags: superreview+
Attachment #128267 -
Flags: review?(dbaron)
Attachment #128267 -
Flags: review+
Attachment #128268 -
Flags: superreview?(dbaron)
Attachment #128268 -
Flags: superreview+
Attachment #128268 -
Flags: review?(dbaron)
Attachment #128268 -
Flags: review+
![]() |
Assignee | |
Comment 19•22 years ago
|
||
Checked in all but the mail/ patches today (I don't have permissions for mail/,
but I dropped mscott an e-mail asking him to check in that part).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 20•22 years ago
|
||
For the record, chatzilla needs to work on *all* versions of mozilla, not just
the latest. Please keep this in mind when making chatzilla changes in the
future. I fixed this on the trunk by adding back the ":" versions of these
selectors. Combining the old and new rules with a comma didn't seem to work,
either, I had to make two distinct rules.
This works on all versions:
treechildren:-moz-tree-image(voice-true) {
list-style-image: url(chrome://chatzilla/skin/images/is-voice.png);
}
treechildren::-moz-tree-image(voice-true) {
list-style-image: url(chrome://chatzilla/skin/images/is-voice.png);
}
This didn't...
treechildren:-moz-tree-image(voice-true),
treechildren::-moz-tree-image(voice-true) {
list-style-image: url(chrome://chatzilla/skin/images/is-voice.png);
}
![]() |
Assignee | |
Comment 21•22 years ago
|
||
> Combining the old and new rules with a comma didn't seem to work
That's correct. If any selector in a comma-separated list is not recognized,
the whole rule must be dropped, per spec.
Comment 22•22 years ago
|
||
"For the record, chatzilla needs to work on *all* versions of mozilla, not just
the latest."
Eh, but the skin number also changed, did I miss anything?
Comment 23•22 years ago
|
||
Sorry for this noise but is mozilla's skin number check a strict/exact match?
For example, when I use 1.6 (or higher) as version number in my skin, and use
mozilla 1.5b, does that allow mozilla to startup without errors and to accept
the skin as valid?
I have no clue as to where I should look for this kind of info (:
You need to log in
before you can comment on or make changes to this bug.
Description
•