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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12778</bug_id>
          
          <creation_ts>2011-05-25 09:54:20 +0000</creation_ts>
          <short_desc>add &quot;paragraphs&quot; pseudo selector in spec</short_desc>
          <delta_ts>2011-11-22 02:22:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Selectors</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></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 name="Giorgio">giorgio.liscio</reporter>
          <assigned_to name="fantasai">fantasai.bugs</assigned_to>
          <cc>ayg</cc>
    
    <cc>eoconnor</cc>
    
    <cc>hober0</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48803</commentid>
    <comment_count>0</comment_count>
    <who name="Giorgio">giorgio.liscio</who>
    <bug_when>2011-05-25 09:54:20 +0000</bug_when>
    <thetext>hi, if we have three paragraphs like here:

&lt;div id=&quot;body&quot;&gt;
   first paragraph
   &lt;p&gt;second paragraph
   &lt;ul&gt;&lt;li&gt;hey&lt;/ul&gt;
   third paragraph
&lt;/div&gt;

i want to select them as &quot;elements&quot; i always need to surround them with &lt;p&gt;

but a selector like:

div#body &gt; ::paragraphs
{
    margin:20px;
}

would be really nice

contenteditable based editors do not always put &lt;p&gt; around texts, in html5 a text is always a paragraph (if not surrounded by hN tags)

(hope there is the right place for this feature request)

thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48812</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-05-25 16:13:44 +0000</bug_when>
    <thetext>This should be requested in the CSSWG, as it&apos;s a CSS feature, not an HTML feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48826</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-05-25 22:46:15 +0000</bug_when>
    <thetext>So this would do what, add properties to the anonymous block boxes?  Is that feasible?  FWIW, I&apos;m writing a contenteditable spec right now, and by default it looks like I&apos;ll require that paragraphs be wrapped in &lt;p&gt; consistently (with options to switch to other modes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48828</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-05-25 22:59:34 +0000</bug_when>
    <thetext>Aryeh, it&apos;s *potentially* feasible, yes.  But we&apos;ve kept those sorts of things anonymous so far, so we&apos;d probably not change it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52335</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:00:27 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54476</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-09 21:47:00 +0000</bug_when>
    <thetext>Is there a way to reassign this to the CSSWG or do I just mark it INVALID? I think the idea makes enough sense to be studied further, but as others have said, it really is a CSS thing, not an HTML thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60209</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-11-20 15:39:44 +0000</bug_when>
    <thetext>per comment #1 and comment #5, I&apos;m changing the product on this to &quot;CSS&quot;

Tab, I&apos;m not sure what CSS component it should be assigned to, so if can you please check and assign it to the correct one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60319</commentid>
    <comment_count>7</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-11-22 00:44:42 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; per comment #1 and comment #5, I&apos;m changing the product on this to &quot;CSS&quot;
&gt; 
&gt; Tab, I&apos;m not sure what CSS component it should be assigned to, so if can you
&gt; please check and assign it to the correct one?

It should be assigned to Selectors 4, which doesn&apos;t yet have a component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60320</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-11-22 01:10:00 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; It should be assigned to Selectors 4, which doesn&apos;t yet have a component.

It does now :) Thanks -- I moved it over.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60323</commentid>
    <comment_count>9</comment_count>
    <who name="Giorgio">giorgio.liscio</who>
    <bug_when>2011-11-22 02:14:09 +0000</bug_when>
    <thetext>another alternative would be adding implicitly the &quot;&lt;p&gt;&quot;, as happen for example with the &lt;tr&gt;s added directly to the &lt;table&gt;, firefox automatically wraps them with a &lt;tbody&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60324</commentid>
    <comment_count>10</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-11-22 02:15:04 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; another alternative would be adding implicitly the &quot;&lt;p&gt;&quot;, as happen for example
&gt; with the &lt;tr&gt;s added directly to the &lt;table&gt;, firefox automatically wraps them
&gt; with a &lt;tbody&gt;

That&apos;s massively incompatible with web content at this point, so it won&apos;t happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60325</commentid>
    <comment_count>11</comment_count>
    <who name="Giorgio">giorgio.liscio</who>
    <bug_when>2011-11-22 02:22:48 +0000</bug_when>
    <thetext>ok, right
another similar alternative


p{margin:20px;}
::adjacent-text-nodes {20px;}
p &gt; ::adjacent-text-nodes {margin:0;}

::adjacent-text-nodes is more generic than &quot;paragraphs&quot; (so applies not only to html) and does the same job

hope this helps</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>