<?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>130843</bug_id>
          
          <creation_ts>2014-03-27 09:52:04 -0700</creation_ts>
          <short_desc>User agent styles overrides custom CSS</short_desc>
          <delta_ts>2021-12-24 13:37:55 -0800</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>525.x (Safari 3.2)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 7.0</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>webkitsucks</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ntim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>994948</commentid>
    <comment_count>0</comment_count>
    <who name="">webkitsucks</who>
    <bug_when>2014-03-27 09:52:04 -0700</bug_when>
    <thetext>I have an unsorted list in a fixed position header and it seems impossible to override the user agent style. Here&apos;s the CSS:

#header {
	position: fixed;
}

#header #nav {
	position: relative;
}

#header #nav ul {
	width: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

The last CSS rules should override the user agent styles, but they don&apos;t.

ul, menu, dir {
    display: block;
    list-style-type: disc;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;
}

That&apos;s the user agent style. It all remains active and my navigation doesn&apos;t display properly, because of the padding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1826759</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2021-12-24 13:37:55 -0800</bug_when>
    <thetext>I can&apos;t reproduce this anymore:

data:text/html,&lt;ul style=&quot;padding:0;&quot;&gt;&lt;li&gt;hi&lt;/li&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ul&gt;

renders differently from:

data:text/html,&lt;ul&gt;&lt;li&gt;hi&lt;/li&gt;&lt;li&gt;foo&lt;/li&gt;&lt;/ul&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>