| Summary: | Stylesheet rule.cssText is incorrect for a property setting 'background: none' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> | ||||||
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED DUPLICATE | ||||||||
| Severity: | Normal | CC: | ap, bfulgham, karlcow, obrufau, rniwa, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||||
| Version: | Safari Technology Preview | ||||||||
| Hardware: | All | ||||||||
| OS: | macOS 12 | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=245105 | ||||||||
| Bug Depends on: | 190496 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Ahmad Saleem
2022-09-12 16:41:50 PDT
I wonder if fixing Bug 245105 would also fix this. Created attachment 462643 [details]
testcase
Safari TP 154
[Log] input – ".test1 {background: none; }" (test-csstext-roundtrip-background.html, line 21)
[Log] output – ".test1 { background-image: none; }" (test-csstext-roundtrip-background.html, line 22)
[Log] input – ".test2 {background-image: none; background-color: initial; background-position: initial initial; background-repeat: initial initial;}" (test-csstext-roundtrip-background.html, line 21)
[Log] output – ".test2 { background-image: none; }" (test-csstext-roundtrip-background.html, line 22)
Firefox Nightly 107
11:40:35.025 input .test1 {background: none; } test-csstext-roundtrip-background.html:21:17
11:40:35.026 output .test1 { background: none; } test-csstext-roundtrip-background.html:22:17
11:40:35.026 input .test2 {background-image: none; background-color: initial; background-position: initial initial; background-repeat: initial initial;} test-csstext-roundtrip-background.html:21:17
11:40:35.026 output .test2 { background-image: none; background-color: initial; }
Chrome Canary 108
input .test1 {background: none; }
test-csstext-roundtrip-background.html:22 output .test1 { background: none; }
test-csstext-roundtrip-background.html:21 input .test2 {background-image: none; background-color: initial; background-position: initial initial; background-repeat: initial initial;}
test-csstext-roundtrip-background.html:22 output .test2 { background-image: none; background-color: initial; }
Created attachment 462644 [details]
rendering in safari, firefox, chrome
Ahmad, thanks for the test case, I uploaded it here. The one you provided as a typo for the test2 rule. (In reply to Karl Dubost from comment #5) > Ahmad, thanks for the test case, I uploaded it here. > The one you provided as a typo for the test2 rule. Cool.. Thanks! Attached test case works fine in WebKit trunk based off 259178@main and matches Chrome Canary 111 and Firefox Nightly 111. I only have "Selection API" enabled explicitly. *** This bug has been marked as a duplicate of bug 185953 *** |