But if the 7px width of the images is rounded down during conversion to twips, we will see black at the end of the line of images; if it is rounded up, we will see one image wrap to the next line of the div. Therefore the number of app units per CSS pixel must always be an integer. Currently this constraint is enforced by forcing the user to specify a screen DPI value that makes it true. This is obviously undesirable. Users should be allowed to use arbitrary screen DPI values. We can generalize the above rule to the goal that, wherever possible, an author-specified CSS length should be exactly representable by an integral number of app units. Here's a modified version of the above testcase:
![]()
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla egestas. Integer ullamcorper. Nunc porta consectetuer sem. Quisque varius sagittis libero. Etiam ipsum ante, imperdiet ac, ullamcorper in, tempus sit amet, risus. Mauris euismod, arcu in interdum condimentum, lectus tortor lobortis elit, luctus molestie neque risus at elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla egestas. Integer ullamcorper. Nunc porta consectetuer sem. Quisque varius sagittis libero. Etiam ipsum ante, imperdiet ac, ullamcorper in, tempus sit amet, risus. Mauris euismod, arcu in interdum condimentum, lectus tortor lobortis elit, luctus molestie neque risus at elit. Box! Box! Box! background-clip (content-box) ----------------------------- Box! Box! Box! background-clip (padding-box) Box!Box! Clearly the author expects the inline images to exactly fill the box. But if the 7px width of the images is rounded down during conversion to twips, we will see black at the end of the line of images; if it is rounded up, we will see one image wrap to the next line of the div. Therefore the number of app units per CSS pixel must always be an integer. Currently this constraint is enforced by forcing the user to specify a screen DPI value that makes it true. This is obviously undesirable. Users should be allowed to use arbitrary screen DPI values. We can generalize the above rule to the goal that, wherever possible, an author-specified CSS length should be exactly representable by an integral number of app units. Here's a modified version of the above testcase:
Weirdopedia says: "Weird" http://weirdopedia.posterous.com/54924965 But if the 7px width of the images is rounded down during conversion to twips, we will see black at the end of the line of images; if it is rounded up, we will see one image wrap to the next line of the div. Therefore the number of app units per CSS pixel must always be an integer. Currently this co ...
No comments:
Post a Comment