Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed)

Created:
5 years, 4 months ago by Habib Virji
Modified:
5 years, 4 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, blink-reviews-style_chromium.org, vivekg_samsung, blink-reviews-css, vivekg, dglazkov+blink, apavlov+blink_chromium.org, Inactive, darktears, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CSSStyleDeclaraction returns empty string CSSStyleDeclaration was returning a null value of type object if CSS property does not exist. This CL updates IDL as per the specification and returns an empty string when property is not found. All tests has been updated that was previously expecting null value to empty string. BUG=516236 R=philipj, timloh@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200166

Patch Set 1 #

Patch Set 2 : Updated failing tests #

Total comments: 1

Patch Set 3 : Removed changes from imported/csswg-test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+837 lines, -326 lines) Patch
M LayoutTests/css3/blending/blend-mode-property-parsing-invalid-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/css3/blending/script-tests/blend-mode-property-parsing-invalid.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/calc/number-parsing.html View 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/css3/filters/filter-property-parsing-invalid-expected.txt View 1 chunk +64 lines, -64 lines 0 comments Download
M LayoutTests/css3/filters/script-tests/filter-property-parsing-invalid.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/backgrounds/repeat/parsing-background-repeat-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/repeat/script-tests/parsing-background-repeat.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/parsing-background-size-values-expected.txt View 1 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/backgrounds/size/resources/parsing-background-size-values.js View 1 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/box-decoration-break/box-decoration-break-parsing.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/box-decoration-break/box-decoration-break-parsing-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/box-shadow/box-shadow-parsing-invalid-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/box-shadow/script-tests/box-shadow-parsing-invalid.js View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/background-clip-text-expected.txt View 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/fast/css/border-spacing-without-vertical-value.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/draggable-region-parser.html View 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/fast/css/draggable-region-parser-expected.txt View 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-border.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-border-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-column-rule.html View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-column-rule-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-columns.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-columns-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-webkit-margin-collapse.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-webkit-margin-collapse-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-webkit-text-stroke.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/getPropertyValue-webkit-text-stroke-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/parsing-object-fit.html View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/parsing-object-fit-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/parsing-object-position.html View 1 chunk +15 lines, -15 lines 0 comments Download
M LayoutTests/fast/css/parsing-object-position-expected.txt View 1 chunk +15 lines, -15 lines 0 comments Download
M LayoutTests/fast/css/parsing-text-rendering-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/parsing-webkit-font-smoothing-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/resources/parsing-text-rendering.js View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/resources/parsing-webkit-font-smoothing.js View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/script-tests/background-clip-text.js View 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/css/script-tests/transform-origin-parsing.js View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/shorthand-setProperty-important.html View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/shorthand-setProperty-important-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/transform-origin-parsing-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/webkit-mask-crash-implicit-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/masking/parsing-clip-path-shape.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/masking/parsing-clip-path-shape-expected.txt View 1 1 chunk +15 lines, -15 lines 0 comments Download
M LayoutTests/fast/masking/parsing-mask.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/masking/parsing-mask-expected.txt View 1 1 chunk +35 lines, -35 lines 0 comments Download
M LayoutTests/fast/shapes/parsing/parsing-shape-lengths.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/shapes/parsing/parsing-shape-lengths-expected.txt View 1 1 chunk +8 lines, -8 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-002-expected.txt View 1 2 1 chunk +8 lines, -0 lines 1 comment Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-003-expected.txt View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-004-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-005-expected.txt View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-circle-003-expected.txt View 1 2 1 chunk +128 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-circle-006-expected.txt View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-circle-007-expected.txt View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-circle-008-expected.txt View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-ellipse-003-expected.txt View 1 2 1 chunk +128 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-ellipse-006-expected.txt View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-ellipse-007-expected.txt View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-ellipse-008-expected.txt View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-inset-005-expected.txt View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-inset-006-expected.txt View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-inset-007-expected.txt View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-polygon-003-expected.txt View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M LayoutTests/virtual/stable/webexposed/nonstable-css-properties-expected.txt View 1 1 chunk +28 lines, -28 lines 0 comments Download
M LayoutTests/webexposed/internal-properties-should-not-be-exposed.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/webexposed/internal-properties-should-not-be-exposed-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSStyleDeclaration.idl View 1 2 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274643002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274643002/1
5 years, 4 months ago (2015-08-05 13:27:36 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/74021)
5 years, 4 months ago (2015-08-05 15:13:16 UTC) #4
Timothy Loh
LayoutTests/imported/README suggests that we aren't supposed to modify the tests checked in that directory. https://codereview.chromium.org/1274643002/diff/20001/Source/core/css/CSSStyleDeclaration.idl ...
5 years, 4 months ago (2015-08-06 04:21:34 UTC) #5
tkent
On 2015/08/06 04:21:34, Timothy Loh wrote: > LayoutTests/imported/README suggests that we aren't supposed to modify ...
5 years, 4 months ago (2015-08-06 04:27:25 UTC) #6
Habib Virji
Thanks tkent and timothy, I have uplaoded new patch -expected.txt for the failing test. At ...
5 years, 4 months ago (2015-08-06 10:22:57 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274643002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274643002/40001
5 years, 4 months ago (2015-08-06 10:23:38 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-06 12:23:42 UTC) #11
Timothy Loh
lgtm
5 years, 4 months ago (2015-08-07 01:54:31 UTC) #12
tkent
https://codereview.chromium.org/1274643002/diff/40001/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-002-expected.txt File LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-002-expected.txt (right): https://codereview.chromium.org/1274643002/diff/40001/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-002-expected.txt#newcode2 LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-002-expected.txt:2: FAIL -0.5 - inline - invalid assert_equals: expected (object) ...
5 years, 4 months ago (2015-08-07 01:57:27 UTC) #14
Habib Virji
Yes. As per the specification, getPropertyValue description should return an empty string but it is ...
5 years, 4 months ago (2015-08-07 08:03:47 UTC) #15
tkent
On 2015/08/07 08:03:47, Habib Virji wrote: > Yes. As per the specification, getPropertyValue description should ...
5 years, 4 months ago (2015-08-07 08:14:59 UTC) #16
Habib Virji
IE returns "" empty string but Firefox returns null object.
5 years, 4 months ago (2015-08-07 10:48:55 UTC) #17
tkent
On 2015/08/07 10:48:55, Habib Virji wrote: > IE returns "" empty string but Firefox returns ...
5 years, 4 months ago (2015-08-07 12:12:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1274643002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1274643002/40001
5 years, 4 months ago (2015-08-07 12:39:40 UTC) #20
Habib Virji
Thanks
5 years, 4 months ago (2015-08-07 12:42:55 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 14:03:22 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200166

Powered by Google App Engine
This is Rietveld 408576698