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

Issue 1463473002: Make unicode-bidi:isolate the default for elements with dir attributes (Closed)

Created:
5 years, 1 month ago by kojii
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make unicode-bidi:isolate the default for elements with dir attributes This patch changes the unicode-bidi value for elements with dir attributes to "isolate" as defined by HTML5 spec[1][2], except for bdo and other elements defined in the spec. Tests to apply the correct unicode-bidi value were imported from W3C I18N WG. These tests were submitted to the web-platform-tests, and will be removed when merged. Tests for unicode-bidi:isolate are in CSS Writing Modes Level 3 test suites and are imported to imported/csswg-test/css-writing-modes-3. Following 3 tests were changed to apply "embed" since the reviews by experts concluded that these tests are specifically for "embed", and having these tests helps to find our possible regressions until authors moved out from using "embed". - fast/text/bidi-embedding-pop-and-push-same.html - fast/text/international/bidi-LDB-2-HTML.html - fast/text/international/bidi-ignored-for-first-child-inline.html To align with the change, the execCommand("MakeTextWritingDirection") is also changed to apply "isolate". [1] http://www.w3.org/TR/html5/rendering.html#bidi-rendering [2] https://html.spec.whatwg.org/multipage/rendering.html#bidi-rendering BUG=391260 Committed: https://crrev.com/549f017c96ad0e70bfce3b6a2248cbf747dde26c Cr-Commit-Position: refs/heads/master@{#362888}

Patch Set 1 #

Patch Set 2 : iso-8859-8 #

Patch Set 3 : Editing #

Patch Set 4 : iso-8859-8 needs to force layout when run in batch #

Patch Set 5 : Split iso-8859-8 and selections into separate CLs #

Patch Set 6 : Rebase and cleanup #

Patch Set 7 : Tests from I18N WG #

Patch Set 8 : EditingStyle::textDirectionForSelection #

Patch Set 9 : Tests and TestExpectations updated after Aharon review #

Patch Set 10 : One more test fix (bidi-LDB-2-HTML.html) #

Total comments: 2

Patch Set 11 : Rebase #

Patch Set 12 : leviw review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1486 lines, -72 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/style/make-text-writing-direction-inline-mac-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/style/make-text-writing-direction-inline-win-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/style/script-tests/make-text-writing-direction-inline-mac.js View 1 2 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/style/script-tests/make-text-writing-direction-inline-win.js View 1 2 1 chunk +19 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/default-bidi-css-rules.html View 1 2 2 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/default-bidi-css-rules-expected.txt View 1 2 2 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/bidi-embedding-pop-and-push-same.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/international/bidi-LDB-2-HTML.html View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/international/bidi-ignored-for-first-child-inline.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/README.chromium View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-001a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-001a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-001b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-001b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-001c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-001c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-002a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-002a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-002b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-002b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-002c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-002c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-003a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-003a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-003b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-003b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-003c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-003c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-004a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-004a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-004b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-004b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-004c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-004c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-005a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-005a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-005b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-005b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-005c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-005c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-006a.html View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-006a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-006b.html View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-006b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-006c.html View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-006c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-007a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-007a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-007b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-007b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-007c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-007c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-008a.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-008a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-008b.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-008b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-008c.html View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-008c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-009a.html View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-009a-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-009b.html View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-009b-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-009c.html View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/dir-isolation/dir-isolation-009c-expected.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingStyle.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingStyle.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (10 generated)
kojii
PTAL.
5 years ago (2015-12-02 00:47:03 UTC) #7
kojii
The document we used to discuss/review is here, JFYI: https://docs.google.com/document/d/1Ojb95CQJ49aqmJ6SKVOMd_rNTGx8e0LEqjMFJBM1dWI/edit?usp=sharing
5 years ago (2015-12-02 00:48:10 UTC) #8
leviw_travelin_and_unemployed
This patch is *super* exciting! Great work, Koji! Are you fairly confident that this won't ...
5 years ago (2015-12-02 18:25:38 UTC) #9
kojii
Thank you for the review. On 2015/12/02 at 18:25:38, leviw wrote: > This patch is ...
5 years ago (2015-12-02 18:39:35 UTC) #10
leviw_travelin_and_unemployed
On 2015/12/02 at 18:39:35, kojii wrote: > Thank you for the review. > > On ...
5 years ago (2015-12-02 18:49:55 UTC) #11
kojii
On 2015/12/02 18:49:55, leviw wrote: > > > > There are 5 values and 3 ...
5 years ago (2015-12-03 02:04:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1463473002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1463473002/240001
5 years ago (2015-12-03 02:13:32 UTC) #15
eae
LGTM
5 years ago (2015-12-03 03:08:17 UTC) #16
commit-bot: I haz the power
Committed patchset #12 (id:240001)
5 years ago (2015-12-03 03:27:32 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-03 03:28:27 UTC) #20
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/549f017c96ad0e70bfce3b6a2248cbf747dde26c
Cr-Commit-Position: refs/heads/master@{#362888}

Powered by Google App Engine
This is Rietveld 408576698