Florent Daigni?re wrote:
> * batosai <batosai at batosai.net> [2007-08-13 10:35:49]:
> 
>> Edgar Friendly a ?crit :
>>> It's probably a weakness in the parser - the node parses CSS and HTML
>>> completely, stripping out any potentially harmful content.  I'm guessing
>>> that the potential for a "-" was missed, and can be added pretty easily,
>>> now that the problem is found.  Do you have an example document that
>>> shouldn't be blocked?
>> Here is an example document. Negative margins are used in :
>>
>> - #content : for centering the page regardless of the browser.
>> - .left .right : for overlapping outside of the page.
>>
> 
>> Example using negative margins
>>
>> This page uses negative margins for centering (margin:auto isn't accepted by
>> lazy browsers) and block overlaping.
> 
> Hmm, according to
> http://www.w3.org/TR/REC-CSS2/box.html#margin-properties it should be
> either a width or a percentage ... as far as I know widths are always
> positive.
> 
> Do we really want the CSS parser to be more flexible ?
> 
> NextGen$
> 
yes, lower on that page, section 8.3.1 has text:
        ... In the case of negative margins, ...
And there are real uses for them, they're supported by browsers, so yes,
we want a (slightly) more flexible parser.

E.

Reply via email to