Bug 237963

Summary: [CSS 2.1 Conformance] outline-color set to inherit
Product: [Applications] konqueror Reporter: Gérard Talbot (no longer involved) <browserbugs2>
Component: khtmlAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: testcase
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gérard Talbot (no longer involved) 2010-05-17 20:33:58 UTC
Version:            (using KDE 4.4.3)
OS:                Linux
Installed from:    Ubuntu Packages

Testcase
--------

http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/outline-color-175.htm

coming from CSS 2.1 test suite

Expected results
----------------

There should be 2 filled green squares of 100px wide by 100px tall displayed in the testcase webpage.

Explanations
------------

The parent #wrapper has
{outline: green;}
which computes to
{
outline-color: green;
outline-style: none;
outline-width: 0px;
}

Then, the child #div1 has
{
outline-color: inherit;
outline-style: solid;
outline-width: 50px;
}

Therefore, the child #div1's outline-color should be inherited from its parent #wrapper.

Reference
---------

"
(...) the property takes the same computed value as the property for the element's parent.
"

Section 6.2.1 The 'inherit' value http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit

Notes
-----
- Firefox 3.6.3 and Internet Explorer 8 pass this test.
- Konqueror 4.4.3, Qt 4.6.2, Linux 2.6.31-19-generic i686 (32bits) and KDE
platform 4.4.3 here.

regards, Gérard
Comment 1 Maksim Orlovich 2010-05-17 22:36:00 UTC
I don't think it's an inherot issue --- changing the test to outline-color: green doesn't make it show up. However, if I change it to width:1px; from width:0 it does work with outline-color: inherit;.
Comment 2 Gérard Talbot (no longer involved) 2010-05-17 23:57:36 UTC
> if I change it to width:1px; from width:0

The child #div1 already has 
outline-width: 50px;
explicitly declared.

The parent has a computed outline-width value of 0px and a computed outline-style value of none but those 2 properties are redefined, specified for the child. So, why the outline-color is not inherited when the declaration outline-color: inherit; formally and explicitly says so?

There is a spec violation here.. 

Gérard
Comment 3 Gérard Talbot (no longer involved) 2010-05-18 00:01:06 UTC
The summary of this bug is the same as the title of the testcase. I think "outline-color set to inherit" reflect accurately and accordingly the nature and goal of the testcase.

Gérard
Comment 4 Gérard Talbot (no longer involved) 2010-05-18 00:23:58 UTC
> if I change it to width:1px; from width:0

Oops... you said width, not outline-width!! Duh! Sorry. I misread you.

I do not see why a widthless block-level element should not render outline borders.
So, yes, this may be not related to inherit keyword support but to widthless non-replaced block-level element.

-----------

I quickly have created another testcase, the exact same as outline-color-175.htm but for border (just to see if the problem was also noticeable for border):

http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/border-color-inherit.html

and Konqueror 4.4.3 passes such test.

regards, Gérard
Comment 5 Andrew Crouthamel 2018-11-02 23:03:33 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-11-16 05:34:37 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 7 Justin Zobel 2022-12-13 02:54:20 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you cazn reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 8 Bug Janitor Service 2022-12-28 05:25:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-01-12 05:18:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!