<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>67033</bug_id>
          
          <creation_ts>2011-08-26 06:06:59 -0700</creation_ts>
          <short_desc>line-break after css:before-content in lists with sub-lists</short_desc>
          <delta_ts>2022-09-30 08:53:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://crix.zahnd.be/WebKit-Bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>uzahnd</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>shanestephens</cc>
    
    <cc>uzahnd</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>457532</commentid>
    <comment_count>0</comment_count>
    <who name="">uzahnd</who>
    <bug_when>2011-08-26 06:06:59 -0700</bug_when>
    <thetext>Steps to reproduce the bug:
1. Create a page with nested lists
2. Define a css-class with a :before content
3. Dynamically assign this class with javascript to a list-item that contains a sub list

The css:before-content should display inline before the list-item&apos;s content (as it does in list-items without sublists, or in statically assigned classes). Instead of this, there&apos;s a line-break between the css:before-content and the list-item&apos;s content.

The bug has been confirmed for Chrome 13, Epiphany 2.30.6 and Arora 0.10.2.
Tested browsers where it doesn&apos;t occur: Firefox 6, IE8 and 9

See sample script below.

thanks,
u


&lt;html&gt;
	&lt;head&gt;
		&lt;style&gt;
			.li1 { cursor:pointer; }
			.li2:before { content:&apos;::before:: &apos;; }
		&lt;/style&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;h1&gt;line-break in lists with sub-lists after css:before-content&lt;/h1&gt;
		&lt;p&gt;click on a list-item without and on one with a sublist&lt;/p&gt;
		&lt;ul&gt;
			&lt;li class=&quot;li1&quot; onclick=&quot;this.className = &apos;li2&apos;&quot;&gt;List item without sub-list: click me&lt;/li&gt;
			&lt;li class=&quot;li1&quot; onclick=&quot;this.className = &apos;li2&apos;&quot;&gt;List item with sub-list: click me
				&lt;ul&gt;
					&lt;li&gt;subitem 1&lt;/li&gt;
					&lt;li&gt;subitem 2&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/li&gt;
			&lt;li class=&quot;li2&quot;&gt;statically assigned :before-content in list item with sub-list
				&lt;ul&gt;
					&lt;li&gt;subitem 1&lt;/li&gt;
					&lt;li&gt;subitem 2&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458018</commentid>
    <comment_count>1</comment_count>
    <who name="">uzahnd</who>
    <bug_when>2011-08-28 12:45:51 -0700</bug_when>
    <thetext>In order to force the (buggy) behavior, assign a &apos;display:block&apos; to the pseudo-class. A &apos;display:inline&apos;-assignement however has no effect.

gruss u</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902370</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-30 08:53:21 -0700</bug_when>
    <thetext>I took the test case from Web Archive:

Link - https://web.archive.org/web/20140806132851/http://crix.zahnd.be/WebKit-Bug.html

All browsers (Safari 16, Firefox Nightly 107 and Chrome Canary 108) expand and add ::before from the list items with and without sub-items and it does not do any layout shift or does not have any weird behavior.

Since all browsers agree, I am marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!

Please reopen, if reproducible with updated test case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>