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

Issue 1837413002: Ensure that we don't allow 'none' alongside other values in content property (Closed)

Created:
4 years, 8 months ago by nainar
Modified:
4 years, 8 months ago
Reviewers:
Timothy Loh
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure that we don't allow 'none' alongside other values in content property Currently Chrome accepts a list of values that include "none" along with other values as an acceptable input for CSS property content. This breaks from the spec stated here: https://drafts.csswg.org/css2/generate.html#content where "none" is only accepted as a valid input if it is the only value assigned to content. This patch fixes that behaviour. FF, IE and Edge are consistent with spec here. Committed: https://crrev.com/8845c5f6e9b2e7e84642cf716fc99b4cbfd2a53d Cr-Commit-Position: refs/heads/master@{#383946}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -12 lines) Patch
M third_party/WebKit/LayoutTests/css-parser/content-parsing.html View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html View 1 2 3 1 chunk +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
nainar
4 years, 8 months ago (2016-03-30 01:46:01 UTC) #2
Timothy Loh
https://codereview.chromium.org/1837413002/diff/40001/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html File third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html (right): https://codereview.chromium.org/1837413002/diff/40001/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html#newcode14 third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html:14: content: none normal; It'd make more sense to test ...
4 years, 8 months ago (2016-03-30 02:53:29 UTC) #5
nainar
https://codereview.chromium.org/1837413002/diff/40001/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html File third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html (right): https://codereview.chromium.org/1837413002/diff/40001/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html#newcode14 third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html:14: content: none normal; Done. https://codereview.chromium.org/1837413002/diff/40001/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html#newcode26 third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html:26: assert_equals(getComputedStyle(target1, '::before').content, ''); ...
4 years, 8 months ago (2016-03-30 03:27:36 UTC) #6
Timothy Loh
lgtm
4 years, 8 months ago (2016-03-30 03:32:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837413002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837413002/60001
4 years, 8 months ago (2016-03-30 03:34:49 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/124090) win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_TIMED_OUT, ...
4 years, 8 months ago (2016-03-30 09:25:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837413002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837413002/60001
4 years, 8 months ago (2016-03-30 09:31:41 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-03-30 11:02:06 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 11:02:56 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8845c5f6e9b2e7e84642cf716fc99b4cbfd2a53d
Cr-Commit-Position: refs/heads/master@{#383946}

Powered by Google App Engine
This is Rietveld 408576698