Shadow DOM inherits white-space from its ancestor
Reported by
jacob.s....@gmail.com,
May 10 2016
|
|||||||
Issue descriptionChrome Version : 48.0.2564.116 (Official Build) (64-bit) URLs (if applicable) : http://jsbin.com/tigunu/edit?html,js,output Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: N/A Firefox: N/A IE: N/A What steps will reproduce the problem? (1) Create a shadow DOM instance that has text content with newlines. (2) Apply white-space: {pre|pre-wrap|pre-line} to an ancestor of the shadow DOM instance. What is the expected result? The shadow DOM instance should not inherit the white-space property from its ancestor. What happens instead? The shadow DOM instance does inherit the white-space property from its ancestor. Please provide any additional information below. Attach a screenshot if possible. The jsbin I linked to should provide a working example that demonstrates the problem.
,
May 11 2016
That screenshot is not the expected behavior. The screenshot attached to this comment is what I'd expect.
,
May 11 2016
Thank you for providing more feedback. Adding requester "rnimmagadda@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 13 2016
Able to reproduce the issue on windows 7, Linux Ubuntu 14.04 and Mac 10.11.4 using chrome version 50.0.2611.102 with the below steps 1.Go to URL http://jsbin.com/tigunu/edit?html,js,output 2.Observed the output in 3 lines This is non regression issue as the issue is seen from M35 builds.Hence marking it as Untriaged to get more inputs from dev team. Note::On windows and Mac canary 52.0.2735.0 getting empty output Thnaks,
,
May 13 2016
,
May 16 2016
,
May 17 2016
Which part of the spec isn't being followed? Is this specific to white-space?
,
May 17 2016
Working as intended. white-space is specified as an inherited property. https://drafts.csswg.org/css-text-3/#propdef-white-space "Inherited: yes" https://w3c.github.io/webcomponents/spec/shadow/index.html#flat-trees "In resolving CSS inheritance, an element must inherit from the parent node in the flat tree, if applicable." Also see discussion https://github.com/w3c/webcomponents/issues/314 |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by rnimmagadda@chromium.org
, May 11 2016Labels: Needs-Feedback
204 KB
204 KB View Download