WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
91724
Range object returns reversed rectangles in vertical text if parent element of text node is inline element
https://bugs.webkit.org/show_bug.cgi?id=91724
Summary
Range object returns reversed rectangles in vertical text if parent element o...
Tatsuya Nitta
Reported
2012-07-19 00:54:46 PDT
Created
attachment 153199
[details]
Test file to reproduce Overview: If parent element of text node is inline element and "vertical-rl" is set to -webkit-writing-mode, Range object returns reversed rectangles. Steps to Reproduce: 1) Open the attached test file which contains 4 <DIV> elements Each of them are: (a) horizontal text in DIV element (b) vertical text in DIV element (c) horizontal text in SPAN element under DIV element (d) vertical text in SPAN element under DIV element Gray(#909090) colored DIV elements in 4 DIV element are generated by JavaScript which represents rectangles of Range object created from text node. 2) See the gray(#909090) colored DIV elements in DIV element of (d) 3) Open the inspector and select Elements button and then make sure rectangles are returned in reverse order Actual Results: The rectangles are returned in reverse order, only when parent element of text node is inline element and "vertical-rl" is set to -webkit-writing-mode. Expected Results: The rectancles should be returned in the correct order even if parent element of text node is inline element and "vertical-rl" is set to -webkit-writing-mode. Additional Information: The rectangles are returned correctly when the text is horizontal or parant element of text node is block element.
Attachments
Test file to reproduce
(2.61 KB, text/html)
2012-07-19 00:54 PDT
,
Tatsuya Nitta
no flags
Details
Result screen shot
(91.27 KB, image/png)
2012-07-19 01:00 PDT
,
Tatsuya Nitta
no flags
Details
Test file to reproduce
(3.08 KB, text/html)
2012-07-19 21:13 PDT
,
Tatsuya Nitta
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Tatsuya Nitta
Comment 1
2012-07-19 01:00:36 PDT
Created
attachment 153202
[details]
Result screen shot
Tatsuya Nitta
Comment 2
2012-07-19 21:13:43 PDT
Created
attachment 153396
[details]
Test file to reproduce
Tatsuya Nitta
Comment 3
2012-10-12 00:55:25 PDT
It's been a while since I logged this bug. It seems there is no update. Can someone look at this issue?
Ahmad Saleem
Comment 4
2022-08-01 13:56:31 PDT
I am not able to reproduce this selection bug in Safari 15.6 on macOS 12.5 from the shown in the reference screenshot. It is matching with the correct order selection from the reference as of today. Chrome Canary 106 also matches with Safari 15.6 but for some reason Firefox Nightly 105 has different behavior, which might be due to -webkit-writing-mode prefix. I didn't try to fix test case to check in Firefox considering that the reference screenshot incorrect behavior is not present anymore. If you someone want, I can test it. Just wanted to share updated status and I think this can be marked as "RESOLVED CONFIGURATION CHANGED". If I am testing incorrectly, please test accordingly. Thanks!
Brent Fulgham
Comment 5
2022-08-01 14:08:40 PDT
Sounds correct, thank you for testing!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug