Replies: 2 comments 3 replies
-
The point of F24 is that you can't make assumptions about browser defaults (going all the way to html/body/root) and just leave out definitions of both foreground and background colours as an author. That is all. Once a user comes in and applies their own custom stylesheets, it's then up to them (the users) to make sure their custom styles give them sufficient contrast. The point is purely that authors can't leave things out on the assumption that browser/user defaults are the same everywhere. |
Beta Was this translation helpful? Give feedback.
-
as a user, if i absolutely need those colours defined, i'd probably also need to start using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In technique F24, it's written some contradictory info :
In the About part:
In the Description
Let's say the website has defined both the body and color:
Here we have no problem of contrast.
According to F24, the fact that main inherits from the body background-color makes the test successful.
Now, if I want to use a personal stylesheet with my own CSS rule for the body I can override the default style with the following rule :
I can no longer have a correct contrast between
<main>
color, and<body>
background color, although this was the intent of F24.I use to test this using the
:root
selector instead ofbody
but that's quite cheating because users may use thebody
selector. What's your opinion about that?Beta Was this translation helpful? Give feedback.
All reactions