WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
82364
cssText should not generate literal 'initial' in shorthand properties
https://bugs.webkit.org/show_bug.cgi?id=82364
Summary
cssText should not generate literal 'initial' in shorthand properties
Yi Shen
Reported
2012-03-27 12:02:45 PDT
After the code change for
bug 81737
, the new markup is using shorthand notations as desired, however, it may generate a string like "border: initial solid red", which is an invalid declaration because the "initial" keyword is now combined with other component values in the same declaration. "border: initial solid red" should be "border: solid red"
Attachments
Fixes the bug
(6.90 KB, patch)
2012-03-27 13:57 PDT
,
Ryosuke Niwa
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2012-03-27 13:57:20 PDT
Created
attachment 134129
[details]
Fixes the bug
Ryosuke Niwa
Comment 2
2012-03-27 13:57:50 PDT
This is causing a regression in editing because copy & pasted markup now has literal "initial" in some cases, and CSS parser can't handle that.
Alexis Menard (darktears)
Comment 3
2012-03-27 14:06:48 PDT
Comment on
attachment 134129
[details]
Fixes the bug Looks ok to me as a workaround. We really need to nail this problem better in the future. Happy to see that my proposed solution worked.
Yi Shen
Comment 4
2012-03-27 14:17:00 PDT
Just curious, how about StylePropertySet::get4Values(), can it generate a string contains "initial"
Alexis Menard (darktears)
Comment 5
2012-03-27 14:19:44 PDT
(In reply to
comment #4
)
> Just curious, how about StylePropertySet::get4Values(), can it generate a string contains "initial"
Possibly according to the code. Maybe we should fix it there as in theory getPropertyValue could return something buggy. Needs to be tested though.
Alexis Menard (darktears)
Comment 6
2012-03-27 14:21:22 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Just curious, how about StylePropertySet::get4Values(), can it generate a string contains "initial" > > Possibly according to the code. Maybe we should fix it there as in theory getPropertyValue could return something buggy. Needs to be tested though.
But it will return only initial once.
Antti Koivisto
Comment 7
2012-03-27 14:26:27 PDT
Comment on
attachment 134129
[details]
Fixes the bug This probably should differentiate between implicit and explicit initial. r=me in any case as this fixes a regression.
Ryosuke Niwa
Comment 8
2012-03-27 15:01:10 PDT
Committed
r112321
: <
http://trac.webkit.org/changeset/112321
>
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