Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(71)

Issue 109083: Issue 1103: style applied to body in css or cascading from body in cajoled source not working (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 9 months ago by MikeSamuel
Modified:
16 years, 9 months ago
Reviewers:
ihab.awad
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fixes http://code.google.com/p/google-caja/issues/detail?id=1103 body { font: 13px/1.231 Arial, helvetica, clean, sans-serif } p { font: 83%; } The cajoler removes the body declaration, making the p declaration relative to an inconsistent size across browsers. For full html pages passed to cajole_html, pages that include link elements for style, the resulting cajoled css omits the body rule rather than reassigning it to .gadget___ { font... } Perhaps there's an issue here with accepting 'inherit' as a value? Regardless, removing the rule altogether seems the wrong solution. This affects at least YUI reset.css, fonts.css, and grids.css. fonts.css (used to normalize element font sizes across browsers) specifically surfaces a use case like that noted above. Submitted @3670

Patch Set 1 #

Patch Set 2 : Issue 1103: style applied to body in css or cascading from body in cajoled source not working #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -26 lines) Patch
M src/com/google/caja/plugin/CssRuleRewriter.java View 2 chunks +31 lines, -15 lines 2 comments Download
M src/com/google/caja/plugin/domita.js View 1 4 chunks +6 lines, -7 lines 0 comments Download
M tests/com/google/caja/plugin/CssRuleRewriterTest.java View 1 chunk +5 lines, -2 lines 2 comments Download
M tests/com/google/caja/plugin/domita_test.html View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
MikeSamuel
16 years, 9 months ago (2009-08-26 03:23:51 UTC) #1
ihab.awad
LGTM http://codereview.appspot.com/109083/diff/1006/1009 File src/com/google/caja/plugin/CssRuleRewriter.java (right): http://codereview.appspot.com/109083/diff/1006/1009#newcode119 Line 119: elName.getFilePosition(), ".vdoc-body___"), Should ".vdoc-body___" be entered into ...
16 years, 9 months ago (2009-08-27 22:29:35 UTC) #2
MikeSamuel
16 years, 9 months ago (2009-08-27 23:41:20 UTC) #3
http://codereview.appspot.com/109083/diff/1006/1009
File src/com/google/caja/plugin/CssRuleRewriter.java (right):

http://codereview.appspot.com/109083/diff/1006/1009#newcode119
Line 119: elName.getFilePosition(), ".vdoc-body___"),
On 2009/08/27 22:29:35, ihab.awad wrote:
> Should ".vdoc-body___" be entered into some collection of static final
whatsits
> somewhere?

It's not really appropriate for ReservedNames.java since it isn't in the JS
identifier namespace.

It is documented at
http://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b