You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The official DOM provides no method to obtain all values set for a property. Cssutils from 0.9.4 implements the additional method :meth:`~cssutils.css.CSSStyleDeclaration.getProperties`, example::
115
+
116
+
>>> cssText = '''background: white url(paper.png) scroll; /* for all UAs */
117
+
... background: white url(ledger.png) fixed; /* for UAs that do fixed backgrounds */
Copy file name to clipboardExpand all lines: docs/html/_sources/docs/scripts.txt
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,54 @@ Options:
53
53
-u UA, --useragent=UA
54
54
useragent to use for request of URL, default is urllib2s default
55
55
56
+
The following example outputs a list of stylesheets found with title and href of the found stylesheet. (``PYTHONHOME/Scripts`` should be on your ``PATH``. Additional log output is not shown.)::
<p>The official DOM provides no method to obtain all values set for a property. Cssutils from 0.9.4 implements the additional method <atitle="cssutils.css.CSSStyleDeclaration.getProperties" class="reference internal" href="#cssutils.css.CSSStyleDeclaration.getProperties"><ttclass="xref docutils literal"><spanclass="pre">getProperties()</span></tt></a>, example:</p>
1380
+
<divclass="highlight-python"><divclass="highlight"><pre><spanclass="gp">>>> </span><spanclass="n">cssText</span><spanclass="o">=</span><spanclass="s">'''background: white url(paper.png) scroll; /* for all UAs */</span>
1381
+
<spanclass="gp">... </span><spanclass="s">background: white url(ledger.png) fixed; /* for UAs that do fixed backgrounds */</span>
0 commit comments