Use script to remove -moz- prefixes from all usages of CSS multi-column properties in the tree (except for code that adds/intentionally-targets prefixed aliases)
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: neerja, Assigned: TYLin)
References
Details
(Whiteboard: [rebase-needed][needs-rebase], [wptsync upstream])
Attachments
(4 files, 1 obsolete file)
This bug is step (4) from Bug 698783 comment#12
Comment 1•7 years ago
|
||
[--> Clarifying summary a bit to better-distinguish it from bug 698783 and bug 1300895.]
Reporter | ||
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8799907 [details] Bug 1308587 - Use script to remove -moz- prefixes from all usages of CSS multi-column properties in the tree https://reviewboard.mozilla.org/r/84974/#review85260 We should wait to do this until it's clear that the unprefixing has stuck (i.e., shipped on release). Cancelling review request for now.
Reporter | ||
Comment 4•7 years ago
|
||
(In reply to David Baron :dbaron: ⌚️UTC-7 from comment #3) > Comment on attachment 8799907 [details] > Bug 1308587 - Use script to remove -moz- prefixes from all usages of CSS > multi-column properties in the tree > > https://reviewboard.mozilla.org/r/84974/#review85260 > > We should wait to do this until it's clear that the unprefixing has stuck > (i.e., shipped on release). > > Cancelling review request for now. Alright. Thanks David.
Updated•7 years ago
|
Reporter | ||
Updated•6 years ago
|
Well, considering that it’s been two years since the last comment, and Firefox release now supports the unprefixed `column-*` properties (including the last two ESR versions), work on this bug should probably be re-started (as searching through the tree reveals that `-moz-column-*` properties are still in use in some stylesheets in the tree). At the same time, the patch no longer seems to reflect what’s in the Firefox codebase, and therefore needs rebasing.
Comment 6•6 years ago
|
||
The patch's commit message includes the command that was used to generate the patch, so presumably somebody can re-run that command again (or a similar command) to generate an up-to-date patch.
I’ve submitted a PR to the devtools.html repository, which upstreams the `‑moz‑column‑*` changes there.
Assignee | ||
Comment 8•4 years ago
|
||
In the next part, the patch generated by a script removes "-moz" prefix
to all multi-column properties.
However, some of the tests already have standard multi-column properties
specified. To avoid duplicating CSS multi-column rules in these
files (after applying the next part), I manually remove the prefixed
rules beforehand as many as possible.
Assignee | ||
Comment 9•4 years ago
|
||
This patch is generated by the following script:
function remove_column_prefix() {
echo "Renaming $1 to $2"
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.html" -or\
-name "*.xhtml" -or\
-name "*.xht" -or\
-name "*.xul" -or\
-name "*.css" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"
Depends on D44869
Comment 10•4 years ago
|
||
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a31610c04020 Part 1 - Manually remove "-moz" prefixed multi-column properties in some tests. r=dholbert https://hg.mozilla.org/integration/autoland/rev/bb59a0c37162 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/18884 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 13•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a31610c04020
https://hg.mozilla.org/mozilla-central/rev/bb59a0c37162
Assignee | ||
Updated•4 years ago
|
Upstream PR merged by moz-wptsync-bot
Assignee | ||
Comment 15•4 years ago
|
||
-moz-column-span missed the conversion in Bug 1308587 Part 2.
https://hg.mozilla.org/mozilla-central/rev/bb59a0c37162
Comment 16•4 years ago
|
||
Comment on attachment 9120164 [details]
Bug 1308587 Part 1 - Convert -moz-column-span to column-span in a crashtest. r=dbaron
Revision D59562 was moved to bug 1308636. Setting attachment 9120164 [details] to obsolete.
Description
•