RESOLVED FIXED 166674
Add some missing longhand properties to CSSComputedStyleDeclaration and fix default values
https://bugs.webkit.org/show_bug.cgi?id=166674
Summary Add some missing longhand properties to CSSComputedStyleDeclaration and fix d...
Joseph Pecoraro
Reported 2017-01-03 20:10:41 PST
Summary: Add some missing longhand properties to CSSComputedStyleDeclaration and fix default values Test: <style> body { counter-reset: my-counter; } #x { counter-increment: object; } #x:before { content: "Before (" counter(my-counter) ") "; counter-increment: my-counter; } #x:after { content: " After (" counter(my-counter) ")"; counter-increment: my-counter; } </style> <div id="x">Test</div> Steps to Reproduce: 1. Inspect div#x on test page 2. Show computed styles => "counter-increment" does not show up, but it is expected Notes: - This is because "counter-increment" doesn't show up in the numeric list of all longhand properties in: getComputedStyle(elem) - Adding it to that list makes it show up in the inspector - Auditing all our longhand properties there are plenty that could be in this list that are not.
Attachments
[PATCH] Proposed Fix (16.32 KB, patch)
2017-01-03 20:13 PST, Joseph Pecoraro
bburg: review-
[PATCH] Proposed Fix (32.53 KB, patch)
2017-01-05 13:42 PST, Joseph Pecoraro
darin: review+
[PATCH] For Landing (32.72 KB, patch)
2017-01-06 11:27 PST, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2017-01-03 20:10:58 PST
Joseph Pecoraro
Comment 2 2017-01-03 20:13:50 PST
Created attachment 297989 [details] [PATCH] Proposed Fix
Blaze Burg
Comment 3 2017-01-03 21:05:52 PST
Comment on attachment 297989 [details] [PATCH] Proposed Fix Looks like one SVG test still needs fixing.
Joseph Pecoraro
Comment 4 2017-01-05 13:20:21 PST
(In reply to comment #3) > Comment on attachment 297989 [details] > [PATCH] Proposed Fix > > Looks like one SVG test still needs fixing. How can I see what that one SVG test was? =/
Joseph Pecoraro
Comment 5 2017-01-05 13:20:43 PST
Got it: Regressions: Unexpected text-only failures (1) svg/css/getComputedStyle-basic.xhtml [ Failure ]
Joseph Pecoraro
Comment 6 2017-01-05 13:42:33 PST
Created attachment 298130 [details] [PATCH] Proposed Fix
Darin Adler
Comment 7 2017-01-05 23:55:05 PST
Comment on attachment 298130 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=298130&action=review > Source/WebCore/css/CSSComputedStyleDeclaration.cpp:1865 > + return CSSValuePool::singleton().createIdentifierValue(CSSValueNone); Given this function no longer ever returns null, its return type should be changed from RefPtr to Ref.
Joseph Pecoraro
Comment 8 2017-01-06 11:27:17 PST
Created attachment 298218 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 9 2017-01-06 12:03:44 PST
Comment on attachment 298218 [details] [PATCH] For Landing Clearing flags on attachment: 298218 Committed r210449: <http://trac.webkit.org/changeset/210449>
Note You need to log in before you can comment on or make changes to this bug.