New issue
Advanced search Search tips

Issue 818888 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Outdenting causes some nested bullet points to lose their styling

Reported by jammer6...@gmail.com, Mar 5 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6

Steps to reproduce the problem:
1. Paste the code from the very bottom of  https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Editable_content/Rich-Text_Editing_in_Mozilla into a .html file.
2. Open that html file
3. Check "Show HTML"
4. Paste this into the editor:

<span flagged="">topic 1</span><br><ul><li>defa</li><ul><li hide-as-child=""><span style="color:rgb(156, 39, 176);">hij</span></li><ul><li><span style="background-color:rgb(156, 39, 176);">klma</span></li><li><span style="background-color:rgb(156, 39, 176);">aoeu</span></li><li><span style="background-color:rgb(3, 169, 244);">aou</span><br></li></ul><li hide-as-child=""><span style="text-decoration-line:underline;">aoeu</span></li><li>aoue</li></ul><li hide-as-child="">aoeu</li></ul><br><span style="color:rgb(0, 150, 136);">

5. Uncheck "Show HTML"
6. Select the 3 very innermost bullet points
7. Press the outdent button

What is the expected behavior?
All bullet points should retain their styling when outdented.

What went wrong?
Some nested bullet points lost their styling when outdented.

Did this work before? N/A 

Chrome version:  64.0.3282.167 (Official Build) (64-bit)  Channel: n/a
OS Version: OS X 10.12.6
Flash Version: 28.0.0.161

Neither Firefox 58.0.2 (64-bit) nor Safari 11.0.3 (12604.5.6.1.1) on my mac have this issue.

I'm using electron (runs on chromium) to build a text editor. This bug is moderately important to my users.

Thanks!
 
OutdentUnformats.mov
5.0 MB View Download

Comment 1 by woxxom@gmail.com, Mar 6 2018

Bisect info: 401531 (good) - 401534 (bad)
https://chromium.googlesource.com/chromium/src/+log/48321ca0..850a008e?pretty=fuller
Suspecting r401533 = bb59e5b729913a2023ea70e50d0689626565dd7e = https://crrev.com/2072093002 by joone.hur@intel.com
"Remove style spans to follow the styles of list item"
Landed in 53.0.2778.0

It was caused by a fix for  issue 335955 , but in cases such as this one the new behavior seems similar to cutting the head off to cure a headache.
Cc: yosin@chromium.org
Components: -Blink Blink>Editing
Labels: FoundIn-64 hasbisect
Status: Untriaged (was: Unconfirmed)

Comment 3 by yosin@chromium.org, Mar 16 2018

Cc: -yosin@chromium.org
Components: -Blink>Editing Blink>Editing>Command
Labels: -Pri-2 Pri-3

Comment 4 by yosin@chromium.org, Mar 16 2018

Status: Available (was: Untriaged)

Sign in to add a comment