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

Issue 1184433004: Implement chinese counter styles (Closed)

Created:
5 years, 6 months ago by rwlbuis
Modified:
5 years, 6 months ago
Reviewers:
tkent, kojii
CC:
blink-reviews, szager+layoutwatch_chromium.org, blink-reviews-style_chromium.org, zoltan1, blink-reviews-css, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, slimming-paint-reviews_chromium.org, blink-reviews-paint_chromium.org, dglazkov+blink, blink-reviews-rendering, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, dshwang
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement chinese counter styles After r197154 it turned out the counter-style tests [1] do not actually use cjk-ideographic but rather the explicit chinese styles. This patch implements the 4 chinese counter styles and adds the tests from the test suite. This means the previously added tests from css3-counter-styles-081.html until css3-counter-styles-085.html do not longer need the explicitly added cjk-ideographic to work. This patch also changes the suffix for chinese counter styles to match the spec [2]. [1] https://github.com/w3c/csswg-test/tree/master/css-counter-styles-3/i18n [2] http://dev.w3.org/csswg/css-counter-styles/#limited-chinese Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197575

Patch Set 1 #

Patch Set 2 : Add more tests #

Patch Set 3 : Fix test expectation #

Total comments: 2

Patch Set 4 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -140 lines) Patch
A + LayoutTests/fast/lists/css3-counter-styles-071.html View 1 2 chunks +4 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-071-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-072.html View 1 3 chunks +5 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-072-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-073.html View 1 2 chunks +5 lines, -5 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-073-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-074.html View 1 2 chunks +6 lines, -4 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-074-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-075.html View 1 2 chunks +4 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-075-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-076.html View 2 chunks +13 lines, -12 lines 0 comments Download
A LayoutTests/fast/lists/css3-counter-styles-076-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/lists/css3-counter-styles-077.html View 1 chunk +57 lines, -0 lines 0 comments Download
A LayoutTests/fast/lists/css3-counter-styles-077-expected.txt View 1 chunk +29 lines, -0 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-078.html View 2 chunks +6 lines, -6 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-078-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-079.html View 3 chunks +7 lines, -4 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-079-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-080.html View 2 chunks +4 lines, -4 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-080-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/lists/css3-counter-styles-081.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/lists/css3-counter-styles-082.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/lists/css3-counter-styles-083.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/lists/css3-counter-styles-084.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/lists/css3-counter-styles-085.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-086.html View 1 3 chunks +15 lines, -12 lines 0 comments Download
A LayoutTests/fast/lists/css3-counter-styles-086-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/lists/css3-counter-styles-087.html View 1 1 chunk +59 lines, -0 lines 0 comments Download
A LayoutTests/fast/lists/css3-counter-styles-087-expected.txt View 1 1 chunk +29 lines, -0 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-088.html View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-088-expected.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-089.html View 1 3 chunks +7 lines, -4 lines 0 comments Download
A + LayoutTests/fast/lists/css3-counter-styles-089-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/lists/w3-css3-list-styles-fallback-style.html View 1 2 3 2 chunks +12 lines, -16 lines 0 comments Download
M LayoutTests/fast/lists/w3-css3-list-styles-fallback-style-expected.txt View 1 2 3 2 chunks +12 lines, -12 lines 0 comments Download
M Source/core/css/CSSPrimitiveValueMappings.h View 2 chunks +12 lines, -0 lines 0 comments Download
M Source/core/css/CSSValueKeywords.in View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutListMarker.cpp View 1 2 3 11 chunks +93 lines, -26 lines 0 comments Download
M Source/core/paint/ListMarkerPainter.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/style/ComputedStyleConstants.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
rwlbuis
PTAL
5 years, 6 months ago (2015-06-17 23:45:38 UTC) #2
kojii
Non-owner LGTM. I was thinking to import these tests from CSS WG rather than copying, ...
5 years, 6 months ago (2015-06-21 19:21:23 UTC) #3
tkent
lgtm https://codereview.chromium.org/1184433004/diff/40001/Source/core/layout/LayoutListMarker.cpp File Source/core/layout/LayoutListMarker.cpp (right): https://codereview.chromium.org/1184433004/diff/40001/Source/core/layout/LayoutListMarker.cpp#newcode338 Source/core/layout/LayoutListMarker.cpp:338: SecondGroupMarker = 1, ThirdGroupMarker = 3, FourthGroupMarker = ...
5 years, 6 months ago (2015-06-22 01:14:14 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184433004/60001
5 years, 6 months ago (2015-06-22 12:50:56 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197575
5 years, 6 months ago (2015-06-22 13:53:55 UTC) #8
rwlbuis
5 years, 6 months ago (2015-06-22 15:31:43 UTC) #9
Message was sent while issue was closed.
On 2015/06/21 19:21:23, kojii wrote:
> Non-owner LGTM.

Thanks!

> I was thinking to import these tests from CSS WG rather than copying, but it
> turned out that these are manual tests that we cannot import. There's no way
to
> test counter-styles automatically without using internals.

Yes, that is very unfortunate :( Editing them to match our internals is
cumbersome and error prone. The only way to solve this may be if there was some
standardized JS framework for testing this.

Powered by Google App Engine
This is Rietveld 408576698