Add size attribute to image tag

issue8146
review49781002
This commit is contained in:
Cédric Krier committed 2019-03-09 17:10:34 +01:00
1 parent e5e92ac81a
commit b76e85be2e
4 files changed
+13

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
* Add size attribute on image tag
* Allow to use channel to synchronize Cache
* Display ids and rule names on access error
* Move field definition from Model to Field
+2
View File
@@ -291,6 +291,8 @@ Display an image.
* ``colspan``: see in common-attributes-colspan_.
* ``size``: the size of the image in pixels. The default value is 48.
* ``states``: see in common-attributes-states_.
* ``help``: see in common-attributes-help_.
+2
View File
@@ -113,6 +113,8 @@ attlist.image &=
attlist.image &= [ a:defaultValue = "0" ] attribute yfill { "0" | "1" }?
attlist.image &=
[ a:defaultValue = "0" ] attribute xexpand { "0" | "1" }?
attlist.image &=
[ a:defaultValue = "48" ] attribute size {text }?
attlist.image &= [ a:defaultValue = "0" ] attribute xfill { "0" | "1" }?
attlist.image &= attribute help { text }?
attlist.image &= attribute states { text }?
+8
View File
@@ -528,6 +528,14 @@
</attribute>
</optional>
</define>
<define name="attlist.image" combine="interleave">
<optional>
<attribute a:defaultValue="48">
<name ns="">size</name>
<text/>
</attribute>
</optional>
</define>
<define name="attlist.image" combine="interleave">
<optional>
<attribute a:defaultValue="0">