RESOLVED FIXED Bug 70211
Initial plumbing for vertical writing mode form controls
https://bugs.webkit.org/show_bug.cgi?id=70211
Summary Initial plumbing for vertical writing mode form controls
SiqinBilige
Reported 2011-10-16 19:24:45 PDT
I am tested -moz-writing-mode:vertical-lr for traditional mongolian language on windiws 7. The displaying was allwrite (top-bottom,left-right). But with forms ( textarea, input.text, select ) it was not correctly. It is correctly display the data and it's directions. but can not sizeing the form component correctly. I use the css width height to resize the components, but no effect on it. The result image was attached and the page can view on URL. (sorry for my bad english).
Attachments
Mongolian Forms (14.14 KB, image/jpeg)
2011-10-16 19:26 PDT, SiqinBilige
no flags
another test case (160 bytes, text/html)
2011-10-17 11:59 PDT, Alexey Proskuryakov
no flags
Patch that makes text controls work with vertical writing. (34.21 KB, patch)
2013-03-08 12:04 PST, Dave Hyatt
no flags
Patch for input and textarea (33.31 KB, patch)
2013-03-08 12:39 PST, Dave Hyatt
webkit.review.bot: commit-queue-
Patch (26.78 KB, patch)
2013-03-11 09:00 PDT, Dave Hyatt
no flags
Patch (29.68 KB, patch)
2013-03-11 11:12 PDT, Dave Hyatt
no flags
Patch (29.69 KB, patch)
2013-03-11 11:15 PDT, Dave Hyatt
simon.fraser: review+
evidence (287.31 KB, image/png)
2013-03-14 00:50 PDT, SiqinBilige
no flags
evidence (326.30 KB, image/png)
2013-03-15 19:15 PDT, SiqinBilige
no flags
SiqinBilige
Comment 1 2011-10-16 19:26:14 PDT
Created attachment 111199 [details] Mongolian Forms
Alexey Proskuryakov
Comment 2 2011-10-17 11:59:18 PDT
Created attachment 111294 [details] another test case Attaching another test case, which shows that Roman letters also don't work in vertical writing mode.
SiqinBilige
Comment 3 2012-03-28 20:49:26 PDT
sorry. there is mistake in my description. wrong : -moz-writing-mode:vertical-lr right : -webkit-writing-mode: vertical-lr
Alexey Proskuryakov
Comment 4 2012-08-10 09:49:41 PDT
SiqinBilige
Comment 5 2012-10-16 22:41:55 PDT
On WebKit r131444 we can sizing textarea but can not display traditional mongolian script by vertical with -webkit-writing-mode: vertical-lr. It is both on Windows and Mac OS X(WebKit r131535).
Dave Hyatt
Comment 6 2013-03-07 15:23:20 PST
We'll probably want to split this out by control, since it's going to involve different patches to make each control work properly.
Dave Hyatt
Comment 7 2013-03-08 12:04:59 PST
Created attachment 192264 [details] Patch that makes text controls work with vertical writing.
Dave Hyatt
Comment 8 2013-03-08 12:05:35 PST
The attached patch fixes up textfields and textareas to work with vertical writing.
Dave Hyatt
Comment 9 2013-03-08 12:39:43 PST
Created attachment 192273 [details] Patch for input and textarea
WebKit Review Bot
Comment 10 2013-03-08 12:41:27 PST
Attachment 192273 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/css/html.css', u'Source/WebCore/rendering/RenderBoxModelObject.h', u'Source/WebCore/rendering/RenderSearchField.cpp', u'Source/WebCore/rendering/RenderSearchField.h', u'Source/WebCore/rendering/RenderTextControl.cpp', u'Source/WebCore/rendering/RenderTextControl.h', u'Source/WebCore/rendering/RenderTextControlMultiLine.cpp', u'Source/WebCore/rendering/RenderTextControlMultiLine.h', u'Source/WebCore/rendering/RenderTextControlSingleLine.cpp', u'Source/WebCore/rendering/RenderTextControlSingleLine.h', u'Source/WebCore/rendering/style/RenderStyle.h']" exit_code: 1 Source/WebCore/rendering/RenderTextControlSingleLine.cpp:330: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/rendering/style/RenderStyle.h:990: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:992: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:999: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:1001: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 5 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 11 2013-03-08 19:06:44 PST
Comment on attachment 192273 [details] Patch for input and textarea Attachment 192273 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17110320 New failing tests: fast/forms/search-disabled-readonly.html fast/forms/searchfield-heights.html fast/forms/datalist/update-range-with-datalist.html fast/forms/placeholder-pseudo-style.html fast/hidpi/video-controls-in-hidpi.html http/tests/cache/subresource-failover-to-network.html fast/forms/search-zoomed.html fast/forms/search-display-none-cancel-button.html fast/forms/search-cancel-button-style-sharing.html fast/forms/number/number-appearance-spinbutton-disabled-readonly.html fast/loader/text-document-wrapping.html fast/layers/no-clipping-overflow-hidden-added-after-transition.html fast/css/input-search-padding.html fast/forms/control-restrict-line-height.html fast/forms/search-abs-pos-cancel-button.html fast/forms/search-cancel-button-events.html fast/forms/number/number-appearance-rtl.html fast/css/text-input-with-webkit-border-radius.html fast/forms/input-appearance-height.html fast/forms/search-cancel-button-mouseup.html fast/forms/search-transformed.html fast/forms/number/number-appearance-spinbutton-layer.html fast/forms/search-rtl.html fast/forms/search-styled.html fast/layers/no-clipping-overflow-hidden-added-after-transform.html fast/css/text-overflow-input.html fast/loader/javascript-url-in-object.html fast/forms/box-shadow-override.html fast/forms/search-vertical-alignment.html fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html
Build Bot
Comment 12 2013-03-11 00:07:07 PDT
Comment on attachment 192273 [details] Patch for input and textarea Attachment 192273 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-commit-queue.appspot.com/results/17134076 New failing tests: fast/forms/search-disabled-readonly.html fast/forms/placeholder-pseudo-style.html fast/forms/search-display-none-cancel-button.html fast/forms/search-cancel-button-style-sharing.html fast/forms/number/number-appearance-spinbutton-disabled-readonly.html fast/events/autoscroll-in-textarea.html fast/css/input-search-padding.html editing/pasteboard/smart-paste-001.html fast/forms/control-restrict-line-height.html fast/forms/search-abs-pos-cancel-button.html fast/forms/search-cancel-button-events.html fast/forms/number/number-appearance-rtl.html fast/css/text-input-with-webkit-border-radius.html fast/forms/placeholder-position.html fast/forms/input-appearance-height.html fast/forms/search-cancel-button-mouseup.html fast/forms/number/number-appearance-spinbutton-layer.html fast/forms/search-rtl.html canvas/philip/tests/2d.text.draw.fontface.notinpage.html fast/css/text-overflow-input.html fast/history/visited-link-background-color.html fast/forms/box-shadow-override.html fast/events/event-sender-mouse-moved.html
Dave Hyatt
Comment 13 2013-03-11 09:00:28 PDT
Created attachment 192481 [details] Patch This patch simply preps the code. It doesn't turn on vertical writing yet. I'm thinking the best approach for form controls is to slowly prep the code while leaving the feature off, and then once we have them all converted, we can worry about turning this on.
WebKit Review Bot
Comment 14 2013-03-11 09:04:22 PDT
Attachment 192481 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/rendering/RenderBoxModelObject.h', u'Source/WebCore/rendering/RenderSearchField.cpp', u'Source/WebCore/rendering/RenderSearchField.h', u'Source/WebCore/rendering/RenderTextControl.cpp', u'Source/WebCore/rendering/RenderTextControl.h', u'Source/WebCore/rendering/RenderTextControlMultiLine.cpp', u'Source/WebCore/rendering/RenderTextControlMultiLine.h', u'Source/WebCore/rendering/RenderTextControlSingleLine.cpp', u'Source/WebCore/rendering/RenderTextControlSingleLine.h', u'Source/WebCore/rendering/style/RenderStyle.h']" exit_code: 1 Source/WebCore/rendering/style/RenderStyle.h:990: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:992: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:999: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:1001: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 4 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 15 2013-03-11 11:12:18 PDT
WebKit Review Bot
Comment 16 2013-03-11 11:13:41 PDT
Attachment 192515 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/rendering/RenderBoxModelObject.h', u'Source/WebCore/rendering/RenderSearchField.cpp', u'Source/WebCore/rendering/RenderSearchField.h', u'Source/WebCore/rendering/RenderTextControl.cpp', u'Source/WebCore/rendering/RenderTextControl.h', u'Source/WebCore/rendering/RenderTextControlMultiLine.cpp', u'Source/WebCore/rendering/RenderTextControlMultiLine.h', u'Source/WebCore/rendering/RenderTextControlSingleLine.cpp', u'Source/WebCore/rendering/RenderTextControlSingleLine.h', u'Source/WebCore/rendering/style/RenderStyle.h']" exit_code: 1 Source/WebCore/rendering/style/RenderStyle.h:990: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:992: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:999: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:1001: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 17 2013-03-11 11:15:21 PDT
WebKit Review Bot
Comment 18 2013-03-11 11:18:53 PDT
Attachment 192516 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/rendering/RenderBoxModelObject.h', u'Source/WebCore/rendering/RenderSearchField.cpp', u'Source/WebCore/rendering/RenderSearchField.h', u'Source/WebCore/rendering/RenderTextControl.cpp', u'Source/WebCore/rendering/RenderTextControl.h', u'Source/WebCore/rendering/RenderTextControlMultiLine.cpp', u'Source/WebCore/rendering/RenderTextControlMultiLine.h', u'Source/WebCore/rendering/RenderTextControlSingleLine.cpp', u'Source/WebCore/rendering/RenderTextControlSingleLine.h', u'Source/WebCore/rendering/style/RenderStyle.h']" exit_code: 1 Source/WebCore/rendering/style/RenderStyle.h:990: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:992: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:999: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/style/RenderStyle.h:1001: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 19 2013-03-11 12:07:31 PDT
Comment on attachment 192516 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192516&action=review > Source/WebCore/ChangeLog:11 > + writing yet. > + > + Reviewed by NOBODY (OOPS!). Would be nice to summarize the nature of the changes. Reviewed by line should go above the change description.
Dave Hyatt
Comment 20 2013-03-11 13:02:56 PDT
Textfield plumbing landed in r145391.
SiqinBilige
Comment 21 2013-03-11 19:12:41 PDT
On r145355 (-webkit-writing-mode: vertical-lr) 1. textarea can sizing, but can not edit text vertical way. 2. text field can sizing, but can not edit text vertical way. 3. select can not sizing, can not display vertical way. 4. button can not sizing, can not display vertical way. 5. editble div can sizing and display/edit vertical way.
SiqinBilige
Comment 22 2013-03-14 00:44:44 PDT
On r145768 (-webkit-writing-mode: vertical-lr) 1. textarea can sizing, but can not edit text vertical way. 2. text field can sizing, but can not edit text vertical way. 3. select can not sizing, can not display vertical way. 4. button can not sizing, can not display vertical way. 5. editble div can sizing and display/edit vertical way.
SiqinBilige
Comment 23 2013-03-14 00:50:23 PDT
Created attachment 193082 [details] evidence r145768.png
SiqinBilige
Comment 24 2013-03-15 19:15:48 PDT
Created attachment 193414 [details] evidence On r145930 Webkit completely can not display and edit Traditional Mongolian Language vertical way. What is it ?
Ryosuke Niwa
Comment 25 2013-03-15 19:18:02 PDT
(In reply to comment #24) > Created an attachment (id=193414) [details] > evidence > > On r145930 > Webkit completely can not display and edit Traditional Mongolian Language vertical way. > What is it ? Please file a new bug.
Tim Nguyen (:ntim)
Comment 26 2022-09-18 23:48:21 PDT
Let's file new bugs for further work.
Note You need to log in before you can comment on or make changes to this bug.