mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
CSS properties page-break-*
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
8a8b123d33
commit
3b537365a4
2
NEWS
2
NEWS
@ -17,6 +17,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
! Support display:inline-block
|
! Support display:inline-block
|
||||||
! Support for more white-space CSS values.
|
! Support for more white-space CSS values.
|
||||||
! Permit underscores in font families
|
! Permit underscores in font families
|
||||||
|
! Support for page-break-* CSS3 properties when proprietary properties
|
||||||
|
are enabled.
|
||||||
- Use prepend for SPL autoloading on PHP 5.3 and later.
|
- Use prepend for SPL autoloading on PHP 5.3 and later.
|
||||||
- Fix bug with nofollow transform when pre-existing rel exists.
|
- Fix bug with nofollow transform when pre-existing rel exists.
|
||||||
- Fix bug where background:url() always gets lower-cased
|
- Fix bug where background:url() always gets lower-cased
|
||||||
|
@ -250,6 +250,11 @@ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition
|
|||||||
// only opacity, for now
|
// only opacity, for now
|
||||||
$this->info['filter'] = new HTMLPurifier_AttrDef_CSS_Filter();
|
$this->info['filter'] = new HTMLPurifier_AttrDef_CSS_Filter();
|
||||||
|
|
||||||
|
// more CSS3
|
||||||
|
$this->info['page-break-after'] =
|
||||||
|
$this->info['page-break-before'] = new HTMLPurifier_AttrDef_Enum(array('auto','always','avoid','left','right'));
|
||||||
|
$this->info['page-break-inside'] = new HTMLPurifier_AttrDef_Enum(array('auto','avoid'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function doSetupTricky($config) {
|
protected function doSetupTricky($config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user