Bug 42009 - indenting a pre inside a table doesn't indent all of the selection
Summary: indenting a pre inside a table doesn't indent all of the selection
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-07-09 17:33 PDT by Tony Chang
Modified: 2022-07-26 12:33 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Ryosuke Niwa 2010-10-25 21:07:16 PDT
Hi Tony,

This bug doesn't reproduce on WebKit nightly build as far as I checked.  Could you verify that this bug has been fixed?
Comment 2 Tony Chang 2010-10-26 13:37:24 PDT
It no longer duplicates the second line, but the second line doesn't seem to get indented.

The resulting html in the table cell is:

<td><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><pre id="p">line 1</pre></blockquote><pre id="p">line 2</pre></td>

I would expect both <pre> tags to be in the blockquote or separate blockquote elements around each pre.
Comment 3 Shezan Baig 2012-05-08 13:16:39 PDT
see also http://jsfiddle.net/5ft7U/, not sure if it is related to this bug.  the 'line1' should not be duplicated.  this happens when "white-space: pre" style is specified.  Without "white-space: pre", there is no duplication of line1 (http://jsfiddle.net/5ft7U/1/)
Comment 4 Ahmad Saleem 2022-07-26 12:19:14 PDT
I am not sure on expected behavior across browsers or web-spec but this is Current result across all browsers:

*** Safari 15.6 on macOS ***

On Test case from Comment 0 - It shows 'line 1' as indented while 'line 2' as not.

On Test case from Comment 3 - It shows only one line

*** Firefox Nightly 104 ***

On Test case from Comment 0 - It shows 'line 1' as indented while 'line 2' as not.

On Test case from Comment 3 - It shows only one line

*** Chrome Canary 106 ***

On Test case from Comment 0 - It shows both line non-intended

On Test case from Comment 3 - It shows two lines

_____

Just wanted to share updated results, please mark this bug resolved etc. Thanks!
Comment 5 Radar WebKit Bug Importer 2022-07-26 12:33:39 PDT
<rdar://problem/97621013>