Skip to content

Comments

Make absolutely positioned contrast errors warnings#1

Merged
kabel merged 2 commits intounl:masterfrom
mfairchild365:contrast-abs
Aug 11, 2014
Merged

Make absolutely positioned contrast errors warnings#1
kabel merged 2 commits intounl:masterfrom
mfairchild365:contrast-abs

Conversation

@mfairchild365
Copy link

We can't reliably compute the contrast of text if it is absolutely positioned. Following the DOM tree won't work, so it is better to mark it as a warning for a manual check.

We can't reliably compute the contrast of text over a background if the text is absolutely positioned over the background of another element that isn't a direct parent of the text element.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing , ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kabel added a commit that referenced this pull request Aug 11, 2014
Make absolutely positioned contrast errors warnings
@kabel kabel merged commit 7fe9b5c into unl:master Aug 11, 2014
luketw pushed a commit to squizlabs/HTML_CodeSniffer that referenced this pull request Aug 21, 2014
…, unl#1) into master:

Make absolutely positioned contrast errors warnings.
We can't reliably compute the contrast of text over a background if the text is absolutely positioned over the background of another element that isn't a direct parent of the text element.

Conflicts:
	Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_4/1_4_3.js
	Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_4/1_4_3_Contrast.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants