Giter Site home page Giter Site logo

The "acid" test is not specific enough (not "unit" testing) + fails with typical stylesheet overrides from reading system "user agent" and/or user formatting preferences about epub-tests HOT 6 CLOSED

w3c avatar w3c commented on June 19, 2024
The "acid" test is not specific enough (not "unit" testing) + fails with typical stylesheet overrides from reading system "user agent" and/or user formatting preferences

from epub-tests.

Comments (6)

dauwhe avatar dauwhe commented on June 19, 2024 1

My recommendation would be to eliminate the Acid test from this test suite.

I'm fine with that. As I mentioned, it was one way of showing that an RS supports "a lot" of CSS, but it is a strange test (and had to be edited to be XHTML, etc.)

from epub-tests.

danielweck avatar danielweck commented on June 19, 2024

CC @llemeurfr @gautierchomel

from epub-tests.

iherman avatar iherman commented on June 19, 2024

cc @dauwhe @dlazin

from epub-tests.

iherman avatar iherman commented on June 19, 2024

I have created a PR to do so (#167).

However, we have now a MUST statement on being conform to CSS that has now corresponding test (actually, we have the statement twice: one in the introductory statement in the paragraph and then one in the core text of ยง6.3. This contradicts to the requirement for having a test for each MUST statement. I am not sure whether this is a problem and what we should put there instead.

(Almost all our tests use CSS in some way. One could argue that CSS support is amply shown through the test suite... but maybe removing the first bullet item, which is a repetition of what is said in the yellow banner, makes things a big cleaner. This is reminiscent on the discussion in w3c/epub-specs#2330)

cc @dlazin @mattgarrish

from epub-tests.

dlazin avatar dlazin commented on June 19, 2024

I agree with removing this; I have similar thoughts, but haven't found time to create a replacement test. Note that I think it's fine to use a basic test for two different normative statements, if it reasonably tests the same things; not as good as having unique tests, but IMO fine. I don't think there's a meaningful difference between "you must support rendering CSS" and "you must support CSS as defined in the CSS spec"; one basic test seems sufficient to me.

from epub-tests.

iherman avatar iherman commented on June 19, 2024

one basic test seems sufficient to me.

me too. But, with the removal of this test, there is no test for the statements in ยง6.3. Even if we decide to remove the bullet item:

MUST support the official definition of CSS as described in the [csssnapshot].

(which I would agree with), we may still to either have, or assign another test, for the statement in the intro part of the section, i.e.,

If a reading system has a viewport, it MUST support the visual rendering of XHTML content documents via CSS [epub-33].

So far, the acid test was used for both.

from epub-tests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.