WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205196
Prefix CSS selectors with all applicable CSS groupings when generating a ChangeLog
https://bugs.webkit.org/show_bug.cgi?id=205196
Summary
Prefix CSS selectors with all applicable CSS groupings when generating a Chan...
Devin Rousso
Reported
2019-12-12 21:37:08 PST
When modifying a style inside a @media grouping, `prepare-ChangeLog` currently adds the media query as a separate line instead of prefixing the modified rule's selector. e.g., modifying ``` @media (prefers-color-scheme: dark) { body { ... } div { ... } } ``` would generate ``` (@media (prefers-color-scheme: dark)): (body): (div): ``` instead of ``` (@media (prefers-color-scheme: dark) body): (@media (prefers-color-scheme: dark) div): ```
Attachments
Patch
(2.59 KB, patch)
2019-12-12 21:37 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(2.61 KB, patch)
2019-12-12 21:41 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(4.10 KB, patch)
2019-12-13 02:30 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2019-12-12 21:37:26 PST
Created
attachment 385574
[details]
Patch
Devin Rousso
Comment 2
2019-12-12 21:41:46 PST
Created
attachment 385575
[details]
Patch Oops. Forgot bug number :P
Joseph Pecoraro
Comment 3
2019-12-12 23:08:13 PST
Comment on
attachment 385575
[details]
Patch This also needs tests. See Tools/Scripts/webkitperl/prepare-ChangeLog_unittest
Joseph Pecoraro
Comment 4
2019-12-12 23:09:15 PST
> would generate > ``` > (@media (prefers-color-scheme: dark)): > (body): > (div): > ``` > instead of > ``` > (@media (prefers-color-scheme: dark) body): > (@media (prefers-color-scheme: dark) div): > ```
Awesome!!
Devin Rousso
Comment 5
2019-12-13 02:30:35 PST
Created
attachment 385589
[details]
Patch
WebKit Commit Bot
Comment 6
2019-12-13 08:43:05 PST
Comment on
attachment 385589
[details]
Patch Clearing flags on attachment: 385589 Committed
r253478
: <
https://trac.webkit.org/changeset/253478
>
WebKit Commit Bot
Comment 7
2019-12-13 08:43:06 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2019-12-13 08:44:25 PST
<
rdar://problem/57913269
>
Joseph Pecoraro
Comment 9
2019-12-13 18:55:54 PST
Comment on
attachment 385589
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=385589&action=review
> Tools/Scripts/prepare-ChangeLog:1906 > + $groupingPrefix .= " "
Normally perl requires a semicolon. This happens to be the last statement of a block so it isn't required but it would be good to have.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug